|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.unimi.di.mg4j.search.visitor.AbstractDocumentIteratorVisitor it.unimi.di.mg4j.search.visitor.TrueTermsCollectionVisitor
public class TrueTermsCollectionVisitor
A visitor collecting terms that satisfy a query for the current document.
True terms are terms reachable by true paths.
This visitor collects true terms are exposes them in the public trueTerms
variable, in the
order in which they appear in a visit of the iterator.
Field Summary | |
---|---|
ArrayList<String> |
trueTerms
The list of true terms collected in the last visit. |
Constructor Summary | |
---|---|
TrueTermsCollectionVisitor()
Creates a new visitor collecting true terms. |
Method Summary | |
---|---|
AbstractDocumentIteratorVisitor |
prepare()
Prepares the internal state of this visitor for a(nother) visit. |
String |
toString()
|
Boolean |
visit(IndexIterator indexIterator)
Visits an IndexIterator leaf. |
Boolean |
visit(MultiTermIndexIterator multiTermIndexIterator)
Visits a MultiTermIndexIterator leaf. |
Methods inherited from class it.unimi.di.mg4j.search.visitor.AbstractDocumentIteratorVisitor |
---|
newArray, visit, visit, visitPost, visitPre |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final ArrayList<String> trueTerms
Constructor Detail |
---|
public TrueTermsCollectionVisitor()
Method Detail |
---|
public AbstractDocumentIteratorVisitor prepare()
DocumentIteratorVisitor
By specification, it must be safe to call this method any number of times.
prepare
in interface DocumentIteratorVisitor<Boolean>
prepare
in class AbstractDocumentIteratorVisitor
public Boolean visit(IndexIterator indexIterator) throws IOException
DocumentIteratorVisitor
IndexIterator
leaf.
indexIterator
- the leaf to be visited.
null
.
IOException
public Boolean visit(MultiTermIndexIterator multiTermIndexIterator) throws IOException
DocumentIteratorVisitor
MultiTermIndexIterator
leaf.
visit
in interface DocumentIteratorVisitor<Boolean>
visit
in class AbstractDocumentIteratorVisitor
multiTermIndexIterator
- the leaf to be visited.
null
.
IOException
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |