com.bigdata.rdf.spo
Class JustIndexWriteProc
java.lang.Object
com.bigdata.btree.proc.AbstractIndexProcedure
com.bigdata.btree.proc.AbstractKeyArrayIndexProcedure
com.bigdata.rdf.spo.JustIndexWriteProc
- All Implemented Interfaces:
- IIndexProcedure, IKeyArrayIndexProcedure, IParallelizableIndexProcedure, IMutableRelationIndexWriteProcedure, Externalizable, Serializable
public class JustIndexWriteProc
- extends AbstractKeyArrayIndexProcedure
- implements IParallelizableIndexProcedure, IMutableRelationIndexWriteProcedure
Procedure for writing Justifications on an index or index
partition.
- Version:
- $Id: JustIndexWriteProc.java 2265 2009-10-26 12:51:06Z thompsonbry $
- Author:
- Bryan Thompson
- See Also:
- Serialized Form
|
Method Summary |
Object |
apply(IIndex ndx)
Run the procedure. |
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 |
JustIndexWriteProc
public JustIndexWriteProc()
- De-serialization constructor.
JustIndexWriteProc
public JustIndexWriteProc(IRabaCoder keySer,
int fromIndex,
int toIndex,
byte[][] keys)
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)
- Description copied from interface:
IIndexProcedure
- Run the procedure.
Note: Unisolated procedures have "auto-commit" ACID properties for a
local index only. In order for a distributed procedure to be ACID, the
procedure MUST be executed within a fully isolated transaction.
- Specified by:
apply in interface IIndexProcedure
- Parameters:
ndx - The index.
- Returns:
- The #of justifications actually written on the index as a
Long.
Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.