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.13.0)", date="2021-03-17") public class DictionaryPageHeader extends Object implements org.apache.thrift.TBase<DictionaryPageHeader,DictionaryPageHeader._Fields>, Serializable, Cloneable, Comparable<DictionaryPageHeader>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDictionaryPageHeader._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description EncodingencodingEncoding using this dictionary page *booleanis_sortedIf true, the entries in the dictionary are sorted in ascending order *static Map<DictionaryPageHeader._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapintnum_valuesNumber of values in the dictionary *
-
Constructor Summary
Constructors Constructor Description DictionaryPageHeader()DictionaryPageHeader(int num_values, Encoding encoding)DictionaryPageHeader(DictionaryPageHeader other)Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()intcompareTo(DictionaryPageHeader other)DictionaryPageHeaderdeepCopy()booleanequals(Object that)booleanequals(DictionaryPageHeader that)DictionaryPageHeader._FieldsfieldForId(int fieldId)EncodinggetEncoding()Encoding using this dictionary page *ObjectgetFieldValue(DictionaryPageHeader._Fields field)intgetNum_values()Number of values in the dictionary *inthashCode()booleanisIs_sorted()If true, the entries in the dictionary are sorted in ascending order *booleanisSet(DictionaryPageHeader._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetEncoding()Returns true if field encoding is set (has been assigned a value) and false otherwisebooleanisSetIs_sorted()Returns true if field is_sorted is set (has been assigned a value) and false otherwisebooleanisSetNum_values()Returns true if field num_values is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)DictionaryPageHeadersetEncoding(Encoding encoding)Encoding using this dictionary page *voidsetEncodingIsSet(boolean value)voidsetFieldValue(DictionaryPageHeader._Fields field, Object value)DictionaryPageHeadersetIs_sorted(boolean is_sorted)If true, the entries in the dictionary are sorted in ascending order *voidsetIs_sortedIsSet(boolean value)DictionaryPageHeadersetNum_values(int num_values)Number of values in the dictionary *voidsetNum_valuesIsSet(boolean value)StringtoString()voidunsetEncoding()voidunsetIs_sorted()voidunsetNum_values()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
num_values
public int num_values
Number of values in the dictionary *
-
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 Detail
-
DictionaryPageHeader
public DictionaryPageHeader()
-
DictionaryPageHeader
public DictionaryPageHeader(int num_values, Encoding encoding)
-
DictionaryPageHeader
public DictionaryPageHeader(DictionaryPageHeader other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public DictionaryPageHeader 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
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)
-
setEncoding
public DictionaryPageHeader setEncoding(Encoding encoding)
Encoding using this dictionary page *- See Also:
Encoding
-
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:
setFieldValuein interfaceorg.apache.thrift.TBase<DictionaryPageHeader,DictionaryPageHeader._Fields>
-
getFieldValue
public Object getFieldValue(DictionaryPageHeader._Fields field)
- Specified by:
getFieldValuein interfaceorg.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:
isSetin interfaceorg.apache.thrift.TBase<DictionaryPageHeader,DictionaryPageHeader._Fields>
-
equals
public boolean equals(DictionaryPageHeader that)
-
compareTo
public int compareTo(DictionaryPageHeader other)
- Specified by:
compareToin interfaceComparable<DictionaryPageHeader>
-
fieldForId
public DictionaryPageHeader._Fields fieldForId(int fieldId)
- 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
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
-