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.13.0)", date="2021-03-17") public class OffsetIndex extends Object implements org.apache.thrift.TBase<OffsetIndex,OffsetIndex._Fields>, Serializable, Cloneable, Comparable<OffsetIndex>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOffsetIndex._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description static Map<OffsetIndex._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapList<PageLocation>page_locationsPageLocations, ordered by increasing PageLocation.offset.
-
Constructor Summary
Constructors Constructor Description OffsetIndex()OffsetIndex(List<PageLocation> page_locations)OffsetIndex(OffsetIndex other)Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToPage_locations(PageLocation elem)voidclear()intcompareTo(OffsetIndex other)OffsetIndexdeepCopy()booleanequals(Object that)booleanequals(OffsetIndex that)OffsetIndex._FieldsfieldForId(int fieldId)ObjectgetFieldValue(OffsetIndex._Fields field)List<PageLocation>getPage_locations()PageLocations, ordered by increasing PageLocation.offset.Iterator<PageLocation>getPage_locationsIterator()intgetPage_locationsSize()inthashCode()booleanisSet(OffsetIndex._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetPage_locations()Returns true if field page_locations is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)voidsetFieldValue(OffsetIndex._Fields field, Object value)OffsetIndexsetPage_locations(List<PageLocation> page_locations)PageLocations, ordered by increasing PageLocation.offset.voidsetPage_locationsIsSet(boolean value)StringtoString()voidunsetPage_locations()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
page_locations
public List<PageLocation> 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.
-
metaDataMap
public static final Map<OffsetIndex._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
OffsetIndex
public OffsetIndex()
-
OffsetIndex
public OffsetIndex(List<PageLocation> page_locations)
-
OffsetIndex
public OffsetIndex(OffsetIndex other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public OffsetIndex 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
public Iterator<PageLocation> getPage_locationsIterator()
-
addToPage_locations
public void addToPage_locations(PageLocation elem)
-
getPage_locations
public List<PageLocation> 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
public OffsetIndex setPage_locations(List<PageLocation> 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.
-
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)
-
setFieldValue
public void setFieldValue(OffsetIndex._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<OffsetIndex,OffsetIndex._Fields>
-
getFieldValue
public Object getFieldValue(OffsetIndex._Fields field)
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<OffsetIndex,OffsetIndex._Fields>
-
isSet
public boolean isSet(OffsetIndex._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<OffsetIndex,OffsetIndex._Fields>
-
equals
public boolean equals(OffsetIndex that)
-
compareTo
public int compareTo(OffsetIndex other)
- Specified by:
compareToin interfaceComparable<OffsetIndex>
-
fieldForId
public OffsetIndex._Fields fieldForId(int fieldId)
- 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
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
-