Class CollectionObjectAccessor<R>
- java.lang.Object
-
- org.apache.qpid.server.query.engine.parsing.expression.AbstractExpressionNode<Collection<R>,R>
-
- org.apache.qpid.server.query.engine.parsing.expression.accessor.CollectionObjectAccessor<R>
-
- Type Parameters:
R- Return parameter type
- All Implemented Interfaces:
Function<Collection<R>,R>,Expression<Collection<R>,R>,ExpressionNode<Collection<R>,R>
public class CollectionObjectAccessor<R> extends AbstractExpressionNode<Collection<R>,R>
Collection object accessor retrieves values from a collection
-
-
Field Summary
-
Fields inherited from class org.apache.qpid.server.query.engine.parsing.expression.AbstractExpressionNode
_metadata
-
-
Constructor Summary
Constructors Constructor Description CollectionObjectAccessor(Integer index)Constructor stores index value
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rapply(Collection<R> items)Evaluates expression using parameters and the value supplied-
Methods inherited from class org.apache.qpid.server.query.engine.parsing.expression.AbstractExpressionNode
containsAggregation, ctx, evaluateChild, getAggregations, getAlias, getChild, getChildren, getParent, isAccessor, isInstantlyEvaluable, setAlias, setParent, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.qpid.server.query.engine.parsing.expression.Expression
andThen
-
-
-
-
Constructor Detail
-
CollectionObjectAccessor
public CollectionObjectAccessor(Integer index)
Constructor stores index value- Parameters:
index- Collection index
-
-
Method Detail
-
apply
public R apply(Collection<R> items)
Evaluates expression using parameters and the value supplied- Parameters:
items- Collection to handle- Returns:
- Evaluation result
-
-