Class GenericJsonRecord
java.lang.Object
org.apache.pulsar.client.impl.schema.generic.GenericJsonRecord
- All Implemented Interfaces:
GenericObject
,GenericRecord
Generic json record.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final byte[]
-
Constructor Summary
ConstructorDescriptionGenericJsonRecord
(byte[] schemaVersion, List<Field> fields, com.fasterxml.jackson.databind.JsonNode jn, SchemaInfo schemaInfo) -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
byte[]
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.pulsar.client.api.schema.GenericRecord
getField
-
Field Details
-
schemaVersion
protected final byte[] schemaVersion -
fields
-
-
Constructor Details
-
GenericJsonRecord
public GenericJsonRecord(byte[] schemaVersion, List<Field> fields, com.fasterxml.jackson.databind.JsonNode jn, SchemaInfo schemaInfo)
-
-
Method Details
-
getJsonNode
public com.fasterxml.jackson.databind.JsonNode getJsonNode() -
getField
-
getNativeObject
-
getSchemaType
-
getSchemaVersion
public byte[] getSchemaVersion()- Specified by:
getSchemaVersion
in interfaceGenericRecord
-
getFields
- Specified by:
getFields
in interfaceGenericRecord
-