Class IndexExpression


  • public class IndexExpression
    extends Expression
    Defines the $indexOfBytes expression
    Since:
    2.0
    • Constructor Detail

      • IndexExpression

        @MorphiaInternal
        public IndexExpression​(String operation,
                               Expression string,
                               Expression substring)
        Creates the new expression
        Parameters:
        operation - the index operation name
        string - the string to search
        substring - the target string
        Developer note.
        This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
    • Method Detail

      • 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