F
- The generic type of the source Statement
added to the
buffer by the callers.G
- The generic type of the BigdataStatement
s stored in
the buffer.public static class AbstractStatementBuffer.StatementBuffer2<F extends org.openrdf.model.Statement,G extends BigdataStatement> extends AbstractStatementBuffer<F,G>
Statement
s into an RDF database.AbstractStatementBuffer.StatementBuffer2<F extends org.openrdf.model.Statement,G extends BigdataStatement>
DEBUG, INFO, log, readOnly, statementBuffer
Constructor and Description |
---|
AbstractStatementBuffer.StatementBuffer2(AbstractTripleStore lexiconStore,
AbstractTripleStore statementStore,
boolean readOnly,
int capacity) |
AbstractStatementBuffer.StatementBuffer2(AbstractTripleStore lexiconStore,
boolean readOnly,
int capacity) |
Modifier and Type | Method and Description |
---|---|
long |
flush()
Converts any buffered statements and any deferred statements and then
invokes
AbstractStatementBuffer.overflow() to flush anything remaining in the buffer. |
AbstractTripleStore |
getStatementStore()
From the ctor.
|
protected int |
handleProcessedStatements(G[] a)
Writes the
Statement s onto the getStatementStore() . |
add, add, add, add, clear, convertValue, getDatabase, getValueFactory, isEmpty, overflow, processBufferedValues, processDeferredStatements, reset, setBNodeMap, size
public AbstractStatementBuffer.StatementBuffer2(AbstractTripleStore lexiconStore, boolean readOnly, int capacity)
lexiconStore
- The database against which the Value
s will be
resolved (or added). If this database supports statement
identifiers, then statement identifiers for the converted
statements will be resolved (or added) to the lexicon.readOnly
- When true
, Value
s (and statement
identifiers iff enabled) will be resolved against the
LexiconRelation
, but entries WILL NOT be inserted
into the LexiconRelation
for unknown Value
s
(or for statement identifiers for unknown
Statement
s when statement identifiers are
enabled).capacity
- The capacity of the backing buffer.public AbstractStatementBuffer.StatementBuffer2(AbstractTripleStore lexiconStore, AbstractTripleStore statementStore, boolean readOnly, int capacity)
lexiconStore
- The database against which the Value
s will be
resolved (or added). If this database supports statement
identifiers, then statement identifiers for the converted
statements will be resolved (or added) to the lexicon.statementStore
- The database against which the Statement
s will be
resolved (or added).readOnly
- When true
, Value
s (and statement
identifiers iff enabled) will be resolved against the
LexiconRelation
, but entries WILL NOT be inserted
into the LexiconRelation
for unknown Value
s
(or for statement identifiers for unknown
Statement
s when statement identifiers are
enabled). Likewise, when true
,
Statement
s will not be written onto the
SPORelation
.capacity
- The capacity of the backing buffer.public AbstractTripleStore getStatementStore()
getStatementStore
in interface IStatementBuffer<F extends org.openrdf.model.Statement>
getStatementStore
in class AbstractStatementBuffer<F extends org.openrdf.model.Statement,G extends BigdataStatement>
protected int handleProcessedStatements(G[] a)
Statement
s onto the getStatementStore()
.handleProcessedStatements
in class AbstractStatementBuffer<F extends org.openrdf.model.Statement,G extends BigdataStatement>
a
- An array of processed BigdataStatement
s.public long flush()
AbstractStatementBuffer
AbstractStatementBuffer.overflow()
to flush anything remaining in the buffer.flush
in interface IBuffer<F extends org.openrdf.model.Statement>
flush
in class AbstractStatementBuffer<F extends org.openrdf.model.Statement,G extends BigdataStatement>
getStatementStore()
. This will be ZERO (0L) if
readOnly == true
.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.