bamboo.db
Class StorageManager.Key

java.lang.Object
  extended by 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.


Field Summary
 InetAddress client_id
           
 byte[] data_hash
           
 BigInteger guid
           
 boolean put
           
static int SIZE
           
 long time_usec
           
 int ttl_sec
           
 
Constructor Summary
StorageManager.Key(ByteBuffer buf)
           
StorageManager.Key(ostore.util.InputBuffer buf)
           
StorageManager.Key(long t, int tt, BigInteger g, byte[] dh, boolean p, InetAddress c)
           
 
Method Summary
 int compareTo(Object rhs)
           
 boolean equals(Object rhs)
           
 int hashCode()
           
 void serialize(ostore.util.OutputBuffer buf)
           
 void to_byte_buffer(ByteBuffer buf)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

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)
Method Detail

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