Db.PutHandler<T>, Db.ScanHandler, Db.SeekHandler<T>, Db.Type| Constructor and Description |
|---|
HybridDb(Db parent,
boolean hybridKey,
boolean hybridValue) |
| 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 HybridDb(Db parent, boolean hybridKey, boolean hybridValue)
public java.lang.Integer keySize()
Dbpublic java.lang.Integer valueSize()
Dbpublic java.lang.Integer maxKeySize()
DbmaxKeySize in interface Dbpublic java.lang.Integer maxValueSize()
DbmaxValueSize in interface Dbpublic <T> T seek(MemIO key, long keyOff, int keyLen, Db.SeekHandler<T> handler)
Dbpublic <T> T put(MemIO key, long keyOff, int keyLen, Db.PutHandler<T> handler)
Dbpublic void scan(Db.ScanHandler handler)
public void commit()
Dbpublic void discard()
Dbpublic void flush()
Dbpublic void close()
Dbpublic long allocatedSize()
DballocatedSize in interface Db