public class BatchContains extends AbstractKeyArrayIndexProcedure<AbstractKeyArrayIndexProcedure.ResultBitBuffer> implements IParallelizableIndexProcedure<AbstractKeyArrayIndexProcedure.ResultBitBuffer>
| Modifier and Type | Class and Description |
|---|---|
static class |
BatchContains.BatchContainsConstructor
Factory for
BatchContains procedures. |
AbstractKeyArrayIndexProcedure.ResultBitBuffer, AbstractKeyArrayIndexProcedure.ResultBitBufferCounter, AbstractKeyArrayIndexProcedure.ResultBitBufferHandler, AbstractKeyArrayIndexProcedure.ResultBuffer, AbstractKeyArrayIndexProcedure.ResultBufferHandler| Modifier | Constructor and Description |
|---|---|
|
BatchContains()
De-serialization ctor.
|
protected |
BatchContains(IRabaCoder keysCoder,
int fromIndex,
int toIndex,
byte[][] keys)
Create a batch existence test operation.
|
| Modifier and Type | Method and Description |
|---|---|
AbstractKeyArrayIndexProcedure.ResultBitBuffer |
applyOnce(IIndex ndx,
IRaba keys,
IRaba vals)
Applies the operation using
ISimpleBTree.contains(byte[]). |
boolean |
isReadOnly()
Return
true iff the procedure asserts that it will not
write on the index. |
protected IResultHandler<AbstractKeyArrayIndexProcedure.ResultBitBuffer,AbstractKeyArrayIndexProcedure.ResultBitBuffer> |
newAggregator()
Return an
IResultHandler that will be used to combine the results
if the index procedure is parallelized against a local index (including a
scale-out shard). |
apply, getKeys, getKeysCoder, getValues, getValuesCoder, readExternal, readMetadata, writeExternal, writeMetadataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplypublic BatchContains()
protected BatchContains(IRabaCoder keysCoder, int fromIndex, int toIndex, byte[][] keys)
keys - A series of keys. Each key is an variable length unsigned
byte[]. The keys MUST be presented in sorted order.BatchContains.BatchContainsConstructorpublic final boolean isReadOnly()
IReadOnlytrue 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 IReadOnlypublic AbstractKeyArrayIndexProcedure.ResultBitBuffer applyOnce(IIndex ndx, IRaba keys, IRaba vals)
ISimpleBTree.contains(byte[]).applyOnce in class AbstractKeyArrayIndexProcedure<AbstractKeyArrayIndexProcedure.ResultBitBuffer>ndx - AbstractKeyArrayIndexProcedure.ResultBitBuffer.protected IResultHandler<AbstractKeyArrayIndexProcedure.ResultBitBuffer,AbstractKeyArrayIndexProcedure.ResultBitBuffer> newAggregator()
AbstractKeyArrayIndexProcedureIResultHandler that will be used to combine the results
if the index procedure is parallelized against a local index (including a
scale-out shard). If a null is returned, then the index
procedure WILL NOT be parallelized against the local index. To
parallelize index procedures that do not return anything against a local
index, just use NopAggregator. A non-null value will
permit both index local parallelization of the index procedure and (in
scale-out) parallelization of the index procedure across the shards as
well. In order to be parallelized, the index procedure must also be
marked as IParallelizableIndexProcedure.newAggregator in class AbstractKeyArrayIndexProcedure<AbstractKeyArrayIndexProcedure.ResultBitBuffer>IResultHandler -or- nullNopAggregator,
IParallelizableIndexProcedure,
(Schedule more IOs when loading data)Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.