public class DistinctMultiTermAdvancer extends Advancer<SPO>
DistinctTermAdvancer
. It supports an
efficient scan of the distinct term identifiers that appear in the first
position(s) of the keys for the statement index corresponding to the
specified IKeyOrder
. For example, using SPOKeyOrder.POS
will
give you the term identifiers for the distinct predicates actually in use
within statements in the SPORelation
.
Note: This class only offers additional functionality over the
DistinctTermAdvancer
for a quad store. For example, consider a triple
store with 2-bound on the SPOKeyOrder.SPO
index. Since you are only
going to visit the distinct Object values, the advancer will not "advance"
over anything and you might as well use a normal IAccessPath
or
rangeIterator.
DistinctTermAdvancer
,
Serialized FormConstructor and Description |
---|
DistinctMultiTermAdvancer(int arity,
int boundEntries) |
Modifier and Type | Method and Description |
---|---|
protected void |
advance(ITuple<SPO> tuple)
Offers an opportunity to advance the source
ITupleCursor to a
new key using {@link ITupleCursor#seek(byte[]). |
filterOnce, init
addFilter, filter, getProperty, getRequiredProperty, setProperty, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getProperty
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.