modnlp.idx.database
public class TPosTable extends java.lang.Object
KEY | DATA ------------------|------------------- seq_integer | [pos0, pos1-pos0, pos2-pos1, ...]
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 |
---|
TPosTable(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) |
int |
getBytesReceived()
Get no.
|
int |
getBytesWritten()
Get no of bytes actually written into the Object stream so far
|
double |
getCompressionRatio()
getCompressionRatio return the ratio of compression
for the IntOffsetArray 's stored in this table: i.e. |
int[] |
getPosArray(int sik) |
void |
put(com.sleepycat.je.DatabaseEntry key,
com.sleepycat.je.DatabaseEntry val) |
void |
put(int sik,
IntOffsetArray 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 TPosTable(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, IntOffsetArray fou)
public void remove(int sik)
public int[] getPosArray(int sik)
public double getCompressionRatio()
getCompressionRatio
return the ratio of compression
for the IntOffsetArray
's stored in this table: i.e.
bytesWritten/bytesReceived;public int getBytesReceived()
int
valuepublic int getBytesWritten()
int
valuepublic 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)