Java Code Examples for com.bigdata.rdf.store.AbstractTripleStore#getStatementIdentifiers()
The following examples show how to use
com.bigdata.rdf.store.AbstractTripleStore#getStatementIdentifiers() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractStatementBuffer.java From database with GNU General Public License v2.0 | 3 votes |
/** * @param db * The database against which the {@link 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. * @param readOnly * When <code>true</code>, {@link Value}s (and statement * identifiers iff enabled) will be resolved against the * {@link LexiconRelation}, but entries WILL NOT be inserted * into the {@link LexiconRelation} for unknown {@link Value}s * (or for statement identifiers for unknown * {@link Statement}s when statement identifiers are * enabled). * @param capacity * The capacity of the backing buffer. */ @SuppressWarnings("unchecked") public AbstractStatementBuffer(final AbstractTripleStore db, final boolean readOnly, final int capacity) { if (db == null) throw new IllegalArgumentException(); if (capacity <= 0) throw new IllegalArgumentException(); this.capacity = capacity; this.db = db; this.readOnly = readOnly; this.valueBuffer = new BigdataValue[capacity * 3]; this.statementBuffer = (G[])new BigdataStatement[capacity]; // this.distinctValues = new HashMap<Value, BigdataValue>(capacity // * IRawTripleStore.N); this.distinctValues = new HashMap<Value, BigdataValue>(capacity * db.getSPOKeyArity()); this.deferredStatementBuffer = db.getStatementIdentifiers() ? new LinkedList<G>() : null; this.valueFactory = db.getValueFactory(); }