public class StringSchema extends AbstractSchema<String>
| Constructor and Description |
|---|
StringSchema() |
StringSchema(Charset charset) |
| Modifier and Type | Method and Description |
|---|---|
String |
decode(byte[] bytes) |
String |
decode(io.netty.buffer.ByteBuf byteBuf)
Decode a byteBuf into an object using the schema definition and deserializer implementation
|
byte[] |
encode(String message) |
static StringSchema |
fromSchemaInfo(SchemaInfo schemaInfo) |
SchemaInfo |
getSchemaInfo() |
static StringSchema |
utf8() |
clone, decodeequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitAUTO_CONSUME, AUTO_PRODUCE_BYTES, AUTO_PRODUCE_BYTES, AUTO, AVRO, AVRO, configureSchemaInfo, decode, generic, getSchema, JSON, JSON, KeyValue, KeyValue, KeyValue, KeyValue, KV_BYTES, PROTOBUF, PROTOBUF, requireFetchingSchemaInfo, setSchemaInfoProvider, supportSchemaVersioning, validatepublic StringSchema()
public StringSchema(Charset charset)
public static StringSchema fromSchemaInfo(SchemaInfo schemaInfo)
public static StringSchema utf8()
public byte[] encode(String message)
public String decode(byte[] bytes)
public String decode(io.netty.buffer.ByteBuf byteBuf)
AbstractSchemadecode in class AbstractSchema<String>byteBuf - the byte buffer to decodepublic SchemaInfo getSchemaInfo()
Copyright © 2017–2020 Apache Software Foundation. All rights reserved.