public class StringHashTableDictionary extends Object implements Dictionary
Dictionary.IMPL, Dictionary.Visitor, Dictionary.VisitorContext
INITIAL_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
Dictionary
visit
in interface Dictionary
IOException
public void clear()
clear
in interface Dictionary
public void getText(Text result, int positionInKeyOffset)
Dictionary
getText
in interface Dictionary
public int add(byte[] bytes, int offset, int length)
add
in interface Dictionary
public int add(Text text)
public int size()
size
in interface Dictionary
public long getSizeInBytes()
getSizeInBytes
in interface Dictionary
Copyright © 2013–2022 The Apache Software Foundation. All rights reserved.