modnlp.idx.database
public class WordPositionTable extends java.lang.Object
KEY | DATA -------------|------------------- word | [pos1, pos2, ...]
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 |
---|
WordPositionTable(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) |
IntegerSet |
fetch(java.lang.String sik) |
void |
finalize() |
void |
get(com.sleepycat.je.DatabaseEntry key,
com.sleepycat.je.DatabaseEntry data) |
int |
getFileIDNumber() |
FrequencyHash |
getFrequencyTable(boolean nocase) |
void |
put(com.sleepycat.je.DatabaseEntry key,
com.sleepycat.je.DatabaseEntry val) |
void |
put(java.lang.String sik,
IntegerSet set) |
void |
remove(com.sleepycat.je.DatabaseEntry key) |
TokenMap |
removeFile()
Remove all entries whose file ids match founo and return a
TokenMap of the entries removed
|
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 WordPositionTable(com.sleepycat.je.Environment env, java.lang.String fn, boolean write) throws com.sleepycat.je.DatabaseNotFoundException
com.sleepycat.je.DatabaseNotFoundException
public int getFileIDNumber()
public void put(java.lang.String sik, IntegerSet set)
public TokenMap removeFile()
founo
- an int
valuepublic IntegerSet fetch(java.lang.String sik)
public FrequencyHash getFrequencyTable(boolean nocase)
public 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)