Class SchemaInfoImpl
java.lang.Object
org.apache.pulsar.client.impl.schema.SchemaInfoImpl
- All Implemented Interfaces:
SchemaInfo
Information about the schema.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.pulsar.common.schema.SchemaInfo
SchemaInfo.SchemaInfoBuilder -
Constructor Summary
ConstructorsConstructorDescriptionSchemaInfoImpl(String name, byte[] schema, SchemaType type, long timestamp, Map<String, String> properties) -
Method Summary
Modifier and TypeMethodDescriptionCalculate the SchemaHash for compatible with `@NoArgsConstructor`.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.pulsar.common.schema.SchemaInfo
getName, getProperties, getSchema, getTimestamp, getType
-
Constructor Details
-
SchemaInfoImpl
public SchemaInfoImpl(String name, byte[] schema, SchemaType type, long timestamp, Map<String, String> properties)
-
-
Method Details
-
getSchemaDefinition
- Specified by:
getSchemaDefinitionin interfaceSchemaInfo
-
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
-