public class JSONSchema<T> extends StructSchema<T>
LOG, reader, schema, schemaInfo, schemaInfoProvider, writer| Modifier and Type | Method and Description |
|---|---|
SchemaInfo |
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
|
protected SchemaReader<T> |
loadReader(BytesSchemaVersion schemaVersion)
Load the schema reader for reading messages encoded by the given schema version.
|
static <T> JSONSchema<T> |
of(Class<T> pojo) |
static <T> JSONSchema<T> |
of(Class<T> pojo,
Map<String,String> properties) |
static <T> JSONSchema<T> |
of(SchemaDefinition<T> schemaDefinition) |
createAvroSchema, decode, decode, decode, decode, encode, extractAvroSchema, getAvroSchema, getReader, getSchemaInfo, getSchemaInfoByVersion, parseAvroSchema, parseSchemaInfo, setReader, setSchemaInfoProvider, setWritercloneequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitAUTO_CONSUME, AUTO_PRODUCE_BYTES, AUTO_PRODUCE_BYTES, AUTO, AVRO, AVRO, configureSchemaInfo, generic, getSchema, JSON, JSON, KeyValue, KeyValue, KeyValue, KeyValue, KV_BYTES, PROTOBUF, PROTOBUF, requireFetchingSchemaInfo, supportSchemaVersioning, validateprotected SchemaReader<T> loadReader(BytesSchemaVersion schemaVersion)
StructSchemaloadReader in class StructSchema<T>schemaVersion - the provided schema versionpublic SchemaInfo getBackwardsCompatibleJsonSchemaInfo()
public static <T> JSONSchema<T> of(SchemaDefinition<T> schemaDefinition)
public static <T> JSONSchema<T> of(Class<T> pojo)
public static <T> JSONSchema<T> of(Class<T> pojo, Map<String,String> properties)
Copyright © 2017–2020 Apache Software Foundation. All rights reserved.