org.apache.flink.api.java.typeutils.runtime.kryo.KryoPojosForMigrationTests.Parrot Java Examples
The following examples show how to use
org.apache.flink.api.java.typeutils.runtime.kryo.KryoPojosForMigrationTests.Parrot.
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: KryoSerializerSnapshotTest.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
@Test public void reorderingIsCompatibleAfterReconfiguration() { oldConfig.registerKryoType(Parrot.class); oldConfig.registerKryoType(Dog.class); newConfig.registerKryoType(Dog.class); newConfig.registerKryoType(Parrot.class); assertThat(resolveKryoCompatibility(oldConfig, newConfig), isCompatibleWithReconfiguredSerializer()); }
Example #2
Source File: KryoSerializerSnapshotTest.java From flink with Apache License 2.0 | 5 votes |
@Test public void reorderingIsCompatibleAfterReconfiguration() { oldConfig.registerKryoType(Parrot.class); oldConfig.registerKryoType(Dog.class); newConfig.registerKryoType(Dog.class); newConfig.registerKryoType(Parrot.class); assertThat(resolveKryoCompatibility(oldConfig, newConfig), isCompatibleWithReconfiguredSerializer()); }
Example #3
Source File: KryoSerializerSnapshotTest.java From flink with Apache License 2.0 | 5 votes |
@Test public void reorderingIsCompatibleAfterReconfiguration() { oldConfig.registerKryoType(Parrot.class); oldConfig.registerKryoType(Dog.class); newConfig.registerKryoType(Dog.class); newConfig.registerKryoType(Parrot.class); assertThat(resolveKryoCompatibility(oldConfig, newConfig), isCompatibleWithReconfiguredSerializer()); }
Example #4
Source File: KryoSerializerUpgradeTest.java From flink with Apache License 2.0 | 5 votes |
@Override public TypeSerializer<Animal> createPriorSerializer() { ExecutionConfig executionConfig = new ExecutionConfig(); executionConfig.registerKryoType(Dog.class); executionConfig.registerKryoType(Cat.class); executionConfig.registerKryoType(Parrot.class); return new KryoSerializer<>(Animal.class, executionConfig); }
Example #5
Source File: KryoSerializerUpgradeTest.java From flink with Apache License 2.0 | 5 votes |
@Override public TypeSerializer<Animal> createUpgradedSerializer() { ExecutionConfig executionConfig = new ExecutionConfig(); executionConfig.registerKryoType(DummyClassOne.class); executionConfig.registerKryoType(Dog.class); executionConfig.registerKryoType(DummyClassTwo.class); executionConfig.registerKryoType(Cat.class); executionConfig.registerKryoType(Parrot.class); return new KryoSerializer<>(Animal.class, executionConfig); }
Example #6
Source File: KryoSerializerUpgradeTest.java From flink with Apache License 2.0 | 5 votes |
@Override public TypeSerializer<Animal> createPriorSerializer() { ExecutionConfig executionConfig = new ExecutionConfig(); executionConfig.registerTypeWithKryoSerializer( Dog.class, KryoPojosForMigrationTests.DogKryoSerializer.class); executionConfig.registerKryoType(Cat.class); executionConfig.registerTypeWithKryoSerializer( Parrot.class, KryoPojosForMigrationTests.ParrotKryoSerializer.class); return new KryoSerializer<>(Animal.class, executionConfig); }
Example #7
Source File: KryoSerializerUpgradeTest.java From flink with Apache License 2.0 | 5 votes |
@Override public TypeSerializer<Animal> createUpgradedSerializer() { ExecutionConfig executionConfig = new ExecutionConfig(); executionConfig.registerKryoType(DummyClassOne.class); executionConfig.registerTypeWithKryoSerializer( Dog.class, KryoPojosForMigrationTests.DogV2KryoSerializer.class); executionConfig.registerKryoType(DummyClassTwo.class); executionConfig.registerKryoType(Cat.class); executionConfig.registerTypeWithKryoSerializer( Parrot.class, KryoPojosForMigrationTests.ParrotKryoSerializer.class); return new KryoSerializer<>(Animal.class, executionConfig); }