| Modifier and Type | Method and Description |
|---|---|
KeyValue<K,V> |
decode(byte[] bytes) |
byte[] |
encode(KeyValue<K,V> message) |
SchemaInfo |
getSchemaInfo() |
static Schema<KeyValue<byte[],byte[]>> |
kvBytes() |
static <K,V> Schema<KeyValue<K,V>> |
of(Class<K> key,
Class<V> value,
SchemaType type)
Key Value Schema using passed in schema type, support JSON and AVRO currently.
|
static <K,V> Schema<KeyValue<K,V>> |
of(Schema<K> keySchema,
Schema<V> valueSchema) |
public static <K,V> Schema<KeyValue<K,V>> of(Class<K> key, Class<V> value, SchemaType type)
public SchemaInfo getSchemaInfo()
getSchemaInfo in interface Schema<KeyValue<K,V>>Copyright © 2017–2019 Apache Software Foundation. All rights reserved.