Package org.apache.parquet.column.page
Class DataPageV1
- java.lang.Object
-
- org.apache.parquet.column.page.Page
-
- org.apache.parquet.column.page.DataPage
-
- org.apache.parquet.column.page.DataPageV1
-
public class DataPageV1 extends DataPage
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.parquet.column.page.DataPage
DataPage.Visitor<T>
-
-
Constructor Summary
Constructors Constructor Description DataPageV1(org.apache.parquet.bytes.BytesInput bytes, int valueCount, int uncompressedSize, long firstRowIndex, int rowCount, Statistics<?> statistics, Encoding rlEncoding, Encoding dlEncoding, Encoding valuesEncoding)DataPageV1(org.apache.parquet.bytes.BytesInput bytes, int valueCount, int uncompressedSize, Statistics<?> statistics, Encoding rlEncoding, Encoding dlEncoding, Encoding valuesEncoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Taccept(DataPage.Visitor<T> visitor)org.apache.parquet.bytes.BytesInputgetBytes()EncodinggetDlEncoding()Optional<Integer>getIndexRowCount()EncodinggetRlEncoding()Statistics<?>getStatistics()EncodinggetValueEncoding()StringtoString()-
Methods inherited from class org.apache.parquet.column.page.DataPage
getFirstRowIndex, getValueCount
-
Methods inherited from class org.apache.parquet.column.page.Page
getCompressedSize, getCrc, getUncompressedSize, setCrc
-
-
-
-
Constructor Detail
-
DataPageV1
public DataPageV1(org.apache.parquet.bytes.BytesInput bytes, int valueCount, int uncompressedSize, Statistics<?> statistics, Encoding rlEncoding, Encoding dlEncoding, Encoding valuesEncoding)- Parameters:
bytes- the bytes for this pagevalueCount- count of values in this pageuncompressedSize- the uncompressed size of the pagestatistics- of the page's values (max, min, num_null)rlEncoding- the repetition level encoding for this pagedlEncoding- the definition level encoding for this pagevaluesEncoding- the values encoding for this page
-
DataPageV1
public DataPageV1(org.apache.parquet.bytes.BytesInput bytes, int valueCount, int uncompressedSize, long firstRowIndex, int rowCount, Statistics<?> statistics, Encoding rlEncoding, Encoding dlEncoding, Encoding valuesEncoding)- Parameters:
bytes- the bytes for this pagevalueCount- count of values in this pageuncompressedSize- the uncompressed size of the pagefirstRowIndex- the index of the first row in this pagerowCount- the number of rows in this pagestatistics- of the page's values (max, min, num_null)rlEncoding- the repetition level encoding for this pagedlEncoding- the definition level encoding for this pagevaluesEncoding- the values encoding for this page
-
-
Method Detail
-
getBytes
public org.apache.parquet.bytes.BytesInput getBytes()
- Returns:
- the bytes for the page
-
getStatistics
public Statistics<?> getStatistics()
- Returns:
- the statistics for this page (max, min, num_nulls)
-
getDlEncoding
public Encoding getDlEncoding()
- Returns:
- the definition level encoding for this page
-
getRlEncoding
public Encoding getRlEncoding()
- Returns:
- the repetition level encoding for this page
-
getValueEncoding
public Encoding getValueEncoding()
- Returns:
- the values encoding for this page
-
accept
public <T> T accept(DataPage.Visitor<T> visitor)
-
getIndexRowCount
public Optional<Integer> getIndexRowCount()
- Specified by:
getIndexRowCountin classDataPage- 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)
-
-