Package org.apache.parquet.column.page
Class DictionaryPage
java.lang.Object
org.apache.parquet.column.page.Page
org.apache.parquet.column.page.DictionaryPage
Data for a dictionary page
-
Constructor Summary
ConstructorsConstructorDescriptionDictionaryPage(org.apache.parquet.bytes.BytesInput bytes, int uncompressedSize, int dictionarySize, Encoding encoding) creates a dictionary pageDictionaryPage(org.apache.parquet.bytes.BytesInput bytes, int dictionarySize, Encoding encoding) creates an uncompressed page -
Method Summary
Modifier and TypeMethodDescriptioncopy()decode(ColumnDescriptor path) org.apache.parquet.bytes.BytesInputgetBytes()inttoString()Methods inherited from class org.apache.parquet.column.page.Page
getCompressedSize, getCrc, getUncompressedSize, setCrc
-
Constructor Details
-
DictionaryPage
public DictionaryPage(org.apache.parquet.bytes.BytesInput bytes, int dictionarySize, Encoding encoding) creates an uncompressed page- Parameters:
bytes- the content of the pagedictionarySize- the value count in the dictionaryencoding- the encoding used
-
DictionaryPage
public DictionaryPage(org.apache.parquet.bytes.BytesInput bytes, int uncompressedSize, int dictionarySize, Encoding encoding) creates a dictionary page- Parameters:
bytes- the (possibly compressed) content of the pageuncompressedSize- the size uncompresseddictionarySize- the value count in the dictionaryencoding- the encoding used
-
-
Method Details
-
getBytes
public org.apache.parquet.bytes.BytesInput getBytes() -
getDictionarySize
public int getDictionarySize() -
getEncoding
-
copy
- Throws:
IOException
-
decode
- Returns:
- the decoded dictionary
-
toString
-