类 JSONSchema<T>
java.lang.Object
org.apache.pulsar.client.impl.schema.AbstractSchema<T>
org.apache.pulsar.client.impl.schema.AbstractStructSchema<T>
org.apache.pulsar.client.impl.schema.AvroBaseStructSchema<T>
org.apache.pulsar.client.impl.schema.JSONSchema<T>
A schema implementation to deal with json data.
-
字段概要
从类继承的字段 org.apache.pulsar.client.impl.schema.AvroBaseStructSchema
schema从类继承的字段 org.apache.pulsar.client.impl.schema.AbstractStructSchema
LOG, reader, schemaInfo, schemaInfoProvider, writer从接口继承的字段 org.apache.pulsar.client.api.Schema
BOOL, BYTEBUFFER, BYTES, DATE, DOUBLE, FLOAT, INSTANT, INT16, INT32, INT64, INT8, LOCAL_DATE, LOCAL_DATE_TIME, LOCAL_TIME, STRING, TIME, TIMESTAMP -
方法概要
修饰符和类型方法说明static voidClears the caches tied to the ObjectMapper instances and replaces the singleton ObjectMapper instance.Implemented for backwards compatibility reasons.static <T> JSONSchema<T>static <T> JSONSchema<T>static <T> JSONSchema<T>of(SchemaDefinition<T> schemaDefinition) 从类继承的方法 org.apache.pulsar.client.impl.schema.AvroBaseStructSchema
getAvroSchema, getNativeSchema从类继承的方法 org.apache.pulsar.client.impl.schema.AbstractStructSchema
atSchemaVersion, decode, decode, decode, decode, decode, decode, encode, getReader, getSchemaInfo, setReader, setSchemaInfoProvider, setWriter从类继承的方法 org.apache.pulsar.client.impl.schema.AbstractSchema
clone从类继承的方法 java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.apache.pulsar.client.api.Schema
configureSchemaInfo, requireFetchingSchemaInfo, supportSchemaVersioning, validate
-
方法详细资料
-
getBackwardsCompatibleJsonSchemaInfo
Implemented for backwards compatibility reasons. since the original schema generated by JSONSchema was based off the json schema standard since then we have standardized on Avro- 返回:
-
of
-
of
-
of
-
clearCaches
public static void clearCaches()Clears the caches tied to the ObjectMapper instances and replaces the singleton ObjectMapper instance. This can be used in tests to ensure that classloaders and class references don't leak across tests.
-