org.apache.flink.api.java.typeutils.runtime.kryo.KryoPojosForMigrationTests.Dog Java Examples
The following examples show how to use
org.apache.flink.api.java.typeutils.runtime.kryo.KryoPojosForMigrationTests.Dog.
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 replacingKryoSerializersIsCompatibleAsIs() { oldConfig.registerKryoType(Animal.class); oldConfig.registerTypeWithKryoSerializer(Dog.class, DogKryoSerializer.class); newConfig.registerKryoType(Animal.class); newConfig.registerTypeWithKryoSerializer(Dog.class, DogV2KryoSerializer.class); // it is compatible as is, since Kryo does not expose compatibility API with KryoSerializers // so we can not know if DogKryoSerializer is compatible with DogV2KryoSerializer assertThat(resolveKryoCompatibility(oldConfig, newConfig), isCompatibleAsIs()); }
Example #2
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 #3
Source File: KryoSerializerSnapshotTest.java From flink with Apache License 2.0 | 5 votes |
@Test public void addingTypesIsCompatibleAfterReconfiguration() { oldConfig.registerKryoType(Animal.class); newConfig.registerKryoType(Animal.class); newConfig.registerTypeWithKryoSerializer(Dog.class, DogKryoSerializer.class); assertThat(resolveKryoCompatibility(oldConfig, newConfig), isCompatibleWithReconfiguredSerializer()); }
Example #4
Source File: KryoSerializerSnapshotTest.java From flink with Apache License 2.0 | 5 votes |
@Test public void replacingKryoSerializersIsCompatibleAsIs() { oldConfig.registerKryoType(Animal.class); oldConfig.registerTypeWithKryoSerializer(Dog.class, DogKryoSerializer.class); newConfig.registerKryoType(Animal.class); newConfig.registerTypeWithKryoSerializer(Dog.class, DogV2KryoSerializer.class); // it is compatible as is, since Kryo does not expose compatibility API with KryoSerializers // so we can not know if DogKryoSerializer is compatible with DogV2KryoSerializer assertThat(resolveKryoCompatibility(oldConfig, newConfig), isCompatibleAsIs()); }
Example #5
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 #6
Source File: KryoSerializerSnapshotTest.java From flink with Apache License 2.0 | 5 votes |
@Test public void addingTypesIsCompatibleAfterReconfiguration() { oldConfig.registerKryoType(Animal.class); newConfig.registerKryoType(Animal.class); newConfig.registerTypeWithKryoSerializer(Dog.class, DogKryoSerializer.class); assertThat(resolveKryoCompatibility(oldConfig, newConfig), isCompatibleWithReconfiguredSerializer()); }
Example #7
Source File: KryoSerializerSnapshotTest.java From flink with Apache License 2.0 | 5 votes |
@Test public void replacingKryoSerializersIsCompatibleAsIs() { oldConfig.registerKryoType(Animal.class); oldConfig.registerTypeWithKryoSerializer(Dog.class, DogKryoSerializer.class); newConfig.registerKryoType(Animal.class); newConfig.registerTypeWithKryoSerializer(Dog.class, DogV2KryoSerializer.class); // it is compatible as is, since Kryo does not expose compatibility API with KryoSerializers // so we can not know if DogKryoSerializer is compatible with DogV2KryoSerializer assertThat(resolveKryoCompatibility(oldConfig, newConfig), isCompatibleAsIs()); }
Example #8
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 #9
Source File: KryoSerializerSnapshotTest.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
@Test public void addingTypesIsCompatibleAfterReconfiguration() { oldConfig.registerKryoType(Animal.class); newConfig.registerKryoType(Animal.class); newConfig.registerTypeWithKryoSerializer(Dog.class, DogKryoSerializer.class); assertThat(resolveKryoCompatibility(oldConfig, newConfig), isCompatibleWithReconfiguredSerializer()); }
Example #10
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); }
Example #11
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 #12
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 #13
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 #14
Source File: KryoSerializerUpgradeTest.java From flink with Apache License 2.0 | 4 votes |
@Override public Matcher<Animal> testDataMatcher() { return is(new Dog("Hasso")); }
Example #15
Source File: KryoSerializerUpgradeTest.java From flink with Apache License 2.0 | 4 votes |
@Override public Animal createTestData() { return new Dog("Hasso"); }
Example #16
Source File: KryoSerializerUpgradeTest.java From flink with Apache License 2.0 | 4 votes |
@Override public Matcher<Animal> testDataMatcher() { return is(new Dog("Hasso")); }
Example #17
Source File: KryoSerializerUpgradeTest.java From flink with Apache License 2.0 | 4 votes |
@Override public Animal createTestData() { return new Dog("Hasso"); }
Example #18
Source File: KryoSerializerUpgradeTest.java From flink with Apache License 2.0 | 4 votes |
@Override public Matcher<Animal> testDataMatcher() { return is(new Dog("Hasso")); }
Example #19
Source File: KryoSerializerUpgradeTest.java From flink with Apache License 2.0 | 4 votes |
@Override public Matcher<Animal> testDataMatcher() { return is(new Dog("Hasso")); }
Example #20
Source File: KryoSerializerUpgradeTest.java From flink with Apache License 2.0 | 4 votes |
@Override public Animal createTestData() { return new Dog("Hasso"); }