Package org.apache.parquet.column.page
Class DataPage
- java.lang.Object
-
- org.apache.parquet.column.page.Page
-
- org.apache.parquet.column.page.DataPage
-
- Direct Known Subclasses:
DataPageV1,DataPageV2
public abstract class DataPage extends Page
one data page in a chunk
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDataPage.Visitor<T>
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract <T> Taccept(DataPage.Visitor<T> visitor)Optional<Long>getFirstRowIndex()abstract Optional<Integer>getIndexRowCount()intgetValueCount()-
Methods inherited from class org.apache.parquet.column.page.Page
getCompressedSize, getCrc, getUncompressedSize, setCrc
-
-
-
-
Method Detail
-
getValueCount
public int getValueCount()
- Returns:
- the number of values in that page
-
getFirstRowIndex
public Optional<Long> getFirstRowIndex()
- Returns:
- the index of the first row in this page if the related data is available (the optional column-index contains this value)
-
getIndexRowCount
public abstract Optional<Integer> getIndexRowCount()
- Returns:
- the number of rows in this page if the related data is available (in case of pageV1 the optional column-index contains this value)
-
accept
public abstract <T> T accept(DataPage.Visitor<T> visitor)
-
-