com.bigdata.rdf.spo
Class StatementWriter
java.lang.Object
com.bigdata.rdf.spo.StatementWriter
- All Implemented Interfaces:
- Callable<Long>
Deprecated. by SPORelation.insert(IChunkedOrderedIterator)? (Still
used by copyStatements)
public class StatementWriter
- extends Object
- implements Callable<Long>
Writes statements on all the statement indices in parallel.
- Version:
- $Id: StatementWriter.java 2265 2009-10-26 12:51:06Z thompsonbry $
- Author:
- Bryan Thompson
|
Field Summary |
AtomicLong |
nwritten
Deprecated. Incremented by the #of statements written on the statements indices. |
|
Method Summary |
Long |
call()
Deprecated. Writes on the statement indices (parallel, batch api). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nwritten
public final AtomicLong nwritten
- Deprecated.
- Incremented by the #of statements written on the statements indices.
StatementWriter
public StatementWriter(AbstractTripleStore database,
AbstractTripleStore statementStore,
boolean copyOnly,
IChunkedOrderedIterator<ISPO> itr,
AtomicLong nwritten)
- Deprecated.
- Parameters:
database - The database. If statement identifiers are being generated
then they will always be added using the lexicon associated
with the database.statementStore - The store on which the statements will be written (the focus
store if you are doing truth maintenance and otherwise the
database).copyOnly - See
{@link AbstractTripleStore#addStatements(AbstractTripleStore, boolean, IChunkedOrderedIterator, IElementFilter)itr - The source iterator for the SPOs to be written.nwritten - Incremented by the #of statements written on the statement
indices as a side-effect.- TODO:
- allow an optional
IElementFilter here.
call
public Long call()
throws Exception
- Deprecated.
- Writes on the statement indices (parallel, batch api).
- Specified by:
call in interface Callable<Long>
- Returns:
- The elapsed time for the operation.
- Throws:
Exception
Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.