类 ProtobufNativeSchema<T extends com.google.protobuf.GeneratedMessageV3>
- java.lang.Object
-
- org.apache.pulsar.client.impl.schema.AbstractSchema<T>
-
- org.apache.pulsar.client.impl.schema.AbstractStructSchema<T>
-
- org.apache.pulsar.client.impl.schema.ProtobufNativeSchema<T>
-
- 所有已实现的接口:
java.lang.Cloneable
,org.apache.pulsar.client.api.Schema<T>
public class ProtobufNativeSchema<T extends com.google.protobuf.GeneratedMessageV3> extends AbstractStructSchema<T>
A schema implementation to deal with protobuf generated messages.
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static class
ProtobufNativeSchema.ProtoBufParsingInfo
-
字段概要
字段 修饰符和类型 字段 说明 static java.lang.String
PARSING_INFO_PROPERTY
-
从类继承的字段 org.apache.pulsar.client.impl.schema.AbstractStructSchema
LOG, reader, schemaInfo, schemaInfoProvider, writer
-
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 java.util.Optional<java.lang.Object>
getNativeSchema()
com.google.protobuf.Descriptors.Descriptor
getProtobufNativeSchema()
static <T extends com.google.protobuf.GeneratedMessageV3>
ProtobufNativeSchema<T>of(java.lang.Class<T> pojo)
static <T extends com.google.protobuf.GeneratedMessageV3>
ProtobufNativeSchema<T>of(java.lang.Class pojo, java.util.Map<java.lang.String,java.lang.String> properties)
static <T> ProtobufNativeSchema
of(org.apache.pulsar.client.api.schema.SchemaDefinition<T> schemaDefinition)
static <T> ProtobufNativeSchema
ofGenericClass(java.lang.Class<T> pojo, java.util.Map<java.lang.String,java.lang.String> properties)
-
从类继承的方法 org.apache.pulsar.client.impl.schema.AbstractStructSchema
atSchemaVersion, decode, decode, decode, decode, encode, getReader, getSchemaInfo, setReader, setSchemaInfoProvider, setWriter
-
从类继承的方法 org.apache.pulsar.client.impl.schema.AbstractSchema
clone
-
-
-
-
字段详细资料
-
PARSING_INFO_PROPERTY
public static final java.lang.String PARSING_INFO_PROPERTY
- 另请参阅:
- 常量字段值
-
-
方法详细资料
-
getProtobufNativeSchema
public com.google.protobuf.Descriptors.Descriptor getProtobufNativeSchema()
-
getNativeSchema
public java.util.Optional<java.lang.Object> getNativeSchema()
-
of
public static <T extends com.google.protobuf.GeneratedMessageV3> ProtobufNativeSchema<T> of(java.lang.Class<T> pojo)
-
ofGenericClass
public static <T> ProtobufNativeSchema ofGenericClass(java.lang.Class<T> pojo, java.util.Map<java.lang.String,java.lang.String> properties)
-
of
public static <T> ProtobufNativeSchema of(org.apache.pulsar.client.api.schema.SchemaDefinition<T> schemaDefinition)
-
of
public static <T extends com.google.protobuf.GeneratedMessageV3> ProtobufNativeSchema<T> of(java.lang.Class pojo, java.util.Map<java.lang.String,java.lang.String> properties)
-
-