public class IdNode extends Object implements ExpressionNode
Modifier and Type | Field and Description |
---|---|
private short |
divisionBits |
private String |
field |
private short |
widthBits |
Constructor and Description |
---|
IdNode() |
Modifier and Type | Method and 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.
|
short |
getDivisionBits() |
String |
getField() |
OrderingSpecification |
getOrdering(int ordering)
If this document selection implies a specific ordering (using the orderdoc scheme),
return that specification.
|
short |
getWidthBits() |
IdNode |
setDivisionBits(short divisionBits) |
IdNode |
setField(String field) |
IdNode |
setWidthBits(short widthBits) |
String |
toString() |
private String field
private short widthBits
private short divisionBits
public String getField()
public IdNode setWidthBits(short widthBits)
public IdNode setDivisionBits(short divisionBits)
public short getWidthBits()
public short getDivisionBits()
public BucketSet getBucketSet(BucketIdFactory factory)
ExpressionNode
getBucketSet
in interface ExpressionNode
factory
- The factory used by the current application.public OrderingSpecification getOrdering(int ordering)
ExpressionNode
getOrdering
in interface ExpressionNode
ordering
- The order in which we are looking to traverse the ordering (ASCENDING or DESCENDING)public Object evaluate(Context context)
ExpressionNode
evaluate
in interface ExpressionNode
context
- The document to evaluate over.public void accept(Visitor visitor)
ExpressionNode
accept
in interface ExpressionNode
visitor
- The visitor that wishes to visit the node.Copyright © 2017. All rights reserved.