Class GenericJsonRecord

  • All Implemented Interfaces:
    org.apache.pulsar.client.api.schema.GenericObject, org.apache.pulsar.client.api.schema.GenericRecord

    public class GenericJsonRecord
    extends java.lang.Object
    Generic json record.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.List<org.apache.pulsar.client.api.schema.Field> fields  
      protected 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.Object getField​(java.lang.String fieldName)  
      java.util.List<org.apache.pulsar.client.api.schema.Field> getFields()  
      com.fasterxml.jackson.databind.JsonNode getJsonNode()  
      java.lang.Object getNativeObject()  
      org.apache.pulsar.common.schema.SchemaType getSchemaType()  
      byte[] getSchemaVersion()  
      • 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 Detail

      • schemaVersion

        protected final byte[] schemaVersion
      • fields

        protected final java.util.List<org.apache.pulsar.client.api.schema.Field> fields
    • Constructor Detail

      • GenericJsonRecord

        public 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 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:
        getSchemaVersion in interface org.apache.pulsar.client.api.schema.GenericRecord
      • getFields

        public java.util.List<org.apache.pulsar.client.api.schema.Field> getFields()
        Specified by:
        getFields in interface org.apache.pulsar.client.api.schema.GenericRecord