/** * <strong>WARNING DO NOT USE OUTSIDE OF THE UNIT TESTS: </strong> This * method is extremely inefficient for scale-out as it does one RMI per * request! * * @deprecated Not even the unit tests should be doing this. */ final public IV getIV(final Value value) { return getLexiconRelation().getIV(value); }
/** * Efficiently resolves/adds term identifiers for the buffered * {@link BigdataValue}s. * <p> * If {@link #readOnly}), then the term identifier for unknown values * will remain {@link IRawTripleStore#NULL}. */ protected void processBufferedValues() { if (INFO) log.info("nvalues=" + nvalues); db.getLexiconRelation().addTerms(valueBuffer, nvalues, readOnly); }
/** * Resolve a chunk of {@link IBindingSet}s into a chunk of * {@link IBindingSet}s in which term identifiers have been resolved to * {@link BigdataValue}s. */ @Override protected IBindingSet[] resolveChunk(final IBindingSet[] chunk) { return resolveChunk(/*required, */state.getLexiconRelation(), chunk); }
public Iterator<IRelation> relations() { return Collections.unmodifiableList(Arrays.asList(new IRelation[] { // getSPORelation(), // getLexiconRelation() // })).iterator(); }
/** * Resolve a chunk of {@link BindingSet}s into a chunk of * {@link IBindingSet}s in which RDF {@link Value}s have been resolved to * {@link IV}s. */ protected IBindingSet[] resolveChunk(final BindingSet[] chunk) { return resolveChunk(state.getLexiconRelation(), chunk); }
/** * Resolve a chunk of {@link BindingSet}s into a chunk of * {@link IBindingSet}s in which RDF {@link Value}s have been resolved to * {@link IV}s. */ protected IBindingSet[] resolveChunk(final BindingSet[] chunk) { return resolveChunk(state.getLexiconRelation(), chunk); }
/** * Returns <code>true</code> when the database is in inline terms mode. In * this mode, certain types of terms (numerics in particular) are inlined * into the statement indices rather than being mapped to and from term * identifiers in the lexicon. */ public boolean isInlineLiterals() { return getLexiconRelation().isInlineLiterals(); }
/** * <strong>WARNING DO NOT USE OUTSIDE OF THE UNIT TESTS: </strong> This * method is extremely inefficient for scale-out as it does one RMI per * request! * * @deprecated Not even the unit tests should be doing this. */ final public IV getIV(final Value value) { return getLexiconRelation().getIV(value); }
/** * Returns <code>true</code> when the database is in inline terms mode. In * this mode, certain types of terms (numerics in particular) are inlined * into the statement indices rather than being mapped to and from term * identifiers in the lexicon. */ public boolean isInlineLiterals() { return getLexiconRelation().isInlineLiterals(); }
public Iterator<IRelation> relations() { return Collections.unmodifiableList(Arrays.asList(new IRelation[] { // getSPORelation(), // getLexiconRelation() // })).iterator(); }
/** * Resolve a chunk of {@link IBindingSet}s into a chunk of * {@link IBindingSet}s in which term identifiers have been resolved to * {@link BigdataValue}s. */ @Override protected IBindingSet[] resolveChunk(final IBindingSet[] chunk) { return resolveChunk(/*required, */state.getLexiconRelation(), chunk); }
/** * Efficiently resolves/adds term identifiers for the buffered * {@link BigdataValue}s. * <p> * If {@link #readOnly}), then the term identifier for unknown values * will remain {@link IRawTripleStore#NULL}. */ protected void processBufferedValues() { if (INFO) log.info("nvalues=" + nvalues); db.getLexiconRelation().addTerms(valueBuffer, nvalues, readOnly); }
@Override public void addTerms(final BigdataValue[] terms) { getLexiconRelation().addTerms(terms, terms.length, false/*readOnly*/); }
/** * Shows some interesting details about the terms index. * * @param cxn The connection. */ public static void showLexiconIndexDetails(final BigdataSailConnection cxn) { final IIndex ndx = cxn.getTripleStore().getLexiconRelation().getBlobsIndex(); final IndexMetadata md = ndx.getIndexMetadata(); System.out.println("Lexicon:"); System.out.println(md.toString()); System.out.println(md.getTupleSerializer().toString()); }
/** * Shows some interesting details about the terms index. * * @param cxn The connection. */ public static void showLexiconIndexDetails(final BigdataSailConnection cxn) { final IIndex ndx = cxn.getTripleStore().getLexiconRelation().getBlobsIndex(); final IndexMetadata md = ndx.getIndexMetadata(); System.out.println("Lexicon:"); System.out.println(md.toString()); System.out.println(md.getTupleSerializer().toString()); }
@Override protected void setUp() throws Exception { tripleStore = getStore(getProperties()); lex = tripleStore.getLexiconRelation().getNamespace(); valueFactory = tripleStore.getValueFactory(); }
public IV addTerm(final Value value) { final BigdataValue[] terms = new BigdataValue[] {// getValueFactory().asValue(value) // }; getLexiconRelation().addTerms(terms, 1, false/* readOnly */); return terms[0].getIV(); }
@Override protected void setUp() throws Exception { tripleStore = getStore(getProperties()); lex = tripleStore.getLexiconRelation().getNamespace(); valueFactory = tripleStore.getValueFactory(); }
public IV addTerm(final Value value) { final BigdataValue[] terms = new BigdataValue[] {// getValueFactory().asValue(value) // }; getLexiconRelation().addTerms(terms, 1, false/* readOnly */); return terms[0].getIV(); }
@Override protected void setUp() throws Exception { tripleStore = getStore(getProperties()); lex = tripleStore.getLexiconRelation().getNamespace(); valueFactory = tripleStore.getValueFactory(); }