ostore.dataobj
Class LongKey

java.lang.Object
  |
  +--ostore.util.QSLong
        |
        +--ostore.dataobj.LongKey
All Implemented Interfaces:
BtreeKey, Comparable, QuickSerializable

public class LongKey
extends QSLong
implements BtreeKey

Version:
$Id: LongKey.java,v 1.14 2002/07/25 06:03:19 eaton Exp $
Author:
Patrick R. Eaton

Constructor Summary
LongKey()
           
LongKey(InputBuffer buffer)
           
LongKey(long l)
           
 
Method Summary
 int compareTo(Object other)
           
 boolean equals(BtreeKey other_key)
           
 boolean greaterThan(BtreeKey other_key)
           
 boolean greaterThanEqual(BtreeKey other_key)
           
 boolean lessThan(BtreeKey other_key)
           
 boolean lessThanEqual(BtreeKey other_key)
           
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 int serializedSize()
           
 String toString()
           
 
Methods inherited from class ostore.util.QSLong
clone, equals, hashCode, longValue
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LongKey

public LongKey()

LongKey

public LongKey(long l)

LongKey

public LongKey(InputBuffer buffer)
Method Detail

serialize

public void serialize(OutputBuffer buffer)
Description copied from interface: QuickSerializable
Add the object to the buffer.

Specified by:
serialize in interface QuickSerializable
Overrides:
serialize in class QSLong
Parameters:
buffer - the output buffer to add the object to

serializedSize

public int serializedSize()
Specified by:
serializedSize in interface BtreeKey

lessThan

public boolean lessThan(BtreeKey other_key)
Specified by:
lessThan in interface BtreeKey

lessThanEqual

public boolean lessThanEqual(BtreeKey other_key)
Specified by:
lessThanEqual in interface BtreeKey

greaterThan

public boolean greaterThan(BtreeKey other_key)
Specified by:
greaterThan in interface BtreeKey

greaterThanEqual

public boolean greaterThanEqual(BtreeKey other_key)
Specified by:
greaterThanEqual in interface BtreeKey

equals

public boolean equals(BtreeKey other_key)
Specified by:
equals in interface BtreeKey

compareTo

public int compareTo(Object other)
              throws ClassCastException
Specified by:
compareTo in interface Comparable
ClassCastException

toString

public String toString()
Overrides:
toString in class QSLong