public class TrieSymbolTableHandler extends java.lang.Object implements SymbolTableHandler
Constructor and Description |
---|
TrieSymbolTableHandler() |
Modifier and Type | Method and Description |
---|---|
TrieSymbolTable |
addSymbolTable(java.lang.String tableName) |
TrieSymbolTable |
addSymbolTable(java.lang.String tableName,
int columnCategory,
int columnType,
java.lang.String nullValueStrategy) |
TrieSymbolTable |
addSymbolTable(java.lang.String tableName,
SymbolTable parentTable) |
void |
cleanUp() |
TrieSymbolTable |
getSymbolTable(java.lang.String tableName) |
java.util.Set<java.lang.String> |
getSymbolTableNames() |
void |
load(java.io.InputStreamReader isr) |
void |
load(java.lang.String fileName,
java.lang.String charSet) |
void |
loadHeader(java.io.BufferedReader bin) |
SymbolTable |
loadTagset(java.lang.String fileName,
java.lang.String tableName,
java.lang.String charSet,
int columnCategory,
int columnType,
java.lang.String nullValueStrategy) |
void |
save(java.io.OutputStreamWriter osw) |
void |
save(java.lang.String fileName,
java.lang.String charSet) |
public TrieSymbolTableHandler()
public TrieSymbolTable addSymbolTable(java.lang.String tableName) throws MaltChainedException
addSymbolTable
in interface SymbolTableHandler
addSymbolTable
in interface TableHandler
MaltChainedException
public TrieSymbolTable addSymbolTable(java.lang.String tableName, SymbolTable parentTable) throws MaltChainedException
addSymbolTable
in interface SymbolTableHandler
MaltChainedException
public TrieSymbolTable addSymbolTable(java.lang.String tableName, int columnCategory, int columnType, java.lang.String nullValueStrategy) throws MaltChainedException
addSymbolTable
in interface SymbolTableHandler
MaltChainedException
public TrieSymbolTable getSymbolTable(java.lang.String tableName)
getSymbolTable
in interface SymbolTableHandler
getSymbolTable
in interface TableHandler
public java.util.Set<java.lang.String> getSymbolTableNames()
getSymbolTableNames
in interface SymbolTableHandler
public void cleanUp()
cleanUp
in interface SymbolTableHandler
public void save(java.io.OutputStreamWriter osw) throws MaltChainedException
save
in interface SymbolTableHandler
MaltChainedException
public void save(java.lang.String fileName, java.lang.String charSet) throws MaltChainedException
save
in interface SymbolTableHandler
MaltChainedException
public void loadHeader(java.io.BufferedReader bin) throws MaltChainedException
MaltChainedException
public void load(java.io.InputStreamReader isr) throws MaltChainedException
load
in interface SymbolTableHandler
MaltChainedException
public void load(java.lang.String fileName, java.lang.String charSet) throws MaltChainedException
load
in interface SymbolTableHandler
MaltChainedException
public SymbolTable loadTagset(java.lang.String fileName, java.lang.String tableName, java.lang.String charSet, int columnCategory, int columnType, java.lang.String nullValueStrategy) throws MaltChainedException
loadTagset
in interface SymbolTableHandler
MaltChainedException
Copyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.