Class SchemaInfoImpl

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

@Public @Stable public class SchemaInfoImpl extends Object implements SchemaInfo
Information about the schema.
  • Constructor Details

  • Method Details

    • getSchemaDefinition

      public String getSchemaDefinition()
      Specified by:
      getSchemaDefinition in interface 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