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
Generic json record.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<org.apache.pulsar.client.api.schema.Field>protected final byte[] -
Constructor Summary
ConstructorsConstructorDescriptionGenericJsonRecord(byte[] schemaVersion, List<org.apache.pulsar.client.api.schema.Field> fields, com.fasterxml.jackson.databind.JsonNode jn, org.apache.pulsar.common.schema.SchemaInfo schemaInfo) -
Method Summary
Modifier and TypeMethodDescriptionList<org.apache.pulsar.client.api.schema.Field>com.fasterxml.jackson.databind.JsonNodeorg.apache.pulsar.common.schema.SchemaTypebyte[]Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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<org.apache.pulsar.client.api.schema.Field> fields, com.fasterxml.jackson.databind.JsonNode jn, org.apache.pulsar.common.schema.SchemaInfo schemaInfo)
-
-
Method Details
-
getJsonNode
public com.fasterxml.jackson.databind.JsonNode getJsonNode() -
getField
-
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
- Specified by:
getFieldsin interfaceorg.apache.pulsar.client.api.schema.GenericRecord
-