bamboo.db
Class StorageManager.Key
java.lang.Object
bamboo.db.StorageManager.Key
- All Implemented Interfaces:
- Comparable
- Enclosing class:
- StorageManager
public static class StorageManager.Key
- extends Object
- implements Comparable
The primary key under which data are stored--must be unique.
SIZE
public static final int SIZE
- See Also:
- Constant Field Values
time_usec
public long time_usec
ttl_sec
public int ttl_sec
guid
public BigInteger guid
data_hash
public byte[] data_hash
put
public boolean put
client_id
public InetAddress client_id
StorageManager.Key
public StorageManager.Key(long t,
int tt,
BigInteger g,
byte[] dh,
boolean p,
InetAddress c)
StorageManager.Key
public StorageManager.Key(ByteBuffer buf)
StorageManager.Key
public StorageManager.Key(ostore.util.InputBuffer buf)
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
serialize
public void serialize(ostore.util.OutputBuffer buf)
to_byte_buffer
public void to_byte_buffer(ByteBuffer buf)
compareTo
public int compareTo(Object rhs)
- Specified by:
compareTo in interface Comparable
equals
public boolean equals(Object rhs)
- Overrides:
equals in class Object
toString
public String toString()
- Overrides:
toString in class Object