| java.lang.Object org.openrdf.sail.nativerdf.TripleStore
TripleStore | class TripleStore (Code) | | File-based indexed storage and retrieval of RDF statements. TripleStore
stores statements in the form of four integer IDs. Each ID represent an RDF
value that is stored in a
ValueStore . The four IDs refer to the
statement's subject, predicate, object and context. The ID 0 is
used to represent the "null" context and doesn't map to an actual RDF value.
author: Arjohn Kampman |
Field Summary | |
final static byte | ADDED_FLAG Bit field indicating that a statement has been added in a (currently
active) transaction. | final static int | CONTEXT_IDX | final static byte | EXPLICIT_FLAG Bit field indicating that a statement has been explicitly added (instead
of being inferred). | final static int | FLAG_IDX | final static int | OBJ_IDX | final static int | PRED_IDX | final static int | RECORD_LENGTH | final static byte | REMOVED_FLAG Bit field indicating that a statement has been removed in a (currently
active) transaction. | final static int | SUBJ_IDX | final static byte | TOGGLE_EXPLICIT_FLAG Bit field indicating that the explicit flag has been toggled (from true to
false, or vice versa) in a (currently active) transaction. | final Logger | logger |
Method Summary | |
public void | clear() | public void | close() | public void | commit() | public RecordIterator | getTriples(int subj, int pred, int obj, int context) | public RecordIterator | getTriples(int subj, int pred, int obj, int context, boolean readTransaction) | public RecordIterator | getTriples(int subj, int pred, int obj, int context, boolean explicit, boolean readTransaction) | public int | removeTriples(int subj, int pred, int obj, int context) | public int | removeTriples(int subj, int pred, int obj, int context, boolean explicit) Parameters: subj - The subject for the pattern, or -1 for a wildcard. Parameters: pred - The predicate for the pattern, or -1 for a wildcard. Parameters: obj - The object for the pattern, or -1 for a wildcard. Parameters: context - The context for the pattern, or -1 for a wildcard. Parameters: explicit - Flag indicating whether explicit or inferred statements should beremoved; true removes explicit statements that match thepattern, false removes inferred statements that matchthe pattern. | public void | rollback() | public void | startTransaction() | public boolean | storeTriple(int subj, int pred, int obj, int context) | public boolean | storeTriple(int subj, int pred, int obj, int context, boolean explicit) | protected void | sync() |
ADDED_FLAG | final static byte ADDED_FLAG(Code) | | Bit field indicating that a statement has been added in a (currently
active) transaction.
|
CONTEXT_IDX | final static int CONTEXT_IDX(Code) | | |
EXPLICIT_FLAG | final static byte EXPLICIT_FLAG(Code) | | Bit field indicating that a statement has been explicitly added (instead
of being inferred).
|
FLAG_IDX | final static int FLAG_IDX(Code) | | |
OBJ_IDX | final static int OBJ_IDX(Code) | | |
PRED_IDX | final static int PRED_IDX(Code) | | |
RECORD_LENGTH | final static int RECORD_LENGTH(Code) | | |
REMOVED_FLAG | final static byte REMOVED_FLAG(Code) | | Bit field indicating that a statement has been removed in a (currently
active) transaction.
|
SUBJ_IDX | final static int SUBJ_IDX(Code) | | |
TOGGLE_EXPLICIT_FLAG | final static byte TOGGLE_EXPLICIT_FLAG(Code) | | Bit field indicating that the explicit flag has been toggled (from true to
false, or vice versa) in a (currently active) transaction.
|
logger | final Logger logger(Code) | | |
removeTriples | public int removeTriples(int subj, int pred, int obj, int context) throws IOException(Code) | | |
removeTriples | public int removeTriples(int subj, int pred, int obj, int context, boolean explicit) throws IOException(Code) | | Parameters: subj - The subject for the pattern, or -1 for a wildcard. Parameters: pred - The predicate for the pattern, or -1 for a wildcard. Parameters: obj - The object for the pattern, or -1 for a wildcard. Parameters: context - The context for the pattern, or -1 for a wildcard. Parameters: explicit - Flag indicating whether explicit or inferred statements should beremoved; true removes explicit statements that match thepattern, false removes inferred statements that matchthe pattern. The number of triples that were removed. throws: IOException - |
storeTriple | public boolean storeTriple(int subj, int pred, int obj, int context) throws IOException(Code) | | |
storeTriple | public boolean storeTriple(int subj, int pred, int obj, int context, boolean explicit) throws IOException(Code) | | |
|
|