Package org.apache.parquet.format
Class PageLocation
- java.lang.Object
-
- org.apache.parquet.format.PageLocation
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<PageLocation>,org.apache.thrift.TBase<PageLocation,PageLocation._Fields>,org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.13.0)", date="2021-09-30") public class PageLocation extends Object implements org.apache.thrift.TBase<PageLocation,PageLocation._Fields>, Serializable, Cloneable, Comparable<PageLocation>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPageLocation._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description intcompressed_page_sizeSize of the page, including header.longfirst_row_indexIndex within the RowGroup of the first row of the page; this means pages change on record boundaries (r = 0).static Map<PageLocation._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMaplongoffsetOffset of the page in the file *
-
Constructor Summary
Constructors Constructor Description PageLocation()PageLocation(long offset, int compressed_page_size, long first_row_index)PageLocation(PageLocation other)Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()intcompareTo(PageLocation other)PageLocationdeepCopy()booleanequals(Object that)booleanequals(PageLocation that)PageLocation._FieldsfieldForId(int fieldId)intgetCompressed_page_size()Size of the page, including header.ObjectgetFieldValue(PageLocation._Fields field)longgetFirst_row_index()Index within the RowGroup of the first row of the page; this means pages change on record boundaries (r = 0).longgetOffset()Offset of the page in the file *inthashCode()booleanisSet(PageLocation._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetCompressed_page_size()Returns true if field compressed_page_size is set (has been assigned a value) and false otherwisebooleanisSetFirst_row_index()Returns true if field first_row_index is set (has been assigned a value) and false otherwisebooleanisSetOffset()Returns true if field offset is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)PageLocationsetCompressed_page_size(int compressed_page_size)Size of the page, including header.voidsetCompressed_page_sizeIsSet(boolean value)voidsetFieldValue(PageLocation._Fields field, Object value)PageLocationsetFirst_row_index(long first_row_index)Index within the RowGroup of the first row of the page; this means pages change on record boundaries (r = 0).voidsetFirst_row_indexIsSet(boolean value)PageLocationsetOffset(long offset)Offset of the page in the file *voidsetOffsetIsSet(boolean value)StringtoString()voidunsetCompressed_page_size()voidunsetFirst_row_index()voidunsetOffset()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
offset
public long offset
Offset of the page in the file *
-
compressed_page_size
public int compressed_page_size
Size of the page, including header. Sum of compressed_page_size and header length
-
first_row_index
public long first_row_index
Index within the RowGroup of the first row of the page; this means pages change on record boundaries (r = 0).
-
metaDataMap
public static final Map<PageLocation._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
PageLocation
public PageLocation()
-
PageLocation
public PageLocation(long offset, int compressed_page_size, long first_row_index)
-
PageLocation
public PageLocation(PageLocation other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public PageLocation deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<PageLocation,PageLocation._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.thrift.TBase<PageLocation,PageLocation._Fields>
-
getOffset
public long getOffset()
Offset of the page in the file *
-
setOffset
public PageLocation setOffset(long offset)
Offset of the page in the file *
-
unsetOffset
public void unsetOffset()
-
isSetOffset
public boolean isSetOffset()
Returns true if field offset is set (has been assigned a value) and false otherwise
-
setOffsetIsSet
public void setOffsetIsSet(boolean value)
-
getCompressed_page_size
public int getCompressed_page_size()
Size of the page, including header. Sum of compressed_page_size and header length
-
setCompressed_page_size
public PageLocation setCompressed_page_size(int compressed_page_size)
Size of the page, including header. Sum of compressed_page_size and header length
-
unsetCompressed_page_size
public void unsetCompressed_page_size()
-
isSetCompressed_page_size
public boolean isSetCompressed_page_size()
Returns true if field compressed_page_size is set (has been assigned a value) and false otherwise
-
setCompressed_page_sizeIsSet
public void setCompressed_page_sizeIsSet(boolean value)
-
getFirst_row_index
public long getFirst_row_index()
Index within the RowGroup of the first row of the page; this means pages change on record boundaries (r = 0).
-
setFirst_row_index
public PageLocation setFirst_row_index(long first_row_index)
Index within the RowGroup of the first row of the page; this means pages change on record boundaries (r = 0).
-
unsetFirst_row_index
public void unsetFirst_row_index()
-
isSetFirst_row_index
public boolean isSetFirst_row_index()
Returns true if field first_row_index is set (has been assigned a value) and false otherwise
-
setFirst_row_indexIsSet
public void setFirst_row_indexIsSet(boolean value)
-
setFieldValue
public void setFieldValue(PageLocation._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<PageLocation,PageLocation._Fields>
-
getFieldValue
public Object getFieldValue(PageLocation._Fields field)
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<PageLocation,PageLocation._Fields>
-
isSet
public boolean isSet(PageLocation._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<PageLocation,PageLocation._Fields>
-
equals
public boolean equals(PageLocation that)
-
compareTo
public int compareTo(PageLocation other)
- Specified by:
compareToin interfaceComparable<PageLocation>
-
fieldForId
public PageLocation._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<PageLocation,PageLocation._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
-
-