public class BatchRemove extends AbstractKeyArrayIndexProcedure<Object> implements IParallelizableIndexProcedure<Object>
Modifier and Type | Class and Description |
---|---|
static class |
BatchRemove.BatchRemoveConstructor
Factory for
BatchRemove procedures. |
AbstractKeyArrayIndexProcedure.ResultBitBuffer, AbstractKeyArrayIndexProcedure.ResultBitBufferCounter, AbstractKeyArrayIndexProcedure.ResultBitBufferHandler, AbstractKeyArrayIndexProcedure.ResultBuffer, AbstractKeyArrayIndexProcedure.ResultBufferHandler
Modifier | Constructor and Description |
---|---|
|
BatchRemove()
De-serialization ctor.
|
protected |
BatchRemove(IRabaCoder keySer,
IRabaCoder valSer,
int fromIndex,
int toIndex,
byte[][] keys,
boolean assertFound,
com.bigdata.btree.proc.BatchRemove.ReturnWhatEnum returnWhat)
Batch remove operation.
|
Modifier and Type | Method and Description |
---|---|
Object |
applyOnce(IIndex ndx,
IRaba keys,
IRaba vals)
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
AbstractKeyArrayIndexProcedure.apply(IIndex) . |
boolean |
isReadOnly()
Return
true iff the procedure asserts that it will not
write on the index. |
protected IResultHandler<Object,Object> |
newAggregator()
Returns an appropriate aggregator depending on
returnWhat . |
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).
|
apply, getKeys, getKeysCoder, getValues, getValuesCoder, readExternal, writeExternal
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
public BatchRemove()
protected BatchRemove(IRabaCoder keySer, IRabaCoder valSer, int fromIndex, int toIndex, byte[][] keys, boolean assertFound, com.bigdata.btree.proc.BatchRemove.ReturnWhatEnum returnWhat)
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 AbstractKeyArrayIndexProcedure.apply(IIndex)
.BatchRemove.BatchRemoveConstructor
public boolean getAssertFound()
public boolean getReturnOldValues()
AbstractKeyArrayIndexProcedure.apply(IIndex)
.public final boolean isReadOnly()
IReadOnly
true
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 IReadOnly
public Object applyOnce(IIndex ndx, IRaba keys, IRaba vals)
applyOnce
in class AbstractKeyArrayIndexProcedure<Object>
ndx
- ResultBuffer
iff they were requested.AssertionError
- if getAssertFound()
is true
and a
given key was not found in the index.protected IResultHandler<Object,Object> newAggregator()
returnWhat
.newAggregator
in class AbstractKeyArrayIndexProcedure<Object>
IResultHandler
-or- null
NopAggregator
,
IParallelizableIndexProcedure
,
(Schedule more IOs when loading data)
protected void readMetadata(ObjectInput in) throws IOException, ClassNotFoundException
AbstractKeyArrayIndexProcedure
AbstractKeyArrayIndexProcedure.writeMetadata(ObjectOutput)
.readMetadata
in class AbstractKeyArrayIndexProcedure<Object>
IOException
ClassNotFoundException
protected void writeMetadata(ObjectOutput out) throws IOException
AbstractKeyArrayIndexProcedure
The default implementation writes out the AbstractKeyArrayIndexProcedure.getKeysCoder()
and the
AbstractKeyArrayIndexProcedure.getValuesCoder()
.
writeMetadata
in class AbstractKeyArrayIndexProcedure<Object>
IOException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.