com.ibm.eventstreams.serdes

Class SchemaInfo



  • public class SchemaInfo
    extends Object
    Information about a single version of a single schema, retrieved from the Schema Registry.
    • Method Detail

      • getId

        public String getId()
        Returns the ID of the schema.
      • getIdAsBytes

        public byte[] getIdAsBytes()
        Returns the unique ID for the schema as bytes.
      • getVersion

        public int getVersion()
        Returns the version number for this version of the schema.
      • getVersionAsBytes

        public byte[] getVersionAsBytes()
        Returns the version number for this version of the schema as bytes.
      • getVersionName

        public String getVersionName()
        Returns the version name for this version of the schema.
      • getName

        public String getName()
        Returns the name of the schema.
      • getSchema

        public org.apache.avro.Schema getSchema()
        Returns the Avro schema definition.
      • getState

        public SchemaInfo.State getState()
        Returns whether this schema is active or deprecated.
      • getStateDeprecationComment

        public String getStateDeprecationComment()
        Returns the comment associated with the reason for deprecation of this schema.
      • getVersionState

        public SchemaInfo.State getVersionState()
        Returns whether this version of the schema is active or deprecated.
      • getVersionStateDeprecationComment

        public String getVersionStateDeprecationComment()
        Returns the comment associated with the reason for deprecation of this version of the schema.
      • isEnabled

        public boolean isEnabled()
        Returns whether this schema is enabled or disabled.
      • isVersionEnabled

        public boolean isVersionEnabled()
        Returns whether this version of the schema is enabled or disabled.

Copyright © 2019. All rights reserved.