Class SchemaInfoImpl

java.lang.Object
org.apache.pulsar.client.impl.schema.SchemaInfoImpl
All Implemented Interfaces:
org.apache.pulsar.common.schema.SchemaInfo

@Public @Stable public class SchemaInfoImpl extends Object implements org.apache.pulsar.common.schema.SchemaInfo
Information about the schema.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.pulsar.common.schema.SchemaInfo

    org.apache.pulsar.common.schema.SchemaInfo.SchemaInfoBuilder
  • Constructor Summary

    Constructors
    Constructor
    Description
    SchemaInfoImpl(String name, byte[] schema, org.apache.pulsar.common.schema.SchemaType type, long timestamp, Map<String,String> properties)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Calculate the SchemaHash for compatible with `@NoArgsConstructor`.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.pulsar.common.schema.SchemaInfo

    getName, getProperties, getSchema, getTimestamp, getType
  • Constructor Details

    • SchemaInfoImpl

      public SchemaInfoImpl(String name, byte[] schema, org.apache.pulsar.common.schema.SchemaType type, long timestamp, Map<String,String> properties)
  • Method Details

    • getSchemaDefinition

      public String getSchemaDefinition()
      Specified by:
      getSchemaDefinition in interface org.apache.pulsar.common.schema.SchemaInfo
    • getSchemaHash

      public SchemaHash getSchemaHash()
      Calculate the SchemaHash for compatible with `@NoArgsConstructor`. If SchemaInfoImpl is created by no-args-constructor from users, the schemaHash will be null. Note: We should remove this method as long as `@NoArgsConstructor` removed at major release to avoid null-check overhead.
    • toString

      public String toString()
      Overrides:
      toString in class Object