Java Code Examples for org.apache.flink.api.java.tuple.Tuple0#INSTANCE

The following examples show how to use org.apache.flink.api.java.tuple.Tuple0#INSTANCE . 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
Source File: Tuple0Serializer.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
@Override
public Tuple0 createInstance(Object[] fields) {
	if (fields == null || fields.length == 0) {
		return Tuple0.INSTANCE;
	}

	throw new UnsupportedOperationException(
			"Tuple0 cannot take any data, as it has zero fields.");
}
 
Example 2
Source File: Tuple0Serializer.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
public Tuple0 createInstance(Object[] fields) {
	if (fields == null || fields.length == 0) {
		return Tuple0.INSTANCE;
	}

	throw new UnsupportedOperationException(
			"Tuple0 cannot take any data, as it has zero fields.");
}
 
Example 3
Source File: Tuple0Serializer.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
public Tuple0 createInstance(Object[] fields) {
	if (fields == null || fields.length == 0) {
		return Tuple0.INSTANCE;
	}

	throw new UnsupportedOperationException(
			"Tuple0 cannot take any data, as it has zero fields.");
}
 
Example 4
Source File: Tuple0Serializer.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
@Override
public Tuple0 createInstance() {
	return Tuple0.INSTANCE;
}
 
Example 5
Source File: Tuple0Serializer.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
@Override
public Tuple0 deserialize(DataInputView source) throws IOException {
	source.readByte();
	return Tuple0.INSTANCE;
}
 
Example 6
Source File: TupleSerializerTest.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
@Test
public void testTuple0() {
	Tuple0[] testTuples = new Tuple0[] { Tuple0.INSTANCE, Tuple0.INSTANCE, Tuple0.INSTANCE };

	runTests(1, testTuples);
}
 
Example 7
Source File: Tuple0Serializer.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public Tuple0 createInstance() {
	return Tuple0.INSTANCE;
}
 
Example 8
Source File: Tuple0Serializer.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public Tuple0 deserialize(DataInputView source) throws IOException {
	source.readByte();
	return Tuple0.INSTANCE;
}
 
Example 9
Source File: TupleSerializerTest.java    From flink with Apache License 2.0 4 votes vote down vote up
@Test
public void testTuple0() {
	Tuple0[] testTuples = new Tuple0[] { Tuple0.INSTANCE, Tuple0.INSTANCE, Tuple0.INSTANCE };

	runTests(1, testTuples);
}
 
Example 10
Source File: Tuple0Serializer.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public Tuple0 createInstance() {
	return Tuple0.INSTANCE;
}
 
Example 11
Source File: Tuple0Serializer.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public Tuple0 deserialize(DataInputView source) throws IOException {
	source.readByte();
	return Tuple0.INSTANCE;
}
 
Example 12
Source File: TupleSerializerTest.java    From flink with Apache License 2.0 4 votes vote down vote up
@Test
public void testTuple0() {
	Tuple0[] testTuples = new Tuple0[] { Tuple0.INSTANCE, Tuple0.INSTANCE, Tuple0.INSTANCE };

	runTests(1, testTuples);
}