|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--ostore.update.Predicate
|
+--ostore.update.PredicateCompareBytes
The PredicateCompareBytes predicate evaluates to
true if the a Selection of bytes in the object
matches the given bytes in the predicate.
TODO: Allow creator to specify version?
| Field Summary | |
|---|---|
static boolean |
DEBUG
|
| Constructor Summary | |
|---|---|
PredicateCompareBytes(InputBuffer buffer)
|
|
PredicateCompareBytes(SecureHash aguid,
Selection sel,
byte[][] compare)
Construct a PredicateCompareBytes predicate. |
|
| Method Summary | |
|---|---|
byte[][] |
getCompare()
The bytes we are comparing to |
Selection |
getSelection()
The selection we are comparing against. |
Set |
getTargets()
|
void |
serialize(OutputBuffer buffer)
Add the object to the buffer. |
String |
toString()
Return a representation of this predicate as a string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final boolean DEBUG
| Constructor Detail |
public PredicateCompareBytes(SecureHash aguid,
Selection sel,
byte[][] compare)
PredicateCompareBytes predicate.
aguid - the target objectsel - selection of bytes in the object to compare.compare - the bytes to compare with. (one array per selection in
a CompositeSelection; otherwise just one
array for Range, All, and
KeyedSelection)
public PredicateCompareBytes(InputBuffer buffer)
throws QSException
| Method Detail |
public void serialize(OutputBuffer buffer)
QuickSerializablebuffer.
serialize in interface QuickSerializableserialize in class Predicatebuffer - the output buffer to add the object topublic Set getTargets()
getTargets in class Predicatepublic Selection getSelection()
public byte[][] getCompare()
public String toString()
Predicate
toString in class Predicate
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||