Class DictionaryPageHeader

java.lang.Object
org.apache.parquet.format.DictionaryPageHeader
All Implemented Interfaces:
Serializable, Cloneable, Comparable<DictionaryPageHeader>, org.apache.thrift.TBase<DictionaryPageHeader,DictionaryPageHeader._Fields>, org.apache.thrift.TSerializable

@Generated(value="Autogenerated by Thrift Compiler (0.23.0)", date="2026-08-06") public class DictionaryPageHeader extends Object implements org.apache.thrift.TBase<DictionaryPageHeader,DictionaryPageHeader._Fields>, Serializable, Cloneable, Comparable<DictionaryPageHeader>
The dictionary page must be placed at the first position of the column chunk if it is partly or completely dictionary encoded. At most one dictionary page can be placed in a column chunk.
See Also:
  • Field Details

    • num_values

      public int num_values
      Number of values in the dictionary *
    • encoding

      public Encoding encoding
      Encoding using this dictionary page *
      See Also:
    • is_sorted

      public boolean is_sorted
      If true, the entries in the dictionary are sorted in ascending order *
    • metaDataMap

      public static final Map<DictionaryPageHeader._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
  • Constructor Details

    • DictionaryPageHeader

      public DictionaryPageHeader()
    • DictionaryPageHeader

      public DictionaryPageHeader(int num_values, Encoding encoding)
    • DictionaryPageHeader

      public DictionaryPageHeader(DictionaryPageHeader other)
      Performs a deep copy on other.
  • Method Details

    • deepCopy

      public DictionaryPageHeader deepCopy()
      Specified by:
      deepCopy in interface org.apache.thrift.TBase<DictionaryPageHeader,DictionaryPageHeader._Fields>
    • clear

      public void clear()
      Specified by:
      clear in interface org.apache.thrift.TBase<DictionaryPageHeader,DictionaryPageHeader._Fields>
    • getNum_values

      public int getNum_values()
      Number of values in the dictionary *
    • setNum_values

      public DictionaryPageHeader setNum_values(int num_values)
      Number of values in the dictionary *
    • unsetNum_values

      public void unsetNum_values()
    • isSetNum_values

      public boolean isSetNum_values()
      Returns true if field num_values is set (has been assigned a value) and false otherwise
    • setNum_valuesIsSet

      public void setNum_valuesIsSet(boolean value)
    • getEncoding

      public Encoding getEncoding()
      Encoding using this dictionary page *
      See Also:
    • setEncoding

      public DictionaryPageHeader setEncoding(Encoding encoding)
      Encoding using this dictionary page *
      See Also:
    • unsetEncoding

      public void unsetEncoding()
    • isSetEncoding

      public boolean isSetEncoding()
      Returns true if field encoding is set (has been assigned a value) and false otherwise
    • setEncodingIsSet

      public void setEncodingIsSet(boolean value)
    • isIs_sorted

      public boolean isIs_sorted()
      If true, the entries in the dictionary are sorted in ascending order *
    • setIs_sorted

      public DictionaryPageHeader setIs_sorted(boolean is_sorted)
      If true, the entries in the dictionary are sorted in ascending order *
    • unsetIs_sorted

      public void unsetIs_sorted()
    • isSetIs_sorted

      public boolean isSetIs_sorted()
      Returns true if field is_sorted is set (has been assigned a value) and false otherwise
    • setIs_sortedIsSet

      public void setIs_sortedIsSet(boolean value)
    • setFieldValue

      public void setFieldValue(DictionaryPageHeader._Fields field, Object value)
      Specified by:
      setFieldValue in interface org.apache.thrift.TBase<DictionaryPageHeader,DictionaryPageHeader._Fields>
    • getFieldValue

      public Object getFieldValue(DictionaryPageHeader._Fields field)
      Specified by:
      getFieldValue in interface org.apache.thrift.TBase<DictionaryPageHeader,DictionaryPageHeader._Fields>
    • isSet

      public boolean isSet(DictionaryPageHeader._Fields field)
      Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
      Specified by:
      isSet in interface org.apache.thrift.TBase<DictionaryPageHeader,DictionaryPageHeader._Fields>
    • equals

      public boolean equals(Object that)
      Overrides:
      equals in class Object
    • equals

      public boolean equals(DictionaryPageHeader that)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(DictionaryPageHeader other)
      Specified by:
      compareTo in interface Comparable<DictionaryPageHeader>
    • fieldForId

      public DictionaryPageHeader._Fields fieldForId(int fieldId)
      Specified by:
      fieldForId in interface org.apache.thrift.TBase<DictionaryPageHeader,DictionaryPageHeader._Fields>
    • read

      public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
      Specified by:
      read in interface org.apache.thrift.TSerializable
      Throws:
      org.apache.thrift.TException
    • write

      public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
      Specified by:
      write in interface org.apache.thrift.TSerializable
      Throws:
      org.apache.thrift.TException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validate

      public void validate() throws org.apache.thrift.TException
      Throws:
      org.apache.thrift.TException