Db.PutHandler<T>, Db.ScanHandler, Db.SeekHandler<T>, Db.Type
Modifier and Type | Method and Description |
---|---|
long |
allocatedSize()
Total allocated memory for this db, file or RAM.
|
void |
close()
Close the backing file.
|
void |
commit()
Mark the end of transaction.
|
void |
discard()
Discard changes after last commit
|
void |
flush()
Immediately persist the commited transations.
|
java.lang.Integer |
keySize()
Key size, non-null indicates that this db has fixed-size keys.
|
java.lang.Integer |
maxKeySize()
Max key size, if known.
|
java.lang.Integer |
maxValueSize()
Max value size, if known.
|
<T> T |
put(MemIO key,
long keyOff,
int keyLen,
Db.PutHandler<T> handler)
Insert or visit a value for a key.
|
void |
scan(Db.ScanHandler handler) |
<T> T |
seek(MemIO key,
long keyOff,
int keyLen,
Db.SeekHandler<T> handler)
Visit a value for a key.
|
java.lang.Integer |
valueSize()
Value size, non-null indicates that this db has fixed-size values.
|
public DbProxy(Db parent)
public void commit()
Db
public void flush()
Db
public void close()
Db
public java.lang.Integer keySize()
Db
public java.lang.Integer maxKeySize()
Db
maxKeySize
in interface Db
public java.lang.Integer valueSize()
Db
public java.lang.Integer maxValueSize()
Db
maxValueSize
in interface Db
public <T> T seek(MemIO key, long keyOff, int keyLen, Db.SeekHandler<T> handler)
Db
public <T> T put(MemIO key, long keyOff, int keyLen, Db.PutHandler<T> handler)
Db
public long allocatedSize()
Db
allocatedSize
in interface Db
public void scan(Db.ScanHandler handler)