Package com.yahoo.document.select.rule
Class IdNode
- java.lang.Object
-
- com.yahoo.document.select.rule.IdNode
-
- All Implemented Interfaces:
ExpressionNode
public class IdNode extends Object implements ExpressionNode
- Author:
- Simon Thoresen Hult
-
-
Constructor Summary
Constructors Constructor Description IdNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(Visitor visitor)
Perform visitation of this node.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.String
getField()
IdNode
setDivisionBits(short divisionBits)
IdNode
setField(String field)
IdNode
setWidthBits(short widthBits)
String
toString()
-
-
-
Method Detail
-
getField
public String getField()
-
setWidthBits
public IdNode setWidthBits(short widthBits)
-
setDivisionBits
public IdNode setDivisionBits(short divisionBits)
-
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 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
-
-