public class AvroSchemaCompatibilityCheck extends Object
SchemaCompatibilityCheck for SchemaType.AVRO.DEFAULT| Constructor and Description |
|---|
AvroSchemaCompatibilityCheck() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkCompatible(Iterable<org.apache.pulsar.common.protocol.schema.SchemaData> from,
org.apache.pulsar.common.protocol.schema.SchemaData to,
org.apache.pulsar.common.policies.data.SchemaCompatibilityStrategy strategy) |
void |
checkCompatible(org.apache.pulsar.common.protocol.schema.SchemaData from,
org.apache.pulsar.common.protocol.schema.SchemaData to,
org.apache.pulsar.common.policies.data.SchemaCompatibilityStrategy strategy) |
org.apache.pulsar.common.schema.SchemaType |
getSchemaType() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisCompatible, isCompatiblepublic org.apache.pulsar.common.schema.SchemaType getSchemaType()
public void checkCompatible(org.apache.pulsar.common.protocol.schema.SchemaData from,
org.apache.pulsar.common.protocol.schema.SchemaData to,
org.apache.pulsar.common.policies.data.SchemaCompatibilityStrategy strategy)
throws IncompatibleSchemaException
checkCompatible in interface SchemaCompatibilityCheckfrom - the current schema i.e. schema that the broker hasto - the future schema i.e. the schema sent by the producerstrategy - the strategy to use when comparing schemasIncompatibleSchemaExceptionpublic void checkCompatible(Iterable<org.apache.pulsar.common.protocol.schema.SchemaData> from, org.apache.pulsar.common.protocol.schema.SchemaData to, org.apache.pulsar.common.policies.data.SchemaCompatibilityStrategy strategy) throws IncompatibleSchemaException
checkCompatible in interface SchemaCompatibilityCheckfrom - the current schemas i.e. schemas that the broker hasto - the future schema i.e. the schema sent by the producerstrategy - the strategy to use when comparing schemasIncompatibleSchemaExceptionCopyright © 2017–2021 Apache Software Foundation. All rights reserved.