public interface Dictionary
Modifier and Type | Interface and Description |
---|---|
static class |
Dictionary.IMPL |
static interface |
Dictionary.Visitor
The interface for visitors.
|
static interface |
Dictionary.VisitorContext
The information about each node.
|
Modifier and Type | Field and Description |
---|---|
static int |
INITIAL_DICTIONARY_SIZE |
Modifier and Type | Method and Description |
---|---|
int |
add(byte[] bytes,
int offset,
int length) |
void |
clear() |
long |
getSizeInBytes() |
ByteBuffer |
getText(int position) |
void |
getText(Text result,
int position)
Given the position index, return the original string before being encoded.
|
int |
size() |
void |
visit(Dictionary.Visitor visitor)
Traverse the whole dictionary and apply the action.
|
int |
writeTo(OutputStream out,
int position)
Given the position index, write the original string, before being encoded,
to the OutputStream.
|
static final int INITIAL_DICTIONARY_SIZE
void visit(Dictionary.Visitor visitor) throws IOException
IOException
void clear()
void getText(Text result, int position)
result
.result
- the holder to copy the dictionary text intoposition
- the position where the key was addedByteBuffer getText(int position)
int writeTo(OutputStream out, int position) throws IOException
out
- the output stream to which to write the dataposition
- the position where the key was originally addedIOException
- if an I/O error occursint add(byte[] bytes, int offset, int length)
int size()
long getSizeInBytes()
Copyright © 2013–2023 The Apache Software Foundation. All rights reserved.