public class TextIndexWriteProc extends AbstractKeyArrayIndexProcedure<Long> implements IParallelizableIndexProcedure<Long>, IMutableRelationIndexWriteProcedure<Long>
Modifier and Type | Class and Description |
---|---|
static class |
TextIndexWriteProc.IndexWriteProcConstructor |
AbstractKeyArrayIndexProcedure.ResultBitBuffer, AbstractKeyArrayIndexProcedure.ResultBitBufferCounter, AbstractKeyArrayIndexProcedure.ResultBitBufferHandler, AbstractKeyArrayIndexProcedure.ResultBuffer, AbstractKeyArrayIndexProcedure.ResultBufferHandler
Modifier | Constructor and Description |
---|---|
|
TextIndexWriteProc()
De-serialization constructor.
|
protected |
TextIndexWriteProc(IRabaCoder keySer,
IRabaCoder valSer,
int fromIndex,
int toIndex,
byte[][] keys,
byte[][] vals,
boolean overwrite) |
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. |
protected void |
readMetadata(ObjectInput in)
Reads metadata written by
AbstractKeyArrayIndexProcedure.writeMetadata(ObjectOutput) . |
protected void |
writeMetadata(ObjectOutput out)
Extended to write the
overwrite flag. |
apply, getKeys, getKeysCoder, getValues, getValuesCoder, readExternal, writeExternal
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
public TextIndexWriteProc()
protected TextIndexWriteProc(IRabaCoder keySer, IRabaCoder valSer, int fromIndex, int toIndex, byte[][] keys, byte[][] vals, boolean overwrite)
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.Integer
.protected void readMetadata(ObjectInput in) throws IOException, ClassNotFoundException
AbstractKeyArrayIndexProcedure
AbstractKeyArrayIndexProcedure.writeMetadata(ObjectOutput)
.readMetadata
in class AbstractKeyArrayIndexProcedure<Long>
IOException
ClassNotFoundException
protected void writeMetadata(ObjectOutput out) throws IOException
overwrite
flag.writeMetadata
in class AbstractKeyArrayIndexProcedure<Long>
IOException
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.