Class IndexAggregateFunction
- java.lang.Object
-
- com.apple.foundationdb.record.metadata.IndexAggregateFunction
-
- All Implemented Interfaces:
PlanHashable
- Direct Known Subclasses:
TimeWindowAggregateFunction
@API(MAINTAINED) public class IndexAggregateFunction extends Object implements PlanHashable
An aggregate function implemented by scanning an appropriate index.
-
-
Constructor Summary
Constructors Constructor Description IndexAggregateFunction(String name, KeyExpression operand, String index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TupleRange
adjustRange(EvaluationContext context, TupleRange tupleRange)
IndexAggregateFunction
cloneWithIndex(String index)
IndexAggregateFunction
cloneWithOperand(KeyExpression operand)
boolean
equals(Object o)
String
getIndex()
String
getName()
KeyExpression
getOperand()
int
hashCode()
int
planHash()
Return a hash similar tohashCode
, but with the additional guarantee that is is stable across JVMs.String
toString()
void
validate(Descriptors.Descriptor descriptor)
-
-
-
Method Detail
-
getOperand
@Nonnull public KeyExpression getOperand()
-
cloneWithOperand
@Nonnull public IndexAggregateFunction cloneWithOperand(@Nonnull KeyExpression operand)
-
cloneWithIndex
@Nonnull public IndexAggregateFunction cloneWithIndex(@Nonnull String index)
-
validate
public void validate(@Nonnull Descriptors.Descriptor descriptor)
-
adjustRange
@Nonnull public TupleRange adjustRange(@Nonnull EvaluationContext context, @Nonnull TupleRange tupleRange)
-
planHash
public int planHash()
Description copied from interface:PlanHashable
Return a hash similar tohashCode
, but with the additional guarantee that is is stable across JVMs.- Specified by:
planHash
in interfacePlanHashable
- Returns:
- a stable hash code
-
-