Package org.apache.parquet.column.page
Class DictionaryPage
- java.lang.Object
-
- org.apache.parquet.column.page.Page
-
- org.apache.parquet.column.page.DictionaryPage
-
public class DictionaryPage extends Page
Data for a dictionary page
-
-
Constructor Summary
Constructors Constructor Description DictionaryPage(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DictionaryPage
copy()
org.apache.parquet.bytes.BytesInput
getBytes()
int
getDictionarySize()
Encoding
getEncoding()
String
toString()
-
Methods inherited from class org.apache.parquet.column.page.Page
getCompressedSize, getCrc, getUncompressedSize, setCrc
-
-
-
-
Constructor Detail
-
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 Detail
-
getBytes
public org.apache.parquet.bytes.BytesInput getBytes()
-
getDictionarySize
public int getDictionarySize()
-
getEncoding
public Encoding getEncoding()
-
copy
public DictionaryPage copy() throws IOException
- Throws:
IOException
-
-