public final class HashSymbolTable extends java.lang.Object implements SymbolTable
BOOLEAN, categories, INPUT, INTEGER, NA, OUTPUT, REAL, STRING, types
Constructor and Description |
---|
HashSymbolTable(java.lang.String _name) |
HashSymbolTable(java.lang.String _name,
int _category,
int _type,
java.lang.String nullValueStrategy) |
Modifier and Type | Method and Description |
---|---|
int |
addSymbol(java.lang.String symbol) |
double |
addSymbolValue(java.lang.String symbol) |
boolean |
equals(java.lang.Object obj) |
int |
getCategory() |
java.util.Set<java.lang.Integer> |
getCodes() |
java.lang.String |
getName() |
int |
getNullValueCode(NullValues.NullValueId nullValueIdentifier) |
java.lang.String |
getNullValueStrategy() |
java.lang.String |
getNullValueSymbol(NullValues.NullValueId nullValueIdentifier) |
java.lang.String |
getSymbolCodeToString(int code) |
int |
getSymbolStringToCode(java.lang.String symbol) |
double |
getSymbolStringToValue(java.lang.String symbol) |
int |
getType() |
int |
getValueCounter() |
int |
hashCode() |
boolean |
isNullValue(int code) |
boolean |
isNullValue(java.lang.String symbol) |
void |
load(java.io.BufferedReader in) |
void |
save(java.io.BufferedWriter out) |
void |
saveHeader(java.io.BufferedWriter out) |
int |
size() |
java.lang.String |
toString() |
public HashSymbolTable(java.lang.String _name, int _category, int _type, java.lang.String nullValueStrategy) throws MaltChainedException
MaltChainedException
public HashSymbolTable(java.lang.String _name)
public int addSymbol(java.lang.String symbol) throws MaltChainedException
addSymbol
in interface Table
MaltChainedException
public double addSymbolValue(java.lang.String symbol) throws MaltChainedException
MaltChainedException
public java.lang.String getSymbolCodeToString(int code) throws MaltChainedException
getSymbolCodeToString
in interface Table
MaltChainedException
public int getSymbolStringToCode(java.lang.String symbol) throws MaltChainedException
getSymbolStringToCode
in interface Table
MaltChainedException
public double getSymbolStringToValue(java.lang.String symbol) throws MaltChainedException
getSymbolStringToValue
in interface Table
MaltChainedException
public void saveHeader(java.io.BufferedWriter out) throws MaltChainedException
MaltChainedException
public int getCategory()
public int getType()
public java.lang.String getNullValueStrategy()
public void save(java.io.BufferedWriter out) throws MaltChainedException
save
in interface SymbolTable
MaltChainedException
public void load(java.io.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 java.lang.String getNullValueSymbol(NullValues.NullValueId nullValueIdentifier) throws MaltChainedException
getNullValueSymbol
in interface SymbolTable
MaltChainedException
public boolean isNullValue(java.lang.String symbol) throws MaltChainedException
isNullValue
in interface SymbolTable
MaltChainedException
public boolean isNullValue(int code) throws MaltChainedException
isNullValue
in interface SymbolTable
MaltChainedException
public java.util.Set<java.lang.Integer> getCodes()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.