|Constructor and Description|
Writes statements on a statement index (batch api).
public SPOIndexWriter(SPORelation spoRelation, ISPO a, int numStmts, boolean clone, SPOKeyOrder keyOrder, boolean primaryIndex, IElementFilter<ISPO> filter, AtomicLong sortTime, AtomicLong insertTime, AtomicLong numWritten, boolean reportMutations)
statementStore- The store on which the statements will be written.
numStmts- The #of elements in a to be written.
clone- When true the statements are cloned.
Note:One of the
SPOIndexWriters gets to use the
caller's array. The others MUST be instructed to clone the
caller's array so that they can impose their distinct sort
keyOrder- Identifies the statement index on which to write.
filter- An optional filter.
sortTime- Incremented as a side-effect to report the elapsed time sorting the statements.
insertTime- Incremented as a side-effect to report the elapsed time writing the statements on the statementStore.
numWritten- Incremented as a side-effect to report the #of statements actually written on the SPO index (the counter is only incremented when writing on the SPO index to avoid double counting).
true, an indication will be reported for each statement whose state in the index was changed as a result of this operation.
Note: This method is designed to NOT write on the index unless either the statement is new or the value associated with the statement has been changed. This helps to keep down the IO costs associated with index writes when the data are already in the index.
Copyright © 2006–2016 SYSTAP, LLC DBA Blazegraph. All rights reserved.