modnlp.idx.database
public class CaseTable extends java.lang.Object
KEY | DATA ---------------|------------------- canonicalform | [form1, form2, ...] e.g.: rose | [Rose, rose, ROSE]
Modifier and Type | Field and Description |
---|---|
protected com.sleepycat.je.Database |
database |
protected java.lang.String |
dbname |
protected com.sleepycat.je.Environment |
environment |
protected LogStream |
logf |
Constructor and Description |
---|
CaseTable(com.sleepycat.je.Environment env,
java.lang.String fn,
boolean write) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
dump() |
static boolean |
exists(com.sleepycat.je.Environment env,
java.lang.String fn) |
StringSet |
fetch(java.lang.String sik) |
void |
finalize() |
void |
get(com.sleepycat.je.DatabaseEntry key,
com.sleepycat.je.DatabaseEntry data) |
WordForms |
getAllCases(java.lang.String sik)
Return a vector containing all word forms (all existing
cases) found in the dictionary.
|
WordForms |
getAllPrefixMatches(java.lang.String k,
boolean csensitive) |
WordForms |
getAllRegexMatches(java.lang.String k,
boolean csensitive) |
WordForms |
getAllSuffixMatches(java.lang.String k,
boolean csensitive) |
int |
getTotalNoOfTypes() |
void |
put(com.sleepycat.je.DatabaseEntry key,
com.sleepycat.je.DatabaseEntry val) |
StringSet |
put(java.lang.String wform) |
StringSet |
put(java.lang.String sik,
java.lang.String wform) |
StringSet |
put(java.lang.String sik,
StringSet set) |
void |
remove(com.sleepycat.je.DatabaseEntry key) |
StringSet |
remove(java.lang.String wform) |
void |
setup(com.sleepycat.je.Environment env,
java.lang.String fn,
boolean write,
LogStream l) |
java.lang.String |
toString() |
protected com.sleepycat.je.Environment environment
protected com.sleepycat.je.Database database
protected java.lang.String dbname
protected LogStream logf
public CaseTable(com.sleepycat.je.Environment env, java.lang.String fn, boolean write) throws com.sleepycat.je.DatabaseNotFoundException
com.sleepycat.je.DatabaseNotFoundException
public StringSet fetch(java.lang.String sik)
public StringSet put(java.lang.String sik, java.lang.String wform)
public StringSet put(java.lang.String wform)
public StringSet remove(java.lang.String wform)
public int getTotalNoOfTypes()
public WordForms getAllPrefixMatches(java.lang.String k, boolean csensitive)
public WordForms getAllSuffixMatches(java.lang.String k, boolean csensitive)
public WordForms getAllRegexMatches(java.lang.String k, boolean csensitive)
public WordForms getAllCases(java.lang.String sik)
key
- the keyword to search forpublic void dump()
public void setup(com.sleepycat.je.Environment env, java.lang.String fn, boolean write, LogStream l) throws com.sleepycat.je.DatabaseNotFoundException
com.sleepycat.je.DatabaseNotFoundException
public java.lang.String toString()
toString
in class java.lang.Object
public static boolean exists(com.sleepycat.je.Environment env, java.lang.String fn)
public void finalize()
finalize
in class java.lang.Object
public void close()
public void put(com.sleepycat.je.DatabaseEntry key, com.sleepycat.je.DatabaseEntry val)
public void remove(com.sleepycat.je.DatabaseEntry key)
public void get(com.sleepycat.je.DatabaseEntry key, com.sleepycat.je.DatabaseEntry data)