public class DynamicDateFieldPrefix extends DatePrefix
PrefixHandler.ErrorBehaviour, PrefixHandler.NoHooks, PrefixHandler.Phase
defaultOperator, errorBehaviour, lsb, msb, numop, targetIndexField, useAttributes
Constructor and Description |
---|
DynamicDateFieldPrefix(java.lang.String targetIndexField,
IndexOptions.NumericalOperator defaultOp,
boolean time,
java.lang.String meta) |
Modifier and Type | Method and Description |
---|---|
Node |
handlePrefix(PrefixHandler.Phase phase,
PrefixNode node,
NodeVisitor parentVisitor,
QueryContext queryContext)
Handle a given prefix node.
|
Node |
visit(PrefixNode node) |
Node |
visit(RangeNode node) |
Node |
visit(UserQueryChunk node) |
buildNumericalValueNode, makeBoundariesInclusive
onDeinit, onInit, onQuery, setErrorBehaviour, setParams
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitNary, visitUnary
public DynamicDateFieldPrefix(java.lang.String targetIndexField, IndexOptions.NumericalOperator defaultOp, boolean time, java.lang.String meta)
public Node handlePrefix(PrefixHandler.Phase phase, PrefixNode node, NodeVisitor parentVisitor, QueryContext queryContext) throws QueryProcessingException
PrefixHandler
handlePrefix
in interface PrefixHandler
handlePrefix
in class DatePrefix
phase
- the "Phase" of the prefix handler, indicating how far in
the pipeline we are.In the standard chain, 4 phases are defined:
PRE_LINGUISTIC, PRE_TRANSFORM, PRE_MAP, POST_MAPnode
- The prefix node to handleparentVisitor
- If your handler is not "terminal", ie, if it
supports nesting, it should call this visitor to visit the prefix
node's content, additionally to performing its work. Warning: this
can be null, in that case, you must not delegate.queryContext
- access to overridable query-related parametersQueryProcessingException
public Node visit(UserQueryChunk node) throws QueryProcessingException
visit
in class NodeVisitor
QueryProcessingException
public Node visit(RangeNode node) throws QueryProcessingException
visit
in class NodeVisitor
QueryProcessingException
public Node visit(PrefixNode node) throws QueryProcessingException
visit
in class NodeVisitor
QueryProcessingException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.