public abstract class NumericRangeFieldDataFilter<T>
extends org.apache.lucene.search.Filter
NumericRangeFilter
at the
expense of loading numeric values of the field to memory using org.elasticsearch.index.cache.field.data.FieldDataCache
.Modifier | Constructor and Description |
---|---|
protected |
NumericRangeFieldDataFilter(IndexNumericFieldData indexFieldData,
T lowerVal,
T upperVal,
boolean includeLower,
boolean includeUpper) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getField() |
T |
getLowerVal() |
T |
getUpperVal() |
int |
hashCode() |
boolean |
isIncludeLower() |
boolean |
isIncludeUpper() |
static NumericRangeFieldDataFilter<Byte> |
newByteRange(IndexNumericFieldData indexFieldData,
Byte lowerVal,
Byte upperVal,
boolean includeLower,
boolean includeUpper) |
static NumericRangeFieldDataFilter<Double> |
newDoubleRange(IndexNumericFieldData indexFieldData,
Double lowerVal,
Double upperVal,
boolean includeLower,
boolean includeUpper) |
static NumericRangeFieldDataFilter<Float> |
newFloatRange(IndexNumericFieldData indexFieldData,
Float lowerVal,
Float upperVal,
boolean includeLower,
boolean includeUpper) |
static NumericRangeFieldDataFilter<Integer> |
newIntRange(IndexNumericFieldData indexFieldData,
Integer lowerVal,
Integer upperVal,
boolean includeLower,
boolean includeUpper) |
static NumericRangeFieldDataFilter<Long> |
newLongRange(IndexNumericFieldData indexFieldData,
Long lowerVal,
Long upperVal,
boolean includeLower,
boolean includeUpper) |
static NumericRangeFieldDataFilter<Short> |
newShortRange(IndexNumericFieldData indexFieldData,
Short lowerVal,
Short upperVal,
boolean includeLower,
boolean includeUpper) |
String |
toString() |
protected NumericRangeFieldDataFilter(IndexNumericFieldData indexFieldData, T lowerVal, T upperVal, boolean includeLower, boolean includeUpper)
public String getField()
public T getLowerVal()
public T getUpperVal()
public boolean isIncludeLower()
public boolean isIncludeUpper()
public static NumericRangeFieldDataFilter<Byte> newByteRange(IndexNumericFieldData indexFieldData, Byte lowerVal, Byte upperVal, boolean includeLower, boolean includeUpper)
public static NumericRangeFieldDataFilter<Short> newShortRange(IndexNumericFieldData indexFieldData, Short lowerVal, Short upperVal, boolean includeLower, boolean includeUpper)
public static NumericRangeFieldDataFilter<Integer> newIntRange(IndexNumericFieldData indexFieldData, Integer lowerVal, Integer upperVal, boolean includeLower, boolean includeUpper)
public static NumericRangeFieldDataFilter<Long> newLongRange(IndexNumericFieldData indexFieldData, Long lowerVal, Long upperVal, boolean includeLower, boolean includeUpper)
public static NumericRangeFieldDataFilter<Float> newFloatRange(IndexNumericFieldData indexFieldData, Float lowerVal, Float upperVal, boolean includeLower, boolean includeUpper)
public static NumericRangeFieldDataFilter<Double> newDoubleRange(IndexNumericFieldData indexFieldData, Double lowerVal, Double upperVal, boolean includeLower, boolean includeUpper)
Copyright © 2009–2015. All rights reserved.