org.apache.flink.api.java.typeutils.runtime.EitherSerializer Java Examples
The following examples show how to use
org.apache.flink.api.java.typeutils.runtime.EitherSerializer.
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: EitherTypeInfo.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
@Override @PublicEvolving public TypeSerializer<Either<L, R>> createSerializer(ExecutionConfig config) { return new EitherSerializer<L, R>(leftType.createSerializer(config), rightType.createSerializer(config)); }
Example #2
Source File: EitherTypeInfo.java From flink with Apache License 2.0 | 4 votes |
@Override @PublicEvolving public TypeSerializer<Either<L, R>> createSerializer(ExecutionConfig config) { return new EitherSerializer<L, R>(leftType.createSerializer(config), rightType.createSerializer(config)); }
Example #3
Source File: EitherTypeInfo.java From flink with Apache License 2.0 | 4 votes |
@Override @PublicEvolving public TypeSerializer<Either<L, R>> createSerializer(ExecutionConfig config) { return new EitherSerializer<L, R>(leftType.createSerializer(config), rightType.createSerializer(config)); }
Example #4
Source File: CompositeTypeSerializerUpgradeTest.java From flink with Apache License 2.0 | 4 votes |
@Override public TypeSerializer<Either<String, Integer>> createPriorSerializer() { return new EitherSerializer<>(StringSerializer.INSTANCE, IntSerializer.INSTANCE); }
Example #5
Source File: CompositeTypeSerializerUpgradeTest.java From flink with Apache License 2.0 | 4 votes |
@Override public TypeSerializer<Either<String, Integer>> createUpgradedSerializer() { return new EitherSerializer<>(StringSerializer.INSTANCE, IntSerializer.INSTANCE); }