Package org.apache.parquet.format
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
FieldsModifier and TypeFieldDescriptionEncoding using this dictionary page *booleanIf true, the entries in the dictionary are sorted in ascending order *static final Map<DictionaryPageHeader._Fields,org.apache.thrift.meta_data.FieldMetaData> intNumber of values in the dictionary * -
Constructor Summary
ConstructorsConstructorDescriptionDictionaryPageHeader(int num_values, Encoding encoding) Performs a deep copy on other. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()intcompareTo(DictionaryPageHeader other) deepCopy()booleanbooleanequals(DictionaryPageHeader that) fieldForId(int fieldId) Encoding using this dictionary page *intNumber of values in the dictionary *inthashCode()booleanIf true, the entries in the dictionary are sorted in ascending order *booleanReturns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanReturns true if field encoding is set (has been assigned a value) and false otherwisebooleanReturns true if field is_sorted is set (has been assigned a value) and false otherwisebooleanReturns true if field num_values is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot) setEncoding(Encoding encoding) Encoding using this dictionary page *voidsetEncodingIsSet(boolean value) voidsetFieldValue(DictionaryPageHeader._Fields field, Object value) setIs_sorted(boolean is_sorted) If true, the entries in the dictionary are sorted in ascending order *voidsetIs_sortedIsSet(boolean value) setNum_values(int num_values) Number of values in the dictionary *voidsetNum_valuesIsSet(boolean value) toString()voidvoidvoidvoidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
num_values
public int num_valuesNumber of values in the dictionary * -
encoding
Encoding using this dictionary page *- See Also:
-
is_sorted
public boolean is_sortedIf 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
-
DictionaryPageHeader
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<DictionaryPageHeader,DictionaryPageHeader._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<DictionaryPageHeader,DictionaryPageHeader._Fields>
-
getNum_values
public int getNum_values()Number of values in the dictionary * -
setNum_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
Encoding using this dictionary page *- See Also:
-
setEncoding
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
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
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<DictionaryPageHeader,DictionaryPageHeader._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<DictionaryPageHeader,DictionaryPageHeader._Fields>
-
isSet
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.thrift.TBase<DictionaryPageHeader,DictionaryPageHeader._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<DictionaryPageHeader>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<DictionaryPageHeader,DictionaryPageHeader._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException - Specified by:
readin interfaceorg.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:
writein interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
toString
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-