|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ostore.read.NumberPredicate
A VersionPredicate
that requires version whose sequence
number lies in a specified range.
Constructor Summary | |
---|---|
NumberPredicate(InputBuffer buffer)
Constructs a NumberPredicate from its
serialize d form. |
|
NumberPredicate(long number)
Constructs a new NumberPredicate that requires a
specific version. |
|
NumberPredicate(long low,
long high)
Constructs a new NumberPredicate that requires a
sequence number between low and high ,
inclusive.
|
Method Summary | |
---|---|
long |
get_high()
Returns the highest accaptable sequence number; |
long |
get_low()
Returns the lowest accaptable sequence number; |
void |
serialize(OutputBuffer buffer)
Add the object to the buffer . |
String |
toString()
Returns a human-readable representation of this predicate. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public NumberPredicate(long low, long high)
NumberPredicate
that requires a
sequence number between low
and high
,
inclusive.
Set low=0
or high=Long.MAX_VALUE
for
open-ended predicates.
low
- The lowest acceptable sequence number.high
- The highest acceptable sequence number.public NumberPredicate(long number)
NumberPredicate
that requires a
specific version.
number
- The only acceptable sequence number.public NumberPredicate(InputBuffer buffer)
NumberPredicate
from its
serialize
d form.
Method Detail |
public long get_low()
public long get_high()
public void serialize(OutputBuffer buffer)
QuickSerializable
buffer
.
serialize
in interface QuickSerializable
buffer
- the output buffer to add the object topublic String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |