public class DictionaryPage extends Object
Constructor and Description |
---|
DictionaryPage(BytesInput bytes,
int dictionarySize,
Encoding encoding)
creates an uncompressed page
|
DictionaryPage(BytesInput bytes,
int uncompressedSize,
int dictionarySize,
Encoding encoding)
creates a dictionary page
|
Modifier and Type | Method and Description |
---|---|
DictionaryPage |
copy() |
BytesInput |
getBytes() |
int |
getDictionarySize() |
Encoding |
getEncoding() |
int |
getUncompressedSize() |
String |
toString() |
public DictionaryPage(BytesInput bytes, int dictionarySize, Encoding encoding)
bytes
- the content of the pagedictionarySize
- the value count in the dictionaryencoding
- the encoding usedpublic DictionaryPage(BytesInput bytes, int uncompressedSize, int dictionarySize, Encoding encoding)
bytes
- the (possibly compressed) content of the pageuncompressedSize
- the size uncompresseddictionarySize
- the value count in the dictionaryencoding
- the encoding usedpublic BytesInput getBytes()
public int getUncompressedSize()
public int getDictionarySize()
public Encoding getEncoding()
public DictionaryPage copy() throws IOException
IOException
Copyright © 2015. All rights reserved.