public class JSONSchema<T> extends AvroBaseStructSchema<T>
schemaLOG, reader, schemaInfo, schemaInfoProvider, writerBOOL, BYTEBUFFER, BYTES, DATE, DOUBLE, FLOAT, INSTANT, INT16, INT32, INT64, INT8, LOCAL_DATE, LOCAL_DATE_TIME, LOCAL_TIME, STRING, TIME, TIMESTAMP| 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
|
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) |
getAvroSchemadecode, decode, decode, decode, encode, getReader, getSchemaInfo, 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_NATIVE, PROTOBUF_NATIVE, PROTOBUF, PROTOBUF, requireFetchingSchemaInfo, supportSchemaVersioning, validatepublic 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.