Class PartitionData

  • All Implemented Interfaces:
    java.io.Serializable, org.apache.avro.generic.GenericContainer, org.apache.avro.generic.IndexedRecord, org.apache.avro.specific.SpecificData.SchemaConstructable, StructLike

    public class PartitionData
    extends java.lang.Object
    implements org.apache.avro.generic.IndexedRecord, StructLike, org.apache.avro.specific.SpecificData.SchemaConstructable, java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Detail

    • Method Detail

      • getSchema

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

        public Type getType​(int pos)
      • clear

        public void clear()
      • size

        public int size()
        Specified by:
        size in interface StructLike
      • get

        public <T> T get​(int pos,
                         java.lang.Class<T> javaClass)
        Specified by:
        get in interface StructLike
      • get

        public java.lang.Object get​(int pos)
        Specified by:
        get in interface org.apache.avro.generic.IndexedRecord
      • set

        public <T> void set​(int pos,
                            T value)
        Specified by:
        set in interface StructLike
      • put

        public void put​(int i,
                        java.lang.Object v)
        Specified by:
        put in interface org.apache.avro.generic.IndexedRecord
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • copyData

        public static java.lang.Object[] copyData​(Types.StructType type,
                                                  java.lang.Object[] data)