|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.btree.proc.AbstractIndexProcedure
com.bigdata.btree.proc.AbstractKeyArrayIndexProcedure
com.bigdata.btree.proc.BatchRemove
public class BatchRemove
Batch removal of one or more tuples, optionally returning their existing values.
| Nested Class Summary | |
|---|---|
static class |
BatchRemove.BatchRemoveConstructor
Factory for BatchRemove procedures. |
| Nested classes/interfaces inherited from class com.bigdata.btree.proc.AbstractKeyArrayIndexProcedure |
|---|
AbstractKeyArrayIndexProcedure.ResultBitBuffer, AbstractKeyArrayIndexProcedure.ResultBitBufferCounter, AbstractKeyArrayIndexProcedure.ResultBitBufferHandler, AbstractKeyArrayIndexProcedure.ResultBuffer, AbstractKeyArrayIndexProcedure.ResultBufferHandler |
| Field Summary |
|---|
| Fields inherited from class com.bigdata.btree.proc.AbstractKeyArrayIndexProcedure |
|---|
DEBUG, log |
| Constructor Summary | |
|---|---|
|
BatchRemove()
De-serialization ctor. |
protected |
BatchRemove(IRabaCoder keySer,
IRabaCoder valSer,
int fromIndex,
int toIndex,
byte[][] keys,
boolean assertFound,
boolean returnOldValues)
Batch remove operation. |
| Method Summary | |
|---|---|
Object |
apply(IIndex ndx)
Applies the operation. |
boolean |
getAssertFound()
True iff the procedure will verify that each supplied key was in fact found in the index. |
boolean |
getReturnOldValues()
True iff the old values stored under the keys will be returned by apply(IIndex). |
boolean |
isReadOnly()
Return true iff the procedure asserts that it will not
write on the index. |
protected void |
readMetadata(ObjectInput in)
Reads metadata written by AbstractKeyArrayIndexProcedure.writeMetadata(ObjectOutput). |
protected void |
writeMetadata(ObjectOutput out)
Writes metadata (not the keys or values, but just other metadata used by the procedure). |
| Methods inherited from class com.bigdata.btree.proc.AbstractKeyArrayIndexProcedure |
|---|
getKey, getKeyCount, getKeys, getValue, getValues, readExternal, writeExternal |
| Methods inherited from class com.bigdata.btree.proc.AbstractIndexProcedure |
|---|
getKeyBuilder |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BatchRemove()
protected BatchRemove(IRabaCoder keySer,
IRabaCoder valSer,
int fromIndex,
int toIndex,
byte[][] keys,
boolean assertFound,
boolean returnOldValues)
keys - A series of keys paired to values. Each key is an variable
length unsigned byte[]. The keys MUST be presented in sorted
order.returnOldValues - When true the old values for those keys will be
returned by apply(IIndex).BatchRemove.BatchRemoveConstructor| Method Detail |
|---|
public boolean getAssertFound()
public boolean getReturnOldValues()
apply(IIndex).
public final boolean isReadOnly()
IIndexProceduretrue iff the procedure asserts that it will not
write on the index. When true, the procedure may be run
against a view of the index that is read-only or which allows concurrent
processes to read on the same index object. When false the
procedure will be run against a mutable view of the index (assuming that
the procedure is executed in a context that has access to a mutable index
view).
isReadOnly in interface IIndexProcedurepublic Object apply(IIndex ndx)
apply in interface IIndexProcedurendx -
ResultBuffer iff they were requested.
AssertionError - if getAssertFound() is true and a
given key was not found in the index.
protected void readMetadata(ObjectInput in)
throws IOException,
ClassNotFoundException
AbstractKeyArrayIndexProcedureAbstractKeyArrayIndexProcedure.writeMetadata(ObjectOutput).
readMetadata in class AbstractKeyArrayIndexProcedureIOException
ClassNotFoundException
protected void writeMetadata(ObjectOutput out)
throws IOException
AbstractKeyArrayIndexProcedure
The default implementation writes out the #getKeysCoder() and the
#getValuesCoder().
writeMetadata in class AbstractKeyArrayIndexProcedureIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||