Package com.yahoo.document.select.rule
Class SearchColumnNode
- java.lang.Object
-
- com.yahoo.document.select.rule.SearchColumnNode
-
- All Implemented Interfaces:
ExpressionNode
public class SearchColumnNode extends java.lang.Object implements ExpressionNode
- Author:
- Simon Thoresen Hult
-
-
Constructor Summary
Constructors Constructor Description SearchColumnNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(Visitor visitor)
Perform visitation of this node.java.lang.Object
evaluate(Context context)
Evaluate the content of this node based on document object, and return that value.BucketSet
getBucketSet(BucketIdFactory factory)
Returns the set of bucket ids covered by this node.BucketDistribution
getDistribution()
int
getField()
OrderingSpecification
getOrdering(int order)
If this document selection implies a specific ordering (using the orderdoc scheme), return that specification.SearchColumnNode
setField(int field)
java.lang.String
toString()
-
-
-
Method Detail
-
getField
public int getField()
-
setField
public SearchColumnNode setField(int field)
-
getDistribution
public BucketDistribution getDistribution()
-
getBucketSet
public BucketSet getBucketSet(BucketIdFactory factory)
Description copied from interface:ExpressionNode
Returns the set of bucket ids covered by this node.- Specified by:
getBucketSet
in interfaceExpressionNode
- Parameters:
factory
- The factory used by the current application.
-
evaluate
public java.lang.Object evaluate(Context context)
Description copied from interface:ExpressionNode
Evaluate the content of this node based on document object, and return that value.- Specified by:
evaluate
in interfaceExpressionNode
- Parameters:
context
- The document to evaluate over.- Returns:
- The value of this.
-
accept
public void accept(Visitor visitor)
Description copied from interface:ExpressionNode
Perform visitation of this node.- Specified by:
accept
in interfaceExpressionNode
- Parameters:
visitor
- The visitor that wishes to visit the node.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getOrdering
public OrderingSpecification getOrdering(int order)
Description copied from interface:ExpressionNode
If this document selection implies a specific ordering (using the orderdoc scheme), return that specification.- Specified by:
getOrdering
in interfaceExpressionNode
- Parameters:
order
- The order in which we are looking to traverse the ordering (ASCENDING or DESCENDING)
-
-