public interface IRawTripleStore extends ITripleStore
Modifier and Type | Field and Description |
---|---|
static String |
NULLSTR
The constant
NULL . |
Modifier and Type | Method and Description |
---|---|
long |
addStatements(IChunkedOrderedIterator<ISPO> itr,
IElementFilter<ISPO> filter)
Deprecated.
|
long |
addStatements(ISPO[] stmts,
int numStmts)
Writes the statements onto the statements indices (batch, parallel, NO
truth maintenance).
|
long |
addStatements(ISPO[] stmts,
int numStmts,
IElementFilter<ISPO> filter)
Writes the statements onto the statement indices (batch, parallel, NO
truth maintenance).
|
IV |
addTerm(org.openrdf.model.Value value)
Add a term into the term:id index and the id:term index, returning the
assigned term identifier (non-batch API).
|
void |
addTerms(BigdataValue[] terms)
Batch insert of terms into the database.
|
IChunkedOrderedIterator<ISPO> |
bulkCompleteStatements(IChunkedOrderedIterator<ISPO> itr)
This method fills out the statement metadata (type and sid) for
ISPO s that are present in the database. |
IChunkedOrderedIterator<ISPO> |
bulkFilterStatements(IChunkedOrderedIterator<ISPO> itr,
boolean present)
Efficiently filter the supplied set of
SPO objects for whether
they are "present" or "not present" in the database, depending on the
value of the supplied boolean variable (batch api). |
IChunkedOrderedIterator<ISPO> |
bulkFilterStatements(ISPO[] stmts,
int numStmts,
boolean present)
Filter the supplied set of
ISPO objects for whether they are
"present" or "not present" in the database, depending on the value of the
supplied boolean variable (batch API). |
IAccessPath<ISPO> |
getAccessPath(IKeyOrder<ISPO> keyOrder)
Deprecated.
by
SPORelation#getAccessPath(SPOKeyOrder, com.bigdata.relation.rule.IPredicate) |
IAccessPath<ISPO> |
getAccessPath(IV s,
IV p,
IV o)
Deprecated.
|
IV |
getIV(org.openrdf.model.Value value)
Deprecated.
This is only used by the unit tests. It is not efficient for
scale-out.
|
ISPO |
getStatement(IV s,
IV p,
IV o)
Deprecated.
does not support quads.
|
ISPO |
getStatement(IV s,
IV p,
IV o,
IV c)
Return the statement from the database (fully bound s:p:o only).
|
org.openrdf.model.Value |
getTerm(IV iv)
Return the RDF
Value given an internal value (non-batch api). |
long |
removeStatements(IChunkedOrderedIterator<ISPO> itr)
Removes the statements from the statement indices (batch, parallel, NO
truth maintenance).
|
long |
removeStatements(ISPO[] stmts,
int numStmts)
Removes the statements from the statement indices (batch, parallel, NO
truth maintenance).
|
String |
toString(IV iv)
Externalizes a term using an abbreviated syntax.
|
String |
toString(IV s,
IV p,
IV o)
Deprecated.
|
String |
toString(IV s,
IV p,
IV o,
IV c)
Externalizes a quad or a triple with a statement identifier using an
abbreviated syntax.
|
abort, addStatement, addStatement, asStatement, asStatementIterator, asValue, close, commit, destroy, getAccessPath, getAccessPath, getBNodeCount, getDataLoader, getInferenceEngine, getLiteralCount, getNamedGraphCount, getStatement, getStatement, getStatementCount, getStatementCount, getStatementCount, getStatementCount, getStatements, getStatements, getTermCount, getURICount, hasStatement, hasStatement, isQuads, isReadOnly, removeStatements, removeStatements
static final String NULLSTR
NULL
.IV addTerm(org.openrdf.model.Value value)
Note: This method delegates to the batch API, but it is extremely inefficient for scale-out as it does one RMI per request!
value
- The term.void addTerms(BigdataValue[] terms)
terms
- An array to be inserted.LexiconRelation.addTerms(BigdataValue[], int, boolean)
org.openrdf.model.Value getTerm(IV iv)
Value
given an internal value (non-batch api).null
if there is no term with
that internal value in the index.IV getIV(org.openrdf.model.Value value)
value
- Any Value
reference (MAY be null
).IAccessPath<ISPO> getAccessPath(IV s, IV p, IV o)
SPORelation.getAccessPath(IV, IV, IV)
IAccessPath
for the given triple
pattern.s
- The internal value for the subject -or- null.p
- The internal value for the predicate -or- null.o
- The internal value for the object -or- null.IAccessPath<ISPO> getAccessPath(IKeyOrder<ISPO> keyOrder)
SPORelation#getAccessPath(SPOKeyOrder, com.bigdata.relation.rule.IPredicate)
IAccessPath
for the specified IKeyOrder
and a
fully unbound triple pattern. This is generally used only when you want
to perform a IAccessPath#distinctTermScan()
.ISPO getStatement(IV s, IV p, IV o, IV c)
Note: This may be used to examine the StatementEnum
.
s
- The internal value (IV
) for the subject.p
- The internal value (IV
) for the predicate.o
- The internal value (IV
) for the object.c
- The internal value (IV
) for the context (required for
quads and ignored for triples).SPO
for that statement, including its
StatementEnum
-or- null
iff the statement is
not in the database.IllegalArgumentException
- if the s, p, or o is null.IllegalArgumentException
- if the c is null and ITripleStore.isQuads()
would
return true
.long addStatements(ISPO[] stmts, int numStmts)
stmts
- The statements (sorted into IKeyOrder#SPO
order as a
side-effect).numStmts
- The #of entries in stmts that are valid.long addStatements(ISPO[] stmts, int numStmts, IElementFilter<ISPO> filter)
stmts
- The statements.numStmts
- The #of entries in stmts that are valid.filter
- Optional statement filter. Statements matching the filter are
NOT added to the database.long addStatements(IChunkedOrderedIterator<ISPO> itr, IElementFilter<ISPO> filter)
SPORelation.insert(IChunkedOrderedIterator)
itr
- An iterator visiting the statements to be added.filter
- Optional statement filter. Statements matching the filter are
NOT added to the database. The iterator is closed by this
operation.long removeStatements(ISPO[] stmts, int numStmts)
Note: The StatementEnum
on the SPO
s is ignored by this
method. It will delete all statements having the same bindings regardless
of whether they are inferred, explicit, or axioms.
itr
- The iteratorlong removeStatements(IChunkedOrderedIterator<ISPO> itr)
Note: The StatementEnum
on the SPO
s is ignored by this
method. It will delete all statements having the same bindings regardless
of whether they are inferred, explicit, or axioms.
itr
- The iteratorIChunkedOrderedIterator<ISPO> bulkFilterStatements(ISPO[] stmts, int numStmts, boolean present)
ISPO
objects for whether they are
"present" or "not present" in the database, depending on the value of the
supplied boolean variable (batch API).stmts
- the statements to testnumStmts
- the number of statements to testpresent
- if true, filter for statements that exist in the db, otherwise
filter for statements that do not existIChunkedOrderedIterator<ISPO> bulkFilterStatements(IChunkedOrderedIterator<ISPO> itr, boolean present)
SPO
objects for whether
they are "present" or "not present" in the database, depending on the
value of the supplied boolean variable (batch api).itr
- an iterator over the set of statements to testpresent
- if true, filter for statements that exist in the db, otherwise
filter for statements that do not existIChunkedOrderedIterator<ISPO> bulkCompleteStatements(IChunkedOrderedIterator<ISPO> itr)
String toString(IV s, IV p, IV o, IV c)
String toString(IV s, IV p, IV o)
toString(IV, IV, IV, IV)
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.