public class ProtobufSchema<T extends com.google.protobuf.GeneratedMessageV3> extends StructSchema<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
ProtobufSchema.ProtoBufParsingInfo |
| Modifier and Type | Field and Description |
|---|---|
static String |
PARSING_INFO_PROPERTY |
LOG, reader, schema, schemaInfo, schemaInfoProvider, writer| Modifier and Type | Method and Description |
|---|---|
protected SchemaReader<T> |
loadReader(BytesSchemaVersion schemaVersion)
Load the schema reader for reading messages encoded by the given schema version.
|
static <T extends com.google.protobuf.GeneratedMessageV3> |
of(Class<T> pojo) |
static <T extends com.google.protobuf.GeneratedMessageV3> |
of(Class pojo,
Map<String,String> properties) |
static <T> ProtobufSchema |
of(SchemaDefinition<T> schemaDefinition) |
static <T> ProtobufSchema |
ofGenericClass(Class<T> pojo,
Map<String,String> properties) |
createAvroSchema, decode, decode, decode, decode, encode, getAvroSchema, getReader, getSchemaInfo, getSchemaInfoByVersion, parseAvroSchema, parseSchemaInfo, setReader, setSchemaInfoProvider, setWriterclone, equals, 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, PROTOBUF, requireFetchingSchemaInfo, supportSchemaVersioning, validatepublic static final String PARSING_INFO_PROPERTY
protected SchemaReader<T> loadReader(BytesSchemaVersion schemaVersion)
StructSchemaloadReader in class StructSchema<T extends com.google.protobuf.GeneratedMessageV3>schemaVersion - the provided schema versionpublic static <T extends com.google.protobuf.GeneratedMessageV3> ProtobufSchema<T> of(Class<T> pojo)
public static <T> ProtobufSchema ofGenericClass(Class<T> pojo, Map<String,String> properties)
public static <T> ProtobufSchema of(SchemaDefinition<T> schemaDefinition)
public static <T extends com.google.protobuf.GeneratedMessageV3> ProtobufSchema<T> of(Class pojo, Map<String,String> properties)
Copyright © 2017–2020 Apache Software Foundation. All rights reserved.