| Modifier and Type | Method and Description |
|---|---|
T |
decode(byte[] bytes) |
byte[] |
encode(T message) |
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
|
SchemaInfo |
getSchemaInfo() |
static <T> JSONSchema<T> |
of(Class<T> pojo) |
static <T> JSONSchema<T> |
of(Class<T> pojo,
Map<String,String> properties) |
public byte[] encode(T message) throws SchemaSerializationException
encode in interface Schema<T>SchemaSerializationExceptionpublic SchemaInfo getSchemaInfo()
getSchemaInfo in interface Schema<T>public SchemaInfo getBackwardsCompatibleJsonSchemaInfo()
public static <T> JSONSchema<T> of(Class<T> pojo)
public static <T> JSONSchema<T> of(Class<T> pojo, Map<String,String> properties)
Copyright © 2017–2019 Apache Software Foundation. All rights reserved.