Class ArrayIndexExpression
- java.lang.Object
-
- dev.morphia.aggregation.expressions.impls.Expression
-
- dev.morphia.aggregation.expressions.impls.ArrayIndexExpression
-
public class ArrayIndexExpression extends Expression
- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description ArrayIndexExpression(Expression array, Expression search)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencode(Datastore datastore, BsonWriter writer, EncoderContext encoderContext)ArrayIndexExpressionend(Integer end)The ending indexArrayIndexExpressionstart(Integer start)The starting index-
Methods inherited from class dev.morphia.aggregation.expressions.impls.Expression
getOperation, getValue, toString
-
-
-
-
Constructor Detail
-
ArrayIndexExpression
@MorphiaInternal public ArrayIndexExpression(Expression array, Expression search)
- Parameters:
array-search-
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
-
Method Detail
-
encode
public void encode(Datastore datastore, BsonWriter writer, EncoderContext encoderContext)
- Overrides:
encodein classExpression- Parameters:
datastore- the datastorewriter- the writerencoderContext- the context
-
end
public ArrayIndexExpression end(Integer end)
The ending index- Parameters:
end- the ending index- Returns:
- this
-
start
public ArrayIndexExpression start(Integer start)
The starting index- Parameters:
start- the starting index- Returns:
- this
-
-