public class DocValuesNumbersQuery extends Query implements Accountable
DocValuesTermsQuery
, but this query only
runs on a long NumericDocValuesField
or a
SortedNumericDocValuesField
, matching
all documents whose value in the specified field is
contained in the provided set of long values.
NOTE: be very careful using this query: it is
typically much slower than using TermsQuery
,
but in certain specialized cases may be faster.
NULL_ACCOUNTABLE
Constructor and Description |
---|
DocValuesNumbersQuery(String field,
Collection<Long> numbers) |
DocValuesNumbersQuery(String field,
Long... numbers) |
DocValuesNumbersQuery(String field,
long[] numbers) |
Modifier and Type | Method and Description |
---|---|
Weight |
createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
boolean |
equals(Object other) |
String |
getField() |
Set<Long> |
getNumbers() |
int |
hashCode() |
long |
ramBytesUsed() |
String |
toString(String defaultField) |
void |
visit(QueryVisitor visitor) |
classHash, rewrite, sameClassAs, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getChildResources
public DocValuesNumbersQuery(String field, long[] numbers)
public DocValuesNumbersQuery(String field, Collection<Long> numbers)
public void visit(QueryVisitor visitor)
public String getField()
public long ramBytesUsed()
ramBytesUsed
in interface Accountable
public Weight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) throws IOException
createWeight
in class Query
IOException
Copyright © 2000-2024 Apache Software Foundation. All Rights Reserved.