Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| MaltParser 1.6
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.maltparser.core.symbol.trie
Class TrieSymbolTableHandler

    java.lang.Object
      org.maltparser.core.symbol.trie.TrieSymbolTableHandler

All Implemented Interfaces:
  SymbolTableHandler, TableHandler

    public class TrieSymbolTableHandler

extends Object
implements SymbolTableHandler

Since:
  1.0
Author:
  Johan Hall

Field Summary
`static int` | `ADD_NEW_TO_TMP_STORAGE`
`static int` | `ADD_NEW_TO_TRIE`

Constructor Summary
`TrieSymbolTableHandler(int symbolTableMode)`

Method Summary
`TrieSymbolTable` | `addSymbolTable(String tableName)`
`TrieSymbolTable` | `addSymbolTable(String tableName, int columnCategory, String nullValueStrategy)`
`TrieSymbolTable` | `addSymbolTable(String tableName, SymbolTable parentTable)`
`void` | `cleanUp()`
`TrieSymbolTable` | `getSymbolTable(String tableName)`
`Set<String>` | `getSymbolTableNames()`
`void` | `load(InputStreamReader isr)`
`void` | `load(String fileName, String charSet)`
`void` | `loadHeader(BufferedReader bin)`
`SymbolTable` | `loadTagset(String fileName, String tableName, String charSet, int columnCategory, String nullValueStrategy)`
`void` | `printSymbolTables(org.apache.log4j.Logger logger)`
`void` | `save(OutputStreamWriter osw)`
`void` | `save(String fileName, String charSet)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### ADD_NEW_TO_TRIE

    public static final int ADD_NEW_TO_TRIE

See Also:
  Constant Field Values

### ADD_NEW_TO_TMP_STORAGE

    public static final int ADD_NEW_TO_TMP_STORAGE

See Also:
  Constant Field Values

Constructor Detail

### TrieSymbolTableHandler

    public TrieSymbolTableHandler(int symbolTableMode)

Method Detail

### addSymbolTable

    public TrieSymbolTable addSymbolTable(String tableName)
                                   throws MaltChainedException

  Specified by:
    `addSymbolTable` in interface `SymbolTableHandler`
  Specified by:
    `addSymbolTable` in interface `TableHandler`
  Throws:
    `MaltChainedException`

### addSymbolTable

    public TrieSymbolTable addSymbolTable(String tableName,
                                          SymbolTable parentTable)
                                   throws MaltChainedException

  Specified by:
    `addSymbolTable` in interface `SymbolTableHandler`
  Throws:
    `MaltChainedException`

### addSymbolTable

    public TrieSymbolTable addSymbolTable(String tableName,
                                          int columnCategory,
                                          String nullValueStrategy)
                                   throws MaltChainedException

  Specified by:
    `addSymbolTable` in interface `SymbolTableHandler`
  Throws:
    `MaltChainedException`

### getSymbolTable

    public TrieSymbolTable getSymbolTable(String tableName)

  Specified by:
    `getSymbolTable` in interface `SymbolTableHandler`
  Specified by:
    `getSymbolTable` in interface `TableHandler`

### getSymbolTableNames

    public Set<String> getSymbolTableNames()

  Specified by:
    `getSymbolTableNames` in interface `SymbolTableHandler`

### cleanUp

    public void cleanUp()

  Specified by:
    `cleanUp` in interface `SymbolTableHandler`

### save

    public void save(OutputStreamWriter osw)
              throws MaltChainedException

  Specified by:
    `save` in interface `SymbolTableHandler`
  Throws:
    `MaltChainedException`

### save

    public void save(String fileName,
                     String charSet)
              throws MaltChainedException

  Specified by:
    `save` in interface `SymbolTableHandler`
  Throws:
    `MaltChainedException`

### loadHeader

    public void loadHeader(BufferedReader bin)
                    throws MaltChainedException

  Throws:
    `MaltChainedException`

### load

    public void load(InputStreamReader isr)
              throws MaltChainedException

  Specified by:
    `load` in interface `SymbolTableHandler`
  Throws:
    `MaltChainedException`

### load

    public void load(String fileName,
                     String charSet)
              throws MaltChainedException

  Specified by:
    `load` in interface `SymbolTableHandler`
  Throws:
    `MaltChainedException`

### loadTagset

    public SymbolTable loadTagset(String fileName,
                                  String tableName,
                                  String charSet,
                                  int columnCategory,
                                  String nullValueStrategy)
                           throws MaltChainedException

  Specified by:
    `loadTagset` in interface `SymbolTableHandler`
  Throws:
    `MaltChainedException`

### printSymbolTables

    public void printSymbolTables(org.apache.log4j.Logger logger)
                           throws MaltChainedException

  Specified by:
    `printSymbolTables` in interface `SymbolTableHandler`
  Throws:
    `MaltChainedException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| MaltParser 1.6
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright 2007-2011 Johan Hall, Jens Nilsson and Joakim Nivre.