com.bigdata.rdf.lexicon
Class Id2TermWriteProc
java.lang.Object
com.bigdata.btree.proc.AbstractIndexProcedure
com.bigdata.btree.proc.AbstractKeyArrayIndexProcedure
com.bigdata.rdf.lexicon.Id2TermWriteProc
- All Implemented Interfaces:
- IIndexProcedure, IKeyArrayIndexProcedure, IParallelizableIndexProcedure, IMutableRelationIndexWriteProcedure, Externalizable, Serializable
public class Id2TermWriteProc
- extends AbstractKeyArrayIndexProcedure
- implements IParallelizableIndexProcedure, IMutableRelationIndexWriteProcedure
Unisolated write operation makes consistent assertions on the
id:term index based on the data developed by the Term2IdWriteProc
operation.
- Version:
- $Id: Id2TermWriteProc.java 5062 2011-08-20 23:37:29Z mrpersonick $
- Author:
- Bryan Thompson
- See Also:
- Serialized Form
|
Method Summary |
Object |
apply(IIndex ndx)
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Id2TermWriteProc
public Id2TermWriteProc()
- De-serialization constructor.
Id2TermWriteProc
protected Id2TermWriteProc(IRabaCoder keysCoder,
IRabaCoder valsCoder,
int fromIndex,
int toIndex,
byte[][] keys,
byte[][] vals)
isReadOnly
public final boolean isReadOnly()
- Description copied from interface:
IIndexProcedure
- Return
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).
- Specified by:
isReadOnly in interface IIndexProcedure
apply
public Object apply(IIndex ndx)
- Conditionally inserts each key-value pair into the index. The keys are
the term identifiers. The values are the terms as serialized by
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.
- Specified by:
apply in interface IIndexProcedure
- Parameters:
ndx - The index.
- Returns:
null.
Copyright © 2006-2011 SYSTAP, LLC. All Rights Reserved.