Class MultiRangeQuery


  • public abstract class MultiRangeQuery
    extends Query
    Abstract class for range queries involving multiple ranges against physical points such as IntPoints All ranges are logically ORed together TODO: Add capability for handling overlapping ranges at rewrite time
    WARNING: This API is experimental and might change in incompatible ways in the next release.
    • Constructor Detail

      • MultiRangeQuery

        protected MultiRangeQuery​(String field,
                                  int numDims,
                                  int bytesPerDim,
                                  List<MultiRangeQuery.RangeClause> rangeClauses)
        Expert: create a multidimensional range query with multiple connected ranges
        Parameters:
        field - field name. must not be null.
        rangeClauses - Range Clauses for this query
        numDims - number of dimensions.
    • Method Detail

      • getField

        public String getField()
      • getNumDims

        public int getNumDims()
      • getBytesPerDim

        public int getBytesPerDim()
      • hashCode

        public final int hashCode()
        Specified by:
        hashCode in class Query
      • equals

        public final boolean equals​(Object o)
        Specified by:
        equals in class Query
      • toString

        protected abstract String toString​(int dimension,
                                           byte[] value)
        Returns a string of a single value in a human-readable format for debugging. This is used by Query.toString().
        Parameters:
        dimension - dimension of the particular value
        value - single value, never null
        Returns:
        human readable value for debugging