Package it.unimi.di.big.mg4j.query.nodes
Class MultiIndexTermExpander.ExpanderVisitor
- java.lang.Object
-
- it.unimi.di.big.mg4j.query.nodes.AbstractQueryBuilderVisitor<Query>
-
- it.unimi.di.big.mg4j.query.nodes.AbstractTermExpander.ExpanderVisitor
-
- it.unimi.di.big.mg4j.query.nodes.MultiIndexTermExpander.ExpanderVisitor
-
- All Implemented Interfaces:
QueryBuilderVisitor<Query>
,FlyweightPrototype<QueryBuilderVisitor<Query>>
- Enclosing class:
- MultiIndexTermExpander
protected class MultiIndexTermExpander.ExpanderVisitor extends AbstractTermExpander.ExpanderVisitor
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ExpanderVisitor()
-
Method Summary
Modifier and Type Method Description MultiIndexTermExpander.ExpanderVisitor
copy()
Query
visitPost(Consecutive node, Query[] subNode)
Visits aConsecutive
node after recursing into the corresponding subtree.Query
visitPost(OrderedAnd node, Query[] subNode)
Visits anOrderedAnd
node after recursing into the corresponding subtree.boolean
visitPre(Consecutive node)
Visits aConsecutive
node before recursing into the corresponding subtree.boolean
visitPre(OrderedAnd node)
Visits anOrderedAnd
node before recursing into the corresponding subtree.-
Methods inherited from class it.unimi.di.big.mg4j.query.nodes.AbstractTermExpander.ExpanderVisitor
newArray, prepare, visit, visit, visit, visit, visit, visitPost, visitPost, visitPost, visitPost, visitPost, visitPost, visitPost, visitPost, visitPost, visitPost, visitPost, visitPost, visitPost
-
-
-
-
Method Detail
-
copy
public MultiIndexTermExpander.ExpanderVisitor copy()
- Specified by:
copy
in interfaceFlyweightPrototype<QueryBuilderVisitor<Query>>
- Specified by:
copy
in interfaceQueryBuilderVisitor<Query>
- Overrides:
copy
in classAbstractTermExpander.ExpanderVisitor
-
visitPre
public boolean visitPre(Consecutive node)
Description copied from interface:QueryBuilderVisitor
Visits aConsecutive
node before recursing into the corresponding subtree.- Specified by:
visitPre
in interfaceQueryBuilderVisitor<Query>
- Overrides:
visitPre
in classAbstractQueryBuilderVisitor<Query>
- Parameters:
node
- the node to be visited.- Returns:
- true if the visit should continue.
-
visitPost
public Query visitPost(Consecutive node, Query[] subNode) throws QueryBuilderVisitorException
Description copied from interface:QueryBuilderVisitor
Visits aConsecutive
node after recursing into the corresponding subtree.- Specified by:
visitPost
in interfaceQueryBuilderVisitor<Query>
- Overrides:
visitPost
in classAbstractTermExpander.ExpanderVisitor
- 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(OrderedAnd node)
Description copied from interface:QueryBuilderVisitor
Visits anOrderedAnd
node before recursing into the corresponding subtree.- Specified by:
visitPre
in interfaceQueryBuilderVisitor<Query>
- Overrides:
visitPre
in classAbstractQueryBuilderVisitor<Query>
- Parameters:
node
- the node to be visited.- Returns:
- true if the visit should continue.
-
visitPost
public Query visitPost(OrderedAnd node, Query[] subNode) throws QueryBuilderVisitorException
Description copied from interface:QueryBuilderVisitor
Visits anOrderedAnd
node after recursing into the corresponding subtree.- Specified by:
visitPost
in interfaceQueryBuilderVisitor<Query>
- Overrides:
visitPost
in classAbstractTermExpander.ExpanderVisitor
- 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
-
-