modnlp.idx.database
public class FileTable extends java.lang.Object
KEY | DATA ---------------|------------------- seq_integer | filename_or_uri
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 |
---|
FileTable(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) |
void |
finalize() |
void |
get(com.sleepycat.je.DatabaseEntry key,
com.sleepycat.je.DatabaseEntry data) |
java.lang.String |
getFileName(int sik) |
java.lang.String[] |
getFileNames() |
int |
getKey(java.lang.String fn)
Get key for entry whose data matches fn, or a negative integer
indicating the next available key (ie.
|
int[] |
getKeys() |
void |
put(com.sleepycat.je.DatabaseEntry key,
com.sleepycat.je.DatabaseEntry val) |
void |
put(int sik,
java.lang.String fou) |
void |
remove(com.sleepycat.je.DatabaseEntry key) |
void |
remove(int sik) |
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 FileTable(com.sleepycat.je.Environment env, java.lang.String fn, boolean write) throws com.sleepycat.je.DatabaseNotFoundException
com.sleepycat.je.DatabaseNotFoundException
public void put(int sik, java.lang.String fou)
public void remove(int sik)
public java.lang.String getFileName(int sik)
public void dump()
public int getKey(java.lang.String fn)
fn
- a String
valueint
valuepublic int[] getKeys()
public java.lang.String[] getFileNames()
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)