public class JustIndexWriteProc extends AbstractKeyArrayIndexProcedure<Long> implements IParallelizableIndexProcedure<Long>, IMutableRelationIndexWriteProcedure<Long>
Justification
s on an index or index
partition.Modifier and Type | Class and Description |
---|---|
static class |
JustIndexWriteProc.WriteJustificationsProcConstructor |
AbstractKeyArrayIndexProcedure.ResultBitBuffer, AbstractKeyArrayIndexProcedure.ResultBitBufferCounter, AbstractKeyArrayIndexProcedure.ResultBitBufferHandler, AbstractKeyArrayIndexProcedure.ResultBuffer, AbstractKeyArrayIndexProcedure.ResultBufferHandler
Constructor and Description |
---|
JustIndexWriteProc()
De-serialization constructor.
|
JustIndexWriteProc(IRabaCoder keySer,
int fromIndex,
int toIndex,
byte[][] keys) |
Modifier and Type | Method and Description |
---|---|
Long |
applyOnce(IIndex ndx,
IRaba keys,
IRaba vals)
Apply the procedure to the specified key range of the index.
|
boolean |
isReadOnly()
Return
true iff the procedure asserts that it will not
write on the index. |
protected IResultHandler<Long,Long> |
newAggregator()
Uses
LongAggregator to combine the mutation counts. |
apply, getKeys, getKeysCoder, getValues, getValuesCoder, readExternal, readMetadata, writeExternal, writeMetadata
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
public JustIndexWriteProc()
public JustIndexWriteProc(IRabaCoder keySer, int fromIndex, int toIndex, byte[][] keys)
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 Long applyOnce(IIndex ndx, IRaba keys, IRaba vals)
AbstractKeyArrayIndexProcedure
applyOnce
in class AbstractKeyArrayIndexProcedure<Long>
ndx
- The index.Long
.protected IResultHandler<Long,Long> newAggregator()
LongAggregator
to combine the mutation counts.newAggregator
in class AbstractKeyArrayIndexProcedure<Long>
IResultHandler
-or- null
NopAggregator
,
IParallelizableIndexProcedure
,
(Schedule more IOs when loading data)
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.