public class Id2TermWriteProc extends AbstractKeyArrayIndexProcedure<Void> implements IParallelizableIndexProcedure<Void>, IMutableRelationIndexWriteProcedure<Void>
Term2IdWriteProc
operation.Modifier and Type | Class and Description |
---|---|
static class |
Id2TermWriteProc.Id2TermWriteProcConstructor |
AbstractKeyArrayIndexProcedure.ResultBitBuffer, AbstractKeyArrayIndexProcedure.ResultBitBufferCounter, AbstractKeyArrayIndexProcedure.ResultBitBufferHandler, AbstractKeyArrayIndexProcedure.ResultBuffer, AbstractKeyArrayIndexProcedure.ResultBufferHandler
Modifier | Constructor and Description |
---|---|
|
Id2TermWriteProc()
De-serialization constructor.
|
protected |
Id2TermWriteProc(IRabaCoder keysCoder,
IRabaCoder valsCoder,
int fromIndex,
int toIndex,
byte[][] keys,
byte[][] vals) |
Modifier and Type | Method and Description |
---|---|
Void |
applyOnce(IIndex ndx,
IRaba keys,
IRaba vals)
Conditionally inserts each key-value pair into the index.
|
boolean |
isReadOnly()
Return
true iff the procedure asserts that it will not
write on the index. |
protected IResultHandler<Void,Void> |
newAggregator()
Nothing is returned, so nothing to aggregate, but uses a
NopAggregator to preserve striping against a local index. |
apply, getKeys, getKeysCoder, getValues, getValuesCoder, readExternal, readMetadata, writeExternal, writeMetadata
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
public Id2TermWriteProc()
protected Id2TermWriteProc(IRabaCoder keysCoder, IRabaCoder valsCoder, int fromIndex, int toIndex, byte[][] keys, byte[][] vals)
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 Void applyOnce(IIndex ndx, IRaba keys, IRaba vals)
BigdataValueSerializer
. Since a conditional insert is used, the
operation does not cause terms that are already known to the ids index to
be re-inserted, thereby reducing writes of dirty index nodes.applyOnce
in class AbstractKeyArrayIndexProcedure<Void>
ndx
- The index.null
.protected IResultHandler<Void,Void> newAggregator()
NopAggregator
to preserve striping against a local index.newAggregator
in class AbstractKeyArrayIndexProcedure<Void>
IResultHandler
-or- null
NopAggregator
,
IParallelizableIndexProcedure
,
(Schedule more IOs when loading data)
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.