/** * A scan of all literals having the given literal as a prefix. * * @param lit * A literal. * * @return An iterator visiting the term identifiers for the matching * {@link Literal}s. * * TODO Prefix scan only visits the TERM2ID index (blobs and inline * literals will not be observed). This should be mapped onto a free * text index query instead. In order to have the same semantics we * must also verify that (a) the prefix match is at the start of the * literal; and (b) the match is contiguous. */ @SuppressWarnings("rawtypes") public Iterator<IV> prefixScan(final Literal lit) { if (lit == null) throw new IllegalArgumentException(); return prefixScan(new Literal[] { lit }); }
/** * A scan of all literals having the given literal as a prefix. * * @param lit * A literal. * * @return An iterator visiting the term identifiers for the matching * {@link Literal}s. * * TODO Prefix scan only visits the TERM2ID index (blobs and inline * literals will not be observed). This should be mapped onto a free * text index query instead. In order to have the same semantics we * must also verify that (a) the prefix match is at the start of the * literal; and (b) the match is contiguous. */ @SuppressWarnings("rawtypes") public Iterator<IV> prefixScan(final Literal lit) { if (lit == null) throw new IllegalArgumentException(); return prefixScan(new Literal[] { lit }); }
.prefixScan(new LiteralImpl("minor"));
.prefixScan(new LiteralImpl("minor"));
final IConstant<IV>[] _preds, final IV _cls) { final Iterator<IV> ivIterator = getLexiconRelation().prefixScan( lits);
final IConstant<IV>[] _preds, final IV _cls) { final Iterator<IV> ivIterator = getLexiconRelation().prefixScan( lits);
.prefixScan(new LiteralImpl("minor"));