Package org.apache.parquet.column.page
Interface PageReadStore
-
- All Superinterfaces:
AutoCloseable
public interface PageReadStore extends AutoCloseable
contains all the readers for all the columns of the corresponding row groupTODO: rename to RowGroup?
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclose()PageReadergetPageReader(ColumnDescriptor descriptor)longgetRowCount()default Optional<PrimitiveIterator.OfLong>getRowIndexes()Returns the indexes of the rows to be read/built if the related data is available.default Optional<Long>getRowIndexOffset()
-
-
-
Method Detail
-
getPageReader
PageReader getPageReader(ColumnDescriptor descriptor)
- Parameters:
descriptor- the descriptor of the column- Returns:
- the page reader for that column
-
getRowCount
long getRowCount()
- Returns:
- the total number of rows in that row group
-
getRowIndexOffset
default Optional<Long> getRowIndexOffset()
- Returns:
- the optional of the long representing the row index offset of this row group or an empty optional if the related data is not available
-
getRowIndexes
default Optional<PrimitiveIterator.OfLong> getRowIndexes()
Returns the indexes of the rows to be read/built if the related data is available. All the rows which index is not returned shall be skipped.- Returns:
- the optional of the incremental iterator of the row indexes or an empty optional if the related data is not available
-
close
default void close()
- Specified by:
closein interfaceAutoCloseable
-
-