bamboo.db
Class RecoverFatal
java.lang.Object
bamboo.db.RecoverFatal
public class RecoverFatal
- extends Object
An asynchronous interface to BerkeleyDB.
Data is stored on disk in a table with the following fields:
| Bytes | Data |
| 0-7 | put time since the epoch (microseconds) |
| 8-11 | ttl interval after put time (seconds) |
| 12-31 | guid |
| 32-51 | data hash |
| 52 | whether this is a put (1) or remove (0) |
| 53- | data |
The data hash is needed to guarentee a consistent scan order and for
removes. The primary key is bytes 0-52, and the secondary key is the guid
concatenated with the data hash.
- Version:
- $Id: RecoverFatal.java,v 1.1 2004/09/01 18:26:30 srhea Exp $
- Author:
- Sean C. Rhea
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
guid_key_creator
protected com.sleepycat.db.DbSecondaryKeyCreate guid_key_creator
client_counts
protected com.sleepycat.db.Db client_counts
by_time
protected com.sleepycat.db.Db by_time
by_guid
protected com.sleepycat.db.Db by_guid
by_guid_and_data_hash
protected com.sleepycat.db.Db by_guid_and_data_hash
recycling
protected com.sleepycat.db.Db recycling
env
protected com.sleepycat.db.DbEnv env
RecoverFatal
public RecoverFatal(String homedir)
throws Exception
- Throws:
Exception
primary_key_to_recycling_key
protected void primary_key_to_recycling_key(byte[] buf)
main
public static void main(String[] args)
throws Exception
- Throws:
Exception