public final class KeyValueSchemaInfo extends Object
| Modifier and Type | Method and Description |
|---|---|
static KeyValueEncodingType |
decodeKeyValueEncodingType(SchemaInfo schemaInfo)
Decode the kv encoding type from the schema info.
|
static KeyValue<SchemaInfo,SchemaInfo> |
decodeKeyValueSchemaInfo(SchemaInfo schemaInfo)
Decode the key/value schema info to get key schema info and value schema info.
|
static <K,V> SchemaInfo |
encodeKeyValueSchemaInfo(Schema<K> keySchema,
Schema<V> valueSchema,
KeyValueEncodingType keyValueEncodingType)
Encode key & value into schema into a KeyValue schema.
|
static <K,V> SchemaInfo |
encodeKeyValueSchemaInfo(String schemaName,
Schema<K> keySchema,
Schema<V> valueSchema,
KeyValueEncodingType keyValueEncodingType)
Encode key & value into schema into a KeyValue schema.
|
static SchemaInfo |
encodeKeyValueSchemaInfo(String schemaName,
SchemaInfo keySchemaInfo,
SchemaInfo valueSchemaInfo,
KeyValueEncodingType keyValueEncodingType)
Encode key & value into schema into a KeyValue schema.
|
public static KeyValueEncodingType decodeKeyValueEncodingType(SchemaInfo schemaInfo)
schemaInfo - the schema infopublic static <K,V> SchemaInfo encodeKeyValueSchemaInfo(Schema<K> keySchema, Schema<V> valueSchema, KeyValueEncodingType keyValueEncodingType)
keySchema - the key schemavalueSchema - the value schemakeyValueEncodingType - the encoding type to encode and decode key value pairpublic static <K,V> SchemaInfo encodeKeyValueSchemaInfo(String schemaName, Schema<K> keySchema, Schema<V> valueSchema, KeyValueEncodingType keyValueEncodingType)
schemaName - the final schema namekeySchema - the key schemavalueSchema - the value schemakeyValueEncodingType - the encoding type to encode and decode key value pairpublic static SchemaInfo encodeKeyValueSchemaInfo(String schemaName, SchemaInfo keySchemaInfo, SchemaInfo valueSchemaInfo, KeyValueEncodingType keyValueEncodingType)
schemaName - the final schema namekeySchemaInfo - the key schema infovalueSchemaInfo - the value schema infokeyValueEncodingType - the encoding type to encode and decode key value pairpublic static KeyValue<SchemaInfo,SchemaInfo> decodeKeyValueSchemaInfo(SchemaInfo schemaInfo)
schemaInfo - key/value schema info.Copyright © 2017–2020 Apache Software Foundation. All rights reserved.