Class NonRecordContainer<T>

  • All Implemented Interfaces:
    org.apache.avro.generic.GenericContainer

    public class NonRecordContainer<T>
    extends Object
    implements org.apache.avro.generic.GenericContainer
    Wrapper for all non-record types that includes the schema for the data.
    • Constructor Detail

      • NonRecordContainer

        public NonRecordContainer​(org.apache.avro.Schema schema,
                                  T value)
    • Method Detail

      • getSchema

        public org.apache.avro.Schema getSchema()
        Specified by:
        getSchema in interface org.apache.avro.generic.GenericContainer
      • getValue

        public Object getValue()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object