org.apache.flink.streaming.api.datastream.CoGroupedStreams.UnionSerializer Java Examples

The following examples show how to use org.apache.flink.streaming.api.datastream.CoGroupedStreams.UnionSerializer. 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: UnionSerializerTest.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
@Override
protected TypeSerializer<TaggedUnion<Object, Object>> createSerializer() {
	return new UnionSerializer<>(
		new KryoSerializer<>(Object.class, new ExecutionConfig()),
		new KryoSerializer<>(Object.class, new ExecutionConfig())
	);
}
 
Example #2
Source File: UnionSerializerTest.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected TypeSerializer<TaggedUnion<Object, Object>> createSerializer() {
	return new UnionSerializer<>(
		new KryoSerializer<>(Object.class, new ExecutionConfig()),
		new KryoSerializer<>(Object.class, new ExecutionConfig())
	);
}
 
Example #3
Source File: UnionSerializerTest.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected TypeSerializer<TaggedUnion<Object, Object>> createSerializer() {
	return new UnionSerializer<>(
		new KryoSerializer<>(Object.class, new ExecutionConfig()),
		new KryoSerializer<>(Object.class, new ExecutionConfig())
	);
}
 
Example #4
Source File: UnionSerializerMigrationTest.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
private static TypeSerializer<TaggedUnion<String, Long>> stringLongRowSupplier() {
	return new UnionSerializer<>(StringSerializer.INSTANCE, LongSerializer.INSTANCE);
}
 
Example #5
Source File: UnionSerializerMigrationTest.java    From flink with Apache License 2.0 4 votes vote down vote up
private static TypeSerializer<TaggedUnion<String, Long>> stringLongRowSupplier() {
	return new UnionSerializer<>(StringSerializer.INSTANCE, LongSerializer.INSTANCE);
}
 
Example #6
Source File: UnionSerializerUpgradeTest.java    From flink with Apache License 2.0 4 votes vote down vote up
private static TypeSerializer<TaggedUnion<String, Long>> stringLongRowSupplier() {
	return new UnionSerializer<>(StringSerializer.INSTANCE, LongSerializer.INSTANCE);
}
 
Example #7
Source File: UnionSerializerUpgradeTest.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public TypeSerializer<TaggedUnion<String, Long>> createPriorSerializer() {
	return new UnionSerializer<>(StringSerializer.INSTANCE, LongSerializer.INSTANCE);
}
 
Example #8
Source File: UnionSerializerUpgradeTest.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public TypeSerializer<TaggedUnion<String, Long>> createUpgradedSerializer() {
	return new UnionSerializer<>(StringSerializer.INSTANCE, LongSerializer.INSTANCE);
}
 
Example #9
Source File: UnionSerializerUpgradeTest.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public TypeSerializer<TaggedUnion<String, Long>> createPriorSerializer() {
	return new UnionSerializer<>(StringSerializer.INSTANCE, LongSerializer.INSTANCE);
}
 
Example #10
Source File: UnionSerializerUpgradeTest.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public TypeSerializer<TaggedUnion<String, Long>> createUpgradedSerializer() {
	return new UnionSerializer<>(StringSerializer.INSTANCE, LongSerializer.INSTANCE);
}