Package org.apache.parquet.format
Class OffsetIndex
java.lang.Object
org.apache.parquet.format.OffsetIndex
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<OffsetIndex>,org.apache.thrift.TBase<OffsetIndex,,OffsetIndex._Fields> org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.23.0)",
date="2026-08-06")
public class OffsetIndex
extends Object
implements org.apache.thrift.TBase<OffsetIndex,OffsetIndex._Fields>, Serializable, Cloneable, Comparable<OffsetIndex>
Optional offsets for each data page in a ColumnChunk.
Forms part of the page index, along with ColumnIndex.
OffsetIndex may be present even if ColumnIndex is not.
- 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 TypeFieldDescriptionstatic final Map<OffsetIndex._Fields,org.apache.thrift.meta_data.FieldMetaData> PageLocations, ordered by increasing PageLocation.offset.Unencoded/uncompressed size for BYTE_ARRAY types. -
Constructor Summary
ConstructorsConstructorDescriptionOffsetIndex(List<PageLocation> page_locations) OffsetIndex(OffsetIndex other) Performs a deep copy on other. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddToUnencoded_byte_array_data_bytes(long elem) voidclear()intcompareTo(OffsetIndex other) deepCopy()booleanbooleanequals(OffsetIndex that) fieldForId(int fieldId) getFieldValue(OffsetIndex._Fields field) PageLocations, ordered by increasing PageLocation.offset.intUnencoded/uncompressed size for BYTE_ARRAY types.intinthashCode()booleanisSet(OffsetIndex._Fields field) Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanReturns true if field page_locations is set (has been assigned a value) and false otherwisebooleanReturns true if field unencoded_byte_array_data_bytes is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot) voidsetFieldValue(OffsetIndex._Fields field, Object value) setPage_locations(List<PageLocation> page_locations) PageLocations, ordered by increasing PageLocation.offset.voidsetPage_locationsIsSet(boolean value) setUnencoded_byte_array_data_bytes(List<Long> unencoded_byte_array_data_bytes) Unencoded/uncompressed size for BYTE_ARRAY types.voidsetUnencoded_byte_array_data_bytesIsSet(boolean value) toString()voidvoidvoidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
page_locations
PageLocations, ordered by increasing PageLocation.offset. It is required that page_locations[i].first_row_index < page_locations[i+1].first_row_index. -
unencoded_byte_array_data_bytes
Unencoded/uncompressed size for BYTE_ARRAY types. See documentation for unencoded_byte_array_data_bytes in SizeStatistics for more details on this field. -
metaDataMap
-
-
Constructor Details
-
OffsetIndex
public OffsetIndex() -
OffsetIndex
-
OffsetIndex
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<OffsetIndex,OffsetIndex._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<OffsetIndex,OffsetIndex._Fields>
-
getPage_locationsSize
public int getPage_locationsSize() -
getPage_locationsIterator
-
addToPage_locations
-
getPage_locations
PageLocations, ordered by increasing PageLocation.offset. It is required that page_locations[i].first_row_index < page_locations[i+1].first_row_index. -
setPage_locations
PageLocations, ordered by increasing PageLocation.offset. It is required that page_locations[i].first_row_index < page_locations[i+1].first_row_index. -
unsetPage_locations
public void unsetPage_locations() -
isSetPage_locations
public boolean isSetPage_locations()Returns true if field page_locations is set (has been assigned a value) and false otherwise -
setPage_locationsIsSet
public void setPage_locationsIsSet(boolean value) -
getUnencoded_byte_array_data_bytesSize
public int getUnencoded_byte_array_data_bytesSize() -
getUnencoded_byte_array_data_bytesIterator
-
addToUnencoded_byte_array_data_bytes
public void addToUnencoded_byte_array_data_bytes(long elem) -
getUnencoded_byte_array_data_bytes
Unencoded/uncompressed size for BYTE_ARRAY types. See documentation for unencoded_byte_array_data_bytes in SizeStatistics for more details on this field. -
setUnencoded_byte_array_data_bytes
Unencoded/uncompressed size for BYTE_ARRAY types. See documentation for unencoded_byte_array_data_bytes in SizeStatistics for more details on this field. -
unsetUnencoded_byte_array_data_bytes
public void unsetUnencoded_byte_array_data_bytes() -
isSetUnencoded_byte_array_data_bytes
public boolean isSetUnencoded_byte_array_data_bytes()Returns true if field unencoded_byte_array_data_bytes is set (has been assigned a value) and false otherwise -
setUnencoded_byte_array_data_bytesIsSet
public void setUnencoded_byte_array_data_bytesIsSet(boolean value) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<OffsetIndex,OffsetIndex._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<OffsetIndex,OffsetIndex._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<OffsetIndex,OffsetIndex._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<OffsetIndex>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<OffsetIndex,OffsetIndex._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
-