it.unimi.di.mg4j.query.nodes
Class MultiIndexTermExpander.ExpanderVisitor
java.lang.Object
it.unimi.di.mg4j.query.nodes.AbstractQueryBuilderVisitor<Query>
it.unimi.di.mg4j.query.nodes.AbstractTermExpander.ExpanderVisitor
it.unimi.di.mg4j.query.nodes.MultiIndexTermExpander.ExpanderVisitor
- All Implemented Interfaces:
- QueryBuilderVisitor<Query>, FlyweightPrototype<QueryBuilderVisitor<Query>>
- Enclosing class:
- MultiIndexTermExpander
protected class MultiIndexTermExpander.ExpanderVisitor
- extends AbstractTermExpander.ExpanderVisitor
Methods inherited from class it.unimi.di.mg4j.query.nodes.AbstractTermExpander.ExpanderVisitor |
newArray, prepare, visit, visit, visit, visit, visit, visitPost, visitPost, visitPost, visitPost, visitPost, visitPost, visitPost, visitPost, visitPost, visitPost |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiIndexTermExpander.ExpanderVisitor
protected MultiIndexTermExpander.ExpanderVisitor()
copy
public MultiIndexTermExpander.ExpanderVisitor copy()
- Specified by:
copy
in interface QueryBuilderVisitor<Query>
- Specified by:
copy
in interface FlyweightPrototype<QueryBuilderVisitor<Query>>
- Overrides:
copy
in class AbstractTermExpander.ExpanderVisitor
visitPre
public boolean visitPre(Consecutive node)
- Description copied from interface:
QueryBuilderVisitor
- Visits a
Consecutive
node before recursing into the corresponding subtree.
- Specified by:
visitPre
in interface QueryBuilderVisitor<Query>
- Overrides:
visitPre
in class AbstractQueryBuilderVisitor<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 a
Consecutive
node after recursing into the corresponding subtree.
- Specified by:
visitPost
in interface QueryBuilderVisitor<Query>
- Overrides:
visitPost
in class AbstractTermExpander.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, or null
.
- Throws:
QueryBuilderVisitorException
visitPre
public boolean visitPre(OrderedAnd node)
- Description copied from interface:
QueryBuilderVisitor
- Visits an
OrderedAnd
node before recursing into the corresponding subtree.
- Specified by:
visitPre
in interface QueryBuilderVisitor<Query>
- Overrides:
visitPre
in class AbstractQueryBuilderVisitor<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 an
OrderedAnd
node after recursing into the corresponding subtree.
- Specified by:
visitPost
in interface QueryBuilderVisitor<Query>
- Overrides:
visitPost
in class AbstractTermExpander.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, or null
.
- Throws:
QueryBuilderVisitorException