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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.parquet.column.page.DataPage
DataPage.Visitor<T> -
Constructor Summary
ConstructorsConstructorDescriptionDataPageV1(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
Modifier and TypeMethodDescription<T> Taccept(DataPage.Visitor<T> visitor) org.apache.parquet.bytes.BytesInputgetBytes()Statistics<?>toString()Methods inherited from class org.apache.parquet.column.page.DataPage
getFirstRowIndex, getValueCountMethods inherited from class org.apache.parquet.column.page.Page
getCompressedSize, getCrc, getUncompressedSize, setCrc
-
Constructor Details
-
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 Details
-
getBytes
public org.apache.parquet.bytes.BytesInput getBytes()- Returns:
- the bytes for the page
-
getStatistics
- Returns:
- the statistics for this page (max, min, num_nulls)
-
getDlEncoding
- Returns:
- the definition level encoding for this page
-
getRlEncoding
- Returns:
- the repetition level encoding for this page
-
getValueEncoding
- Returns:
- the values encoding for this page
-
toString
-
accept
-
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)
-