public class DistinctTermAdvancer extends Advancer<SPO>
ITupleCursor
through the distinct term
identifiers for some AccessPath
. Each time a new
ITuple
is visited, the term identifier for the first position in
that tuple is decoded and its successor is formed. The source
ITupleCursor
is then advanced to the key having that term
identifier in its first position and IRawTripleStore#NULL
in its
2nd and 3rd position. For example, if the ITupleCursor
visits an
ITuple
whose term identifiers are, in the order in which they
appear in the key:
[ 12, 4, 44 ]Then the source
ITupleCursor
will be advanced to the key:
[ 13, 0, 0 ]This is used to efficiently visit the distinct terms actually appearing in the subject, predicate, or object position of
SPO
s in the
database.Constructor and Description |
---|
DistinctTermAdvancer(int arityIsIgnored) |
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.