public final class HashSymbolTable extends Object implements SymbolTable
Constructor and Description |
---|
HashSymbolTable(String name) |
HashSymbolTable(String name,
int columnCategory,
String nullValueStrategy) |
Modifier and Type | Method and Description |
---|---|
int |
addSymbol(String symbol) |
boolean |
equals(Object obj) |
Set<Integer> |
getCodes() |
int |
getColumnCategory() |
String |
getName() |
int |
getNullValueCode(NullValues.NullValueId nullValueIdentifier) |
String |
getNullValueStrategy() |
String |
getNullValueSymbol(NullValues.NullValueId nullValueIdentifier) |
String |
getSymbolCodeToString(int code) |
int |
getSymbolStringToCode(String symbol) |
int |
getValueCounter() |
int |
hashCode() |
boolean |
isNullValue(int code) |
boolean |
isNullValue(String symbol) |
void |
load(BufferedReader in) |
String |
printSymbolTable() |
void |
save(BufferedWriter out) |
void |
saveHeader(BufferedWriter out) |
int |
size() |
String |
toString() |
public HashSymbolTable(String name, int columnCategory, String nullValueStrategy) throws MaltChainedException
MaltChainedException
public HashSymbolTable(String name)
public int addSymbol(String symbol) throws MaltChainedException
addSymbol
in interface Table
MaltChainedException
public String getSymbolCodeToString(int code) throws MaltChainedException
getSymbolCodeToString
in interface Table
MaltChainedException
public int getSymbolStringToCode(String symbol) throws MaltChainedException
getSymbolStringToCode
in interface Table
MaltChainedException
public String printSymbolTable() throws MaltChainedException
printSymbolTable
in interface SymbolTable
MaltChainedException
public void saveHeader(BufferedWriter out) throws MaltChainedException
MaltChainedException
public int getColumnCategory()
public String getNullValueStrategy()
public void save(BufferedWriter out) throws MaltChainedException
save
in interface SymbolTable
MaltChainedException
public void load(BufferedReader in) throws MaltChainedException
load
in interface SymbolTable
MaltChainedException
public int getValueCounter()
getValueCounter
in interface SymbolTable
public int getNullValueCode(NullValues.NullValueId nullValueIdentifier) throws MaltChainedException
getNullValueCode
in interface SymbolTable
MaltChainedException
public String getNullValueSymbol(NullValues.NullValueId nullValueIdentifier) throws MaltChainedException
getNullValueSymbol
in interface SymbolTable
MaltChainedException
public boolean isNullValue(String symbol) throws MaltChainedException
isNullValue
in interface SymbolTable
MaltChainedException
public boolean isNullValue(int code) throws MaltChainedException
isNullValue
in interface SymbolTable
MaltChainedException
Copyright 2007-2014 Johan Hall, Jens Nilsson and Joakim Nivre.