接口 GenericObject
- 所有已知子接口:
GenericRecord
public interface GenericObject
This is an abstraction over the logical value that is store into a Message.
Pulsar decodes the payload of the Message using the Schema that is configured for the topic.
-
方法概要
修饰符和类型方法说明Return the internal native representation of the Object, like a AVRO GenericRecord, a String or a byte[].Return the schema tyoe.
-
方法详细资料
-
getSchemaType
SchemaType getSchemaType()Return the schema tyoe.- 返回:
- the schema type
- 抛出:
UnsupportedOperationException
- if this feature is not implemented- 另请参阅:
-
getNativeObject
Object getNativeObject()Return the internal native representation of the Object, like a AVRO GenericRecord, a String or a byte[].- 返回:
- the decoded object
- 抛出:
UnsupportedOperationException
- if the operation is not supported
-