Class AvroSchemaCompatibilityCheck

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void checkCompatible​(java.lang.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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AvroSchemaCompatibilityCheck

        public AvroSchemaCompatibilityCheck()
    • Method Detail

      • getSchemaType

        public org.apache.pulsar.common.schema.SchemaType getSchemaType()
      • checkCompatible

        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
        Specified by:
        checkCompatible in interface SchemaCompatibilityCheck
        Parameters:
        from - the current schema i.e. schema that the broker has
        to - the future schema i.e. the schema sent by the producer
        strategy - the strategy to use when comparing schemas
        Throws:
        IncompatibleSchemaException
      • checkCompatible

        public void checkCompatible​(java.lang.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
        Specified by:
        checkCompatible in interface SchemaCompatibilityCheck
        Parameters:
        from - the current schemas i.e. schemas that the broker has
        to - the future schema i.e. the schema sent by the producer
        strategy - the strategy to use when comparing schemas
        Throws:
        IncompatibleSchemaException