Constructor and Description |
---|
SPOIndexWriter(SPORelation spoRelation,
ISPO[] a,
int numStmts,
boolean clone,
SPOKeyOrder keyOrder,
boolean primaryIndex,
IElementFilter<ISPO> filter,
AtomicLong sortTime,
AtomicLong insertTime,
AtomicLong numWritten,
boolean reportMutations)
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.a
- The ISPO
[].numStmts
- The #of elements in a to be written.clone
- When true the statements are cloned.
Note:One of the SPOIndexWriter
s 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
orders.
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).reportMutations
- When true
, an indication will be reported for
each statement whose state in the index was changed as a
result of this operation.public Long call() throws Exception
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–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.