public abstract class MultiRangeQuery extends Query
IntPoints
All ranges are logically ORed together
TODO: Add capability for handling overlapping ranges at rewrite timeModifier and Type | Class and Description |
---|---|
static class |
MultiRangeQuery.Builder
A builder for multirange queries.
|
static class |
MultiRangeQuery.RangeClause
Representation of a single clause in a MultiRangeQuery
|
Modifier | Constructor and Description |
---|---|
protected |
MultiRangeQuery(String field,
int numDims,
int bytesPerDim,
List<MultiRangeQuery.RangeClause> rangeClauses)
Expert: create a multidimensional range query with multiple connected ranges
|
Modifier and Type | Method and Description |
---|---|
Weight |
createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
boolean |
equals(Object o) |
int |
getBytesPerDim() |
String |
getField() |
int |
getNumDims() |
int |
hashCode() |
protected abstract String |
toString(int dimension,
byte[] value)
Returns a string of a single value in a human-readable format for debugging.
|
String |
toString(String field) |
void |
visit(QueryVisitor visitor) |
classHash, rewrite, sameClassAs, toString
protected MultiRangeQuery(String field, int numDims, int bytesPerDim, List<MultiRangeQuery.RangeClause> rangeClauses)
field
- field name. must not be null
.rangeClauses
- Range Clauses for this querynumDims
- number of dimensions.public void visit(QueryVisitor visitor)
public final Weight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) throws IOException
createWeight
in class Query
IOException
public String getField()
public int getNumDims()
public int getBytesPerDim()
protected abstract String toString(int dimension, byte[] value)
Query.toString()
.dimension
- dimension of the particular valuevalue
- single value, never nullCopyright © 2000-2024 Apache Software Foundation. All Rights Reserved.