Class GenericJsonRecord
- java.lang.Object
-
- org.apache.pulsar.client.impl.schema.generic.GenericJsonRecord
-
- All Implemented Interfaces:
org.apache.pulsar.client.api.schema.GenericObject,org.apache.pulsar.client.api.schema.GenericRecord
public class GenericJsonRecord extends java.lang.ObjectGeneric json record.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<org.apache.pulsar.client.api.schema.Field>fieldsprotected byte[]schemaVersion
-
Constructor Summary
Constructors Constructor Description GenericJsonRecord(byte[] schemaVersion, java.util.List<org.apache.pulsar.client.api.schema.Field> fields, com.fasterxml.jackson.databind.JsonNode jn, org.apache.pulsar.common.schema.SchemaInfo schemaInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetField(java.lang.String fieldName)java.util.List<org.apache.pulsar.client.api.schema.Field>getFields()com.fasterxml.jackson.databind.JsonNodegetJsonNode()java.lang.ObjectgetNativeObject()org.apache.pulsar.common.schema.SchemaTypegetSchemaType()byte[]getSchemaVersion()
-
-
-
Method Detail
-
getJsonNode
public com.fasterxml.jackson.databind.JsonNode getJsonNode()
-
getField
public java.lang.Object getField(java.lang.String fieldName)
-
getNativeObject
public java.lang.Object getNativeObject()
-
getSchemaType
public org.apache.pulsar.common.schema.SchemaType getSchemaType()
-
getSchemaVersion
public byte[] getSchemaVersion()
- Specified by:
getSchemaVersionin interfaceorg.apache.pulsar.client.api.schema.GenericRecord
-
getFields
public java.util.List<org.apache.pulsar.client.api.schema.Field> getFields()
- Specified by:
getFieldsin interfaceorg.apache.pulsar.client.api.schema.GenericRecord
-
-