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 java.lang.Object implements org.apache.pulsar.common.schema.SchemaInfoInformation about the schema.
-
-
Constructor Summary
Constructors Constructor Description SchemaInfoImpl(java.lang.String name, byte[] schema, org.apache.pulsar.common.schema.SchemaType type, long timestamp, java.util.Map<java.lang.String,java.lang.String> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetSchemaDefinition()SchemaHashgetSchemaHash()Calculate the SchemaHash for compatible with `@NoArgsConstructor`.java.lang.StringtoString()
-
-
-
Method Detail
-
getSchemaDefinition
public java.lang.String getSchemaDefinition()
- Specified by:
getSchemaDefinitionin interfaceorg.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 java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-