F - The generic type of the source Statement added to the
buffer by the callers.G - The generic type of the BigdataStatements stored in
the buffer.public static class AbstractStatementBuffer.StatementBuffer2<F extends org.openrdf.model.Statement,G extends BigdataStatement> extends AbstractStatementBuffer<F,G>
Statements 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
Statements onto the getStatementStore(). |
add, add, add, add, clear, convertValue, getDatabase, getValueFactory, isEmpty, overflow, processBufferedValues, processDeferredStatements, reset, setBNodeMap, sizepublic AbstractStatementBuffer.StatementBuffer2(AbstractTripleStore lexiconStore, boolean readOnly, int capacity)
lexiconStore - The database against which the Values 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, Values (and statement
identifiers iff enabled) will be resolved against the
LexiconRelation, but entries WILL NOT be inserted
into the LexiconRelation for unknown Values
(or for statement identifiers for unknown
Statements 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 Values 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 Statements will be
resolved (or added).readOnly - When true, Values (and statement
identifiers iff enabled) will be resolved against the
LexiconRelation, but entries WILL NOT be inserted
into the LexiconRelation for unknown Values
(or for statement identifiers for unknown
Statements when statement identifiers are
enabled). Likewise, when true,
Statements 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)
Statements onto the getStatementStore().handleProcessedStatements in class AbstractStatementBuffer<F extends org.openrdf.model.Statement,G extends BigdataStatement>a - An array of processed BigdataStatements.public long flush()
AbstractStatementBufferAbstractStatementBuffer.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.