Class IndexExpression
- java.lang.Object
-
- dev.morphia.aggregation.experimental.expressions.impls.Expression
-
- dev.morphia.aggregation.experimental.expressions.impls.IndexExpression
-
public class IndexExpression extends Expression
Defines the $indexOfBytes expression- Since:
- 2.0
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
-
Constructor Summary
Constructors Constructor Description IndexExpression(String operation, Expression string, Expression substring)
Creates the new expression
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encode(Mapper mapper, org.bson.BsonWriter writer, org.bson.codecs.EncoderContext encoderContext)
IndexExpression
end(int end)
Sets the end boundary for searchingIndexExpression
start(int start)
Sets the start boundary for searching-
Methods inherited from class dev.morphia.aggregation.experimental.expressions.impls.Expression
getOperation, getValue, toString
-
-
-
-
Constructor Detail
-
IndexExpression
public IndexExpression(String operation, Expression string, Expression substring)
Creates the new expression- Parameters:
operation
- the index operation namestring
- the string to searchsubstring
- the target string
-
-
Method Detail
-
encode
public void encode(Mapper mapper, org.bson.BsonWriter writer, org.bson.codecs.EncoderContext encoderContext)
- Overrides:
encode
in classExpression
- Parameters:
mapper
- the mapperwriter
- the writerencoderContext
- the context
-
end
public IndexExpression end(int end)
Sets the end boundary for searching- Parameters:
end
- the end- Returns:
- this
-
start
public IndexExpression start(int start)
Sets the start boundary for searching- Parameters:
start
- the start- Returns:
- this
-
-