public class StringHashTableDictionary extends Object implements Dictionary
Dictionary.IMPL, Dictionary.Visitor, Dictionary.VisitorContextINITIAL_DICTIONARY_SIZE| Constructor and Description |
|---|
StringHashTableDictionary(int initialCapacity) |
StringHashTableDictionary(int initialCapacity,
float loadFactor) |
| Modifier and Type | Method and Description |
|---|---|
int |
add(byte[] bytes,
int offset,
int length) |
int |
add(Text text) |
void |
clear() |
long |
getSizeInBytes() |
void |
getText(Text result,
int positionInKeyOffset)
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.
|
public StringHashTableDictionary(int initialCapacity)
public StringHashTableDictionary(int initialCapacity,
float loadFactor)
public void visit(Dictionary.Visitor visitor) throws IOException
Dictionaryvisit in interface DictionaryIOExceptionpublic void clear()
clear in interface Dictionarypublic void getText(Text result, int positionInKeyOffset)
DictionarygetText in interface Dictionarypublic int add(byte[] bytes,
int offset,
int length)
add in interface Dictionarypublic int add(Text text)
public int size()
size in interface Dictionarypublic long getSizeInBytes()
getSizeInBytes in interface DictionaryCopyright © 2013–2022 The Apache Software Foundation. All rights reserved.