Class DocumentIteratorBuilderVisitor
- java.lang.Object
-
- it.unimi.di.big.mg4j.query.nodes.AbstractQueryBuilderVisitor<DocumentIterator>
-
- it.unimi.di.big.mg4j.search.DocumentIteratorBuilderVisitor
-
- All Implemented Interfaces:
QueryBuilderVisitor<DocumentIterator>
,FlyweightPrototype<QueryBuilderVisitor<DocumentIterator>>
public class DocumentIteratorBuilderVisitor extends AbstractQueryBuilderVisitor<DocumentIterator>
AQueryBuilderVisitor
that builds aDocumentIterator
resolving the queries using the objects init.unimi.di.big.mg4j.search
.This elementary builder visitor invokes
Index.documents(CharSequence)
to build the leaf index iterators. Thus, the resultingDocumentIterator
should be carefully disposed after usage (every index iterator may open a file or a socket).Prefix
andMultiTerm
nodes cause the creation of aMultiTermIndexIterator
, in the first case by callingIndex.documents(CharSequence,int)
and in the second case by creating aMultiTermIndexIterator
with the name and frequency equal to the maximum frequency over all terms. Other implementations might choose differently.At construction time, you must provide a map from strings to indices that will be used to resolve
Select
nodes. The map may benull
, in which case such nodes will cause anIllegalArgumentException
. If aSelect
node contains an index name that does not appear in the map aNoSuchElementException
will be thrown instead.A production site will likely substitute this builder visitor with one that reuses index readers out of a pool.
Instances of this class may be safely reused by calling
prepare()
.
-
-
Field Summary
Fields Modifier and Type Field Description protected ObjectArrayList<Index>
curr
The stack of selected indices (changed bySelect
nodes).protected Index
defaultIndex
The default index.protected Reference2ReferenceMap<Index,Object>
index2Parser
A map associating an object with aparse(String)
method to each payload-based index.protected Object2ReferenceMap<String,Index>
indexMap
A map associating a textual key to indices.protected int
limit
The limit on prefix queries provided in the constructor.protected long
numberOfDocuments
The number of documents (fetched from the default index).protected double
weight
The last seen, but still not consumed, weight, orDouble.NaN
.protected DoubleArrayList
weights
The stack of weights.
-
Constructor Summary
Constructors Constructor Description DocumentIteratorBuilderVisitor(Object2ReferenceMap<String,Index> indexMap, Index defaultIndex, int limit)
Creates a new builder visitor.DocumentIteratorBuilderVisitor(Object2ReferenceMap<String,Index> indexMap, Reference2ReferenceMap<Index,Object> index2Parser, Index defaultIndex, int limit)
Creates a new builder visitor with additional parsers for payload-based indices.
-
Method Summary
Modifier and Type Method Description DocumentIteratorBuilderVisitor
copy()
DocumentIterator[]
newArray(int len)
Builds an array of given length of typeT
.DocumentIteratorBuilderVisitor
prepare()
No-op.protected void
pushWeight()
Pushesweight
, if it is notDouble.NaN
, or 1, otherwise, on the stack of weights; in either case, setsweight
toDouble.NaN
.DocumentIterator
visit(False node)
VisitsFalse
.DocumentIterator
visit(Prefix node)
Visits aPrefix
.DocumentIterator
visit(Range node)
Visits aRange
.DocumentIterator
visit(Term node)
Visits aTerm
.DocumentIterator
visit(True node)
VisitsTrue
.DocumentIterator
visitPost(Align node, DocumentIterator[] subNode)
Visits anAlign
node after recursing into the corresponding subtree.DocumentIterator
visitPost(And node, DocumentIterator[] subNode)
Visits anAnd
node after recursing into the corresponding subtree.DocumentIterator
visitPost(Annotation node, DocumentIterator subNode)
Visits aAnnotation
node after recursing into the corresponding subtree.DocumentIterator
visitPost(Consecutive node, DocumentIterator[] subNode)
Visits aConsecutive
node after recursing into the corresponding subtree.DocumentIterator
visitPost(Containment node, DocumentIterator[] subNode)
Visits anContainment
node after recursing into the corresponding subtree.DocumentIterator
visitPost(Difference node, DocumentIterator[] subNode)
Visits aDifference
node after recursing into the corresponding subtree.DocumentIterator
visitPost(Inclusion node, DocumentIterator[] subNode)
Visits anInclusion
node after recursing into the corresponding subtree.DocumentIterator
visitPost(LowPass node, DocumentIterator subNode)
Visits aLowPass
node after recursing into the corresponding subtree.DocumentIterator
visitPost(MultiTerm node, DocumentIterator[] subNode)
Visits aMultiTerm
node after recursing into the corresponding subtree.DocumentIterator
visitPost(Not node, DocumentIterator subNode)
Visits aNot
node after recursing into the corresponding subtree.DocumentIterator
visitPost(OrderedAnd node, DocumentIterator[] subNode)
Visits anOrderedAnd
node after recursing into the corresponding subtree.DocumentIterator
visitPost(Or node, DocumentIterator[] subNode)
Visits anOr
node after recursing into the corresponding subtree.DocumentIterator
visitPost(Remap node, DocumentIterator subNode)
Visits aRemap
node after recursing into the corresponding subtree.DocumentIterator
visitPost(Select node, DocumentIterator subNode)
Visits aSelect
node after recursing into the corresponding subtree.DocumentIterator
visitPost(Weight node, DocumentIterator subNode)
Visits aWeight
node after recursing into the corresponding subtree.boolean
visitPre(Align node)
Visits anAlign
node before recursing into the corresponding subtree.boolean
visitPre(And node)
Visits anAnd
node before recursing into the corresponding subtree.boolean
visitPre(Annotation node)
Visits aAnnotation
node before recursing into the corresponding subtree.boolean
visitPre(Consecutive node)
Visits aConsecutive
node before recursing into the corresponding subtree.boolean
visitPre(Containment node)
Visits anContainment
node before recursing into the corresponding subtree.boolean
visitPre(Difference node)
Visits aDifference
node before recursing into the corresponding subtree.boolean
visitPre(Inclusion node)
Visits anInclusion
node before recursing into the corresponding subtree.boolean
visitPre(LowPass node)
Visits aLowPass
node before recursing into the corresponding subtree.boolean
visitPre(MultiTerm node)
Visits aMultiTerm
node before recursing into the corresponding subtree.boolean
visitPre(Not node)
Visits aNot
node before recursing into the corresponding subtree.boolean
visitPre(Or node)
Visits anOr
node before recursing into the corresponding subtree.boolean
visitPre(OrderedAnd node)
Visits anOrderedAnd
node before recursing into the corresponding subtree.boolean
visitPre(Remap node)
Visits aRemap
node before recursing into the corresponding subtree.boolean
visitPre(Select node)
Visits aSelect
node before recursing into the corresponding subtree.boolean
visitPre(Weight node)
Visits aWeight
node before recursing into the corresponding subtree.protected double
weight()
Returnsweight
, if it is notDouble.NaN
, or 1, otherwise; in either case, setsweight
toDouble.NaN
.
-
-
-
Field Detail
-
indexMap
protected final Object2ReferenceMap<String,Index> indexMap
A map associating a textual key to indices.
-
index2Parser
protected final Reference2ReferenceMap<Index,Object> index2Parser
A map associating an object with aparse(String)
method to each payload-based index.
-
defaultIndex
protected final Index defaultIndex
The default index.
-
numberOfDocuments
protected final long numberOfDocuments
The number of documents (fetched from the default index).
-
limit
protected final int limit
The limit on prefix queries provided in the constructor.
-
curr
protected ObjectArrayList<Index> curr
The stack of selected indices (changed bySelect
nodes).
-
weights
protected DoubleArrayList weights
The stack of weights.
-
weight
protected double weight
The last seen, but still not consumed, weight, orDouble.NaN
.
-
-
Constructor Detail
-
DocumentIteratorBuilderVisitor
public DocumentIteratorBuilderVisitor(Object2ReferenceMap<String,Index> indexMap, Index defaultIndex, int limit)
Creates a new builder visitor.
-
DocumentIteratorBuilderVisitor
public DocumentIteratorBuilderVisitor(Object2ReferenceMap<String,Index> indexMap, Reference2ReferenceMap<Index,Object> index2Parser, Index defaultIndex, int limit)
Creates a new builder visitor with additional parsers for payload-based indices.
-
-
Method Detail
-
pushWeight
protected void pushWeight()
Pushesweight
, if it is notDouble.NaN
, or 1, otherwise, on the stack of weights; in either case, setsweight
toDouble.NaN
.
-
weight
protected double weight()
Returnsweight
, if it is notDouble.NaN
, or 1, otherwise; in either case, setsweight
toDouble.NaN
.- Returns:
weight
, if it is notDouble.NaN
, or 1, otherwise.
-
copy
public DocumentIteratorBuilderVisitor copy()
-
prepare
public DocumentIteratorBuilderVisitor prepare()
Description copied from class:AbstractQueryBuilderVisitor
No-op.- Specified by:
prepare
in interfaceQueryBuilderVisitor<DocumentIterator>
- Overrides:
prepare
in classAbstractQueryBuilderVisitor<DocumentIterator>
- Returns:
- this visitor.
-
newArray
public DocumentIterator[] newArray(int len)
Description copied from interface:QueryBuilderVisitor
Builds an array of given length of typeT
.Because of erasure, generic classes in Java cannot allocate arrays of generic types. This impossibility can be a problem if for some reason the
visitPost()
methods expect an actual array of typeT
. This method must provide an array of given length that is an acceptable input for allvisitPost()
methods.Note that by declaring an implementing class of this interface that has a sole constructor accepting an argument of type
Class<T>
, you will force the user to provide the class of the generic type, opening the way for the reflective methods inArray
.- Parameters:
len
- the required array length.- Returns:
- an array of type
T
of lengthlen
.
-
visit
public DocumentIterator visit(Term node) throws QueryBuilderVisitorException
Description copied from interface:QueryBuilderVisitor
Visits aTerm
.- Parameters:
node
- the leaf to be visited.- Returns:
- true if the visit should continue.
- Throws:
QueryBuilderVisitorException
-
visit
public DocumentIterator visit(Prefix node) throws QueryBuilderVisitorException
Description copied from interface:QueryBuilderVisitor
Visits aPrefix
.- Parameters:
node
- the leaf to be visited.- Returns:
- an appropriate return value (usually, the object built using the elements in
subNodeResult
) if the visit should continue, ornull
. - Throws:
QueryBuilderVisitorException
-
visit
public DocumentIterator visit(Range node) throws QueryBuilderVisitorException
Description copied from interface:QueryBuilderVisitor
Visits aRange
.- Parameters:
node
- the leaf to be visited.- Returns:
- true if the visit should continue.
- Throws:
QueryBuilderVisitorException
-
visitPre
public boolean visitPre(And node) throws QueryBuilderVisitorException
Description copied from interface:QueryBuilderVisitor
Visits anAnd
node before recursing into the corresponding subtree.- Specified by:
visitPre
in interfaceQueryBuilderVisitor<DocumentIterator>
- Overrides:
visitPre
in classAbstractQueryBuilderVisitor<DocumentIterator>
- Parameters:
node
- the node to be visited.- Returns:
- true if the visit should continue.
- Throws:
QueryBuilderVisitorException
-
visitPost
public DocumentIterator visitPost(And node, DocumentIterator[] subNode) throws QueryBuilderVisitorException
Description copied from interface:QueryBuilderVisitor
Visits anAnd
node after recursing into the corresponding subtree.- Parameters:
node
- the internal node to be visited.subNode
- the array of results returned by subnodes.- Returns:
- an appropriate return value (usually, the object built using the elements in
subNodeResult
) if the visit should continue, ornull
. - Throws:
QueryBuilderVisitorException
-
visitPre
public boolean visitPre(Consecutive node) throws QueryBuilderVisitorException
Description copied from interface:QueryBuilderVisitor
Visits aConsecutive
node before recursing into the corresponding subtree.- Specified by:
visitPre
in interfaceQueryBuilderVisitor<DocumentIterator>
- Overrides:
visitPre
in classAbstractQueryBuilderVisitor<DocumentIterator>
- Parameters:
node
- the node to be visited.- Returns:
- true if the visit should continue.
- Throws:
QueryBuilderVisitorException
-
visitPost
public DocumentIterator visitPost(Consecutive node, DocumentIterator[] subNode) throws QueryBuilderVisitorException
Description copied from interface:QueryBuilderVisitor
Visits aConsecutive
node after recursing into the corresponding subtree.- Parameters:
node
- the internal node to be visited.subNode
- the array of results returned by subnodes.- Returns:
- an appropriate return value (usually, the object built using the elements in
subNodeResult
) if the visit should continue, ornull
. - Throws:
QueryBuilderVisitorException
-
visitPre
public boolean visitPre(LowPass node) throws QueryBuilderVisitorException
Description copied from interface:QueryBuilderVisitor
Visits aLowPass
node before recursing into the corresponding subtree.- Specified by:
visitPre
in interfaceQueryBuilderVisitor<DocumentIterator>
- Overrides:
visitPre
in classAbstractQueryBuilderVisitor<DocumentIterator>
- Parameters:
node
- the node to be visited.- Returns:
- true if the visit should continue.
- Throws:
QueryBuilderVisitorException
-
visitPost
public DocumentIterator visitPost(LowPass node, DocumentIterator subNode)
Description copied from interface:QueryBuilderVisitor
Visits aLowPass
node after recursing into the corresponding subtree.- Parameters:
node
- the internal node to be visited.subNode
- the of result returned by the sole subnode.- Returns:
- an appropriate return value (usually, the object built using
subNodeResult
) if the visit should continue, ornull
.
-
visitPre
public boolean visitPre(Annotation node) throws QueryBuilderVisitorException
Description copied from interface:QueryBuilderVisitor
Visits aAnnotation
node before recursing into the corresponding subtree.- Specified by:
visitPre
in interfaceQueryBuilderVisitor<DocumentIterator>
- Overrides:
visitPre
in classAbstractQueryBuilderVisitor<DocumentIterator>
- Parameters:
node
- the node to be visited.- Returns:
- true if the visit should continue.
- Throws:
QueryBuilderVisitorException
-
visitPost
public DocumentIterator visitPost(Annotation node, DocumentIterator subNode)
Description copied from interface:QueryBuilderVisitor
Visits aAnnotation
node after recursing into the corresponding subtree.- Parameters:
node
- the internal node to be visited.subNode
- the of result returned by the sole subnode.- Returns:
- an appropriate return value (usually, the object built using
subNodeResult
) if the visit should continue, ornull
.
-
visitPre
public boolean visitPre(Not node) throws QueryBuilderVisitorException
Description copied from interface:QueryBuilderVisitor
Visits aNot
node before recursing into the corresponding subtree.- Specified by:
visitPre
in interfaceQueryBuilderVisitor<DocumentIterator>
- Overrides:
visitPre
in classAbstractQueryBuilderVisitor<DocumentIterator>
- Parameters:
node
- the node to be visited.- Returns:
- true if the visit should continue.
- Throws:
QueryBuilderVisitorException
-
visitPost
public DocumentIterator visitPost(Not node, DocumentIterator subNode) throws QueryBuilderVisitorException
Description copied from interface:QueryBuilderVisitor
Visits aNot
node after recursing into the corresponding subtree.- Parameters:
node
- the internal node to be visited.subNode
- the of result returned by the sole subnode.- Returns:
- an appropriate return value (usually, the object built using
subNodeResult
) if the visit should continue, ornull
. - Throws:
QueryBuilderVisitorException
-
visitPre
public boolean visitPre(Or node) throws QueryBuilderVisitorException
Description copied from interface:QueryBuilderVisitor
Visits anOr
node before recursing into the corresponding subtree.- Specified by:
visitPre
in interfaceQueryBuilderVisitor<DocumentIterator>
- Overrides:
visitPre
in classAbstractQueryBuilderVisitor<DocumentIterator>
- Parameters:
node
- the node to be visited.- Returns:
- true if the visit should continue.
- Throws:
QueryBuilderVisitorException
-
visitPost
public DocumentIterator visitPost(Or node, DocumentIterator[] subNode) throws QueryBuilderVisitorException
Description copied from interface:QueryBuilderVisitor
Visits anOr
node after recursing into the corresponding subtree.- Parameters:
node
- the internal node to be visited.- Returns:
- an appropriate return value (usually, the object built using the elements in
subNodeResult
) if the visit should continue, ornull
. - Throws:
QueryBuilderVisitorException
-
visitPre
public boolean visitPre(OrderedAnd node) throws QueryBuilderVisitorException
Description copied from interface:QueryBuilderVisitor
Visits anOrderedAnd
node before recursing into the corresponding subtree.- Specified by:
visitPre
in interfaceQueryBuilderVisitor<DocumentIterator>
- Overrides:
visitPre
in classAbstractQueryBuilderVisitor<DocumentIterator>
- Parameters:
node
- the node to be visited.- Returns:
- true if the visit should continue.
- Throws:
QueryBuilderVisitorException
-
visitPost
public DocumentIterator visitPost(OrderedAnd node, DocumentIterator[] subNode) throws QueryBuilderVisitorException
Description copied from interface:QueryBuilderVisitor
Visits anOrderedAnd
node after recursing into the corresponding subtree.- Parameters:
node
- the internal node to be visited.subNode
- the array of results returned by subnodes.- Returns:
- an appropriate return value (usually, the object built using the elements in
subNodeResult
) if the visit should continue, ornull
. - Throws:
QueryBuilderVisitorException
-
visitPre
public boolean visitPre(Align node) throws QueryBuilderVisitorException
Description copied from interface:QueryBuilderVisitor
Visits anAlign
node before recursing into the corresponding subtree.- Specified by:
visitPre
in interfaceQueryBuilderVisitor<DocumentIterator>
- Overrides:
visitPre
in classAbstractQueryBuilderVisitor<DocumentIterator>
- Parameters:
node
- the node to be visited.- Returns:
- true if the visit should continue.
- Throws:
QueryBuilderVisitorException
-
visitPost
public DocumentIterator visitPost(Align node, DocumentIterator[] subNode) throws QueryBuilderVisitorException
Description copied from interface:QueryBuilderVisitor
Visits anAlign
node after recursing into the corresponding subtree.- Parameters:
node
- the internal node to be visited.subNode
- the array of results returned by subnodes.- Returns:
- an appropriate return value (usually, the object built using the elements in
subNodeResult
) if the visit should continue, ornull
. - Throws:
QueryBuilderVisitorException
-
visitPre
public boolean visitPre(Difference node) throws QueryBuilderVisitorException
Description copied from interface:QueryBuilderVisitor
Visits aDifference
node before recursing into the corresponding subtree.- Specified by:
visitPre
in interfaceQueryBuilderVisitor<DocumentIterator>
- Overrides:
visitPre
in classAbstractQueryBuilderVisitor<DocumentIterator>
- Parameters:
node
- the node to be visited.- Returns:
- true if the visit should continue.
- Throws:
QueryBuilderVisitorException
-
visitPost
public DocumentIterator visitPost(Difference node, DocumentIterator[] subNode)
Description copied from interface:QueryBuilderVisitor
Visits aDifference
node after recursing into the corresponding subtree.- Parameters:
node
- the internal node to be visited.subNode
- the array of results returned by subnodes.- Returns:
- an appropriate return value (usually, the object built using the elements in
subNodeResult
) if the visit should continue, ornull
.
-
visitPre
public boolean visitPre(Inclusion node) throws QueryBuilderVisitorException
Description copied from interface:QueryBuilderVisitor
Visits anInclusion
node before recursing into the corresponding subtree.- Specified by:
visitPre
in interfaceQueryBuilderVisitor<DocumentIterator>
- Overrides:
visitPre
in classAbstractQueryBuilderVisitor<DocumentIterator>
- Parameters:
node
- the node to be visited.- Returns:
- true if the visit should continue.
- Throws:
QueryBuilderVisitorException
-
visitPost
public DocumentIterator visitPost(Inclusion node, DocumentIterator[] subNode)
Description copied from interface:QueryBuilderVisitor
Visits anInclusion
node after recursing into the corresponding subtree.- Parameters:
node
- the internal node to be visited.subNode
- the array of results returned by subnodes.- Returns:
- an appropriate return value (usually, the object built using the elements in
subNodeResult
) if the visit should continue, ornull
.
-
visitPre
public boolean visitPre(Containment node) throws QueryBuilderVisitorException
Description copied from interface:QueryBuilderVisitor
Visits anContainment
node before recursing into the corresponding subtree.- Specified by:
visitPre
in interfaceQueryBuilderVisitor<DocumentIterator>
- Overrides:
visitPre
in classAbstractQueryBuilderVisitor<DocumentIterator>
- Parameters:
node
- the node to be visited.- Returns:
- true if the visit should continue.
- Throws:
QueryBuilderVisitorException
-
visitPost
public DocumentIterator visitPost(Containment node, DocumentIterator[] subNode)
Description copied from interface:QueryBuilderVisitor
Visits anContainment
node after recursing into the corresponding subtree.- Parameters:
node
- the internal node to be visited.subNode
- the array of results returned by subnodes.- Returns:
- an appropriate return value (usually, the object built using the elements in
subNodeResult
) if the visit should continue, ornull
.
-
visitPre
public boolean visitPre(MultiTerm node) throws QueryBuilderVisitorException
Description copied from interface:QueryBuilderVisitor
Visits aMultiTerm
node before recursing into the corresponding subtree.- Specified by:
visitPre
in interfaceQueryBuilderVisitor<DocumentIterator>
- Overrides:
visitPre
in classAbstractQueryBuilderVisitor<DocumentIterator>
- Parameters:
node
- the node to be visited.- Returns:
- true if the visit should continue.
- Throws:
QueryBuilderVisitorException
-
visitPost
public DocumentIterator visitPost(MultiTerm node, DocumentIterator[] subNode) throws QueryBuilderVisitorException
Description copied from interface:QueryBuilderVisitor
Visits aMultiTerm
node after recursing into the corresponding subtree.- Parameters:
node
- the internal node to be visited.subNode
- the of result returned by the sole subnode.- Returns:
- an appropriate return value (usually, the object built using
subNodeResult
) if the visit should continue, ornull
. - Throws:
QueryBuilderVisitorException
-
visitPre
public boolean visitPre(Select node) throws QueryBuilderVisitorException
Description copied from interface:QueryBuilderVisitor
Visits aSelect
node before recursing into the corresponding subtree.- Specified by:
visitPre
in interfaceQueryBuilderVisitor<DocumentIterator>
- Overrides:
visitPre
in classAbstractQueryBuilderVisitor<DocumentIterator>
- Parameters:
node
- the node to be visited.- Returns:
- true if the visit should continue.
- Throws:
QueryBuilderVisitorException
-
visitPost
public DocumentIterator visitPost(Select node, DocumentIterator subNode)
Description copied from interface:QueryBuilderVisitor
Visits aSelect
node after recursing into the corresponding subtree.- Parameters:
node
- the internal node to be visited.subNode
- the of result returned by the sole subnode.- Returns:
- an appropriate return value (usually, the object built using
subNodeResult
) if the visit should continue, ornull
.
-
visitPre
public boolean visitPre(Remap node) throws QueryBuilderVisitorException
Description copied from interface:QueryBuilderVisitor
Visits aRemap
node before recursing into the corresponding subtree.- Specified by:
visitPre
in interfaceQueryBuilderVisitor<DocumentIterator>
- Overrides:
visitPre
in classAbstractQueryBuilderVisitor<DocumentIterator>
- Parameters:
node
- the node to be visited.- Returns:
- true if the visit should continue.
- Throws:
QueryBuilderVisitorException
-
visitPost
public DocumentIterator visitPost(Remap node, DocumentIterator subNode)
Description copied from interface:QueryBuilderVisitor
Visits aRemap
node after recursing into the corresponding subtree.- Parameters:
node
- the internal node to be visited.subNode
- the of result returned by the sole subnode.- Returns:
- an appropriate return value (usually, the object built using
subNodeResult
) if the visit should continue, ornull
.
-
visitPre
public boolean visitPre(Weight node) throws QueryBuilderVisitorException
Description copied from interface:QueryBuilderVisitor
Visits aWeight
node before recursing into the corresponding subtree.- Specified by:
visitPre
in interfaceQueryBuilderVisitor<DocumentIterator>
- Overrides:
visitPre
in classAbstractQueryBuilderVisitor<DocumentIterator>
- Parameters:
node
- the node to be visited.- Returns:
- true if the visit should continue.
- Throws:
QueryBuilderVisitorException
-
visitPost
public DocumentIterator visitPost(Weight node, DocumentIterator subNode)
Description copied from interface:QueryBuilderVisitor
Visits aWeight
node after recursing into the corresponding subtree.- Parameters:
node
- the internal node to be visited.subNode
- the of result returned by the sole subnode.- Returns:
- an appropriate return value (usually, the object built using
subNodeResult
) if the visit should continue, ornull
.
-
visit
public DocumentIterator visit(True node) throws QueryBuilderVisitorException
Description copied from interface:QueryBuilderVisitor
VisitsTrue
.- Parameters:
node
- the leaf to be visited.- Returns:
- true if the visit should continue.
- Throws:
QueryBuilderVisitorException
-
visit
public DocumentIterator visit(False node) throws QueryBuilderVisitorException
Description copied from interface:QueryBuilderVisitor
VisitsFalse
.- Parameters:
node
- the leaf to be visited.- Returns:
- true if the visit should continue.
- Throws:
QueryBuilderVisitorException
-
-