@Override public CompatibilityResult<T> ensureCompatibility(TypeSerializerConfigSnapshot configSnapshot) { if (snapshotConfiguration().equals(configSnapshot)) { return CompatibilityResult.compatible(); } return CompatibilityResult.requiresMigration(); }
@Override public CompatibilityResult<T> ensureCompatibility(TypeSerializerConfigSnapshot configSnapshot) { if (snapshotConfiguration().equals(configSnapshot)) { return CompatibilityResult.compatible(); } return CompatibilityResult.requiresMigration(); }
@Override public CompatibilityResult<T> ensureCompatibility(TypeSerializerConfigSnapshot configSnapshot) { if (snapshotConfiguration().equals(configSnapshot)) { return CompatibilityResult.compatible(); } return CompatibilityResult.requiresMigration(); }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof RegisteredBroadcastBackendStateMetaInfo.Snapshot)) { return false; } RegisteredBroadcastBackendStateMetaInfo.Snapshot snapshot = (RegisteredBroadcastBackendStateMetaInfo.Snapshot) obj; return name.equals(snapshot.getName()) && assignmentMode.ordinal() == snapshot.getAssignmentMode().ordinal() && Objects.equals(keySerializer, snapshot.getKeySerializer()) && Objects.equals(valueSerializer, snapshot.getValueSerializer()) && keySerializerConfigSnapshot.equals(snapshot.getKeySerializerConfigSnapshot()) && valueSerializerConfigSnapshot.equals(snapshot.getValueSerializerConfigSnapshot()); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } StateMetaInfoSnapshot that = (StateMetaInfoSnapshot) o; if (!stateType.equals(that.stateType)) { return false; } if (!getName().equals(that.getName())) { return false; } return getKeySerializer().equals(that.getKeySerializer()) && getValueSerializer().equals(that.getValueSerializer()) && Objects.equals(getNamespaceSerializer(), that.getNamespaceSerializer()) && getKeySerializerConfigSnapshot().equals(that.getKeySerializerConfigSnapshot()) && getValueSerializerConfigSnapshot().equals(that.getValueSerializerConfigSnapshot()) && Objects.equals(getNamespaceSerializerConfigSnapshot(), that.getNamespaceSerializerConfigSnapshot()); }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj == null) { return false; } // need to check for nulls because serializer and config snapshots may be null on restore return (obj instanceof Snapshot) && name.equals(((Snapshot) obj).getName()) && assignmentMode.equals(((Snapshot) obj).getAssignmentMode()) && ((partitionStateSerializer == null && ((Snapshot) obj).getPartitionStateSerializer() == null) || partitionStateSerializer.equals(((Snapshot) obj).getPartitionStateSerializer())) && ((partitionStateSerializerConfigSnapshot == null && ((Snapshot) obj).getPartitionStateSerializerConfigSnapshot() == null) || partitionStateSerializerConfigSnapshot.equals(((Snapshot) obj).getPartitionStateSerializerConfigSnapshot())); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Snapshot<?, ?> that = (Snapshot<?, ?>) o; if (!stateType.equals(that.stateType)) { return false; } if (!getName().equals(that.getName())) { return false; } // need to check for nulls because serializer and config snapshots may be null on restore return ((getStateSerializer() == null && that.getStateSerializer() == null) || getStateSerializer().equals(that.getStateSerializer())) && ((getNamespaceSerializer() == null && that.getNamespaceSerializer() == null) || getNamespaceSerializer().equals(that.getNamespaceSerializer())) && ((getNamespaceSerializerConfigSnapshot() == null && that.getNamespaceSerializerConfigSnapshot() == null) || getNamespaceSerializerConfigSnapshot().equals(that.getNamespaceSerializerConfigSnapshot())) && ((getStateSerializerConfigSnapshot() == null && that.getStateSerializerConfigSnapshot() == null) || getStateSerializerConfigSnapshot().equals(that.getStateSerializerConfigSnapshot())); }