Java Code Examples for org.apache.flink.api.common.typeinfo.BasicTypeInfo#VOID_TYPE_INFO

The following examples show how to use org.apache.flink.api.common.typeinfo.BasicTypeInfo#VOID_TYPE_INFO . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
@Test
public void checkTypeInformation() throws Exception {
	HadoopInputFormat<Void, Long> hadoopInputFormat = new HadoopInputFormat<>(
			new DummyVoidKeyInputFormat<Long>(), Void.class, Long.class, new JobConf());

	TypeInformation<Tuple2<Void, Long>> tupleType = hadoopInputFormat.getProducedType();
	TypeInformation<Tuple2<Void, Long>> expectedType = new TupleTypeInfo<>(BasicTypeInfo.VOID_TYPE_INFO, BasicTypeInfo.LONG_TYPE_INFO);

	assertThat(tupleType.isTupleType(), is(true));
	assertThat(tupleType, is(equalTo(expectedType)));
}
 
Example 2
@Test
public void checkTypeInformation() throws Exception {

	HadoopInputFormat<Void, Long> hadoopInputFormat = new HadoopInputFormat<>(
			new DummyVoidKeyInputFormat<Long>(), Void.class, Long.class, Job.getInstance());

	TypeInformation<Tuple2<Void, Long>> tupleType = hadoopInputFormat.getProducedType();
	TypeInformation<Tuple2<Void, Long>> expectedType = new TupleTypeInfo<>(BasicTypeInfo.VOID_TYPE_INFO, BasicTypeInfo.LONG_TYPE_INFO);

	assertThat(tupleType.isTupleType(), is(true));
	assertThat(tupleType, is(equalTo(expectedType)));
}
 
Example 3
Source Project: flink   File: HadoopInputFormatTest.java    License: Apache License 2.0 5 votes vote down vote up
@Test
public void checkTypeInformation() throws Exception {
	HadoopInputFormat<Void, Long> hadoopInputFormat = new HadoopInputFormat<>(
			new DummyVoidKeyInputFormat<Long>(), Void.class, Long.class, new JobConf());

	TypeInformation<Tuple2<Void, Long>> tupleType = hadoopInputFormat.getProducedType();
	TypeInformation<Tuple2<Void, Long>> expectedType = new TupleTypeInfo<>(BasicTypeInfo.VOID_TYPE_INFO, BasicTypeInfo.LONG_TYPE_INFO);

	assertThat(tupleType.isTupleType(), is(true));
	assertThat(tupleType, is(equalTo(expectedType)));
}
 
Example 4
Source Project: flink   File: HadoopInputFormatTest.java    License: Apache License 2.0 5 votes vote down vote up
@Test
public void checkTypeInformation() throws Exception {

	HadoopInputFormat<Void, Long> hadoopInputFormat = new HadoopInputFormat<>(
			new DummyVoidKeyInputFormat<Long>(), Void.class, Long.class, Job.getInstance());

	TypeInformation<Tuple2<Void, Long>> tupleType = hadoopInputFormat.getProducedType();
	TypeInformation<Tuple2<Void, Long>> expectedType = new TupleTypeInfo<>(BasicTypeInfo.VOID_TYPE_INFO, BasicTypeInfo.LONG_TYPE_INFO);

	assertThat(tupleType.isTupleType(), is(true));
	assertThat(tupleType, is(equalTo(expectedType)));
}
 
Example 5
Source Project: flink   File: HadoopInputFormatTest.java    License: Apache License 2.0 5 votes vote down vote up
@Test
public void checkTypeInformation() throws Exception {
	HadoopInputFormat<Void, Long> hadoopInputFormat = new HadoopInputFormat<>(
			new DummyVoidKeyInputFormat<Long>(), Void.class, Long.class, new JobConf());

	TypeInformation<Tuple2<Void, Long>> tupleType = hadoopInputFormat.getProducedType();
	TypeInformation<Tuple2<Void, Long>> expectedType = new TupleTypeInfo<>(BasicTypeInfo.VOID_TYPE_INFO, BasicTypeInfo.LONG_TYPE_INFO);

	assertThat(tupleType.isTupleType(), is(true));
	assertThat(tupleType, is(equalTo(expectedType)));
}
 
Example 6
Source Project: flink   File: HadoopInputFormatTest.java    License: Apache License 2.0 5 votes vote down vote up
@Test
public void checkTypeInformation() throws Exception {

	HadoopInputFormat<Void, Long> hadoopInputFormat = new HadoopInputFormat<>(
			new DummyVoidKeyInputFormat<Long>(), Void.class, Long.class, Job.getInstance());

	TypeInformation<Tuple2<Void, Long>> tupleType = hadoopInputFormat.getProducedType();
	TypeInformation<Tuple2<Void, Long>> expectedType = new TupleTypeInfo<>(BasicTypeInfo.VOID_TYPE_INFO, BasicTypeInfo.LONG_TYPE_INFO);

	assertThat(tupleType.isTupleType(), is(true));
	assertThat(tupleType, is(equalTo(expectedType)));
}