public static enum RangeFieldMapper.RangeType extends java.lang.Enum<RangeFieldMapper.RangeType>
Enum Constant and Description |
---|
DATE |
DOUBLE |
FLOAT |
INTEGER |
IP |
LONG |
Modifier and Type | Field and Description |
---|---|
java.lang.String |
name |
Modifier and Type | Method and Description |
---|---|
abstract org.apache.lucene.search.Query |
containsQuery(java.lang.String field,
java.lang.Object from,
java.lang.Object to,
boolean includeFrom,
boolean includeTo) |
java.util.List<org.apache.lucene.index.IndexableField> |
createFields(java.lang.String name,
RangeFieldMapper.Range range,
boolean indexed,
boolean docValued,
boolean stored) |
abstract org.apache.lucene.document.Field |
getRangeField(java.lang.String name,
RangeFieldMapper.Range range) |
abstract org.apache.lucene.search.Query |
intersectsQuery(java.lang.String field,
java.lang.Object from,
java.lang.Object to,
boolean includeFrom,
boolean includeTo) |
abstract java.lang.Object |
maxValue() |
abstract java.lang.Object |
minValue() |
abstract java.lang.Object |
nextDown(java.lang.Object value) |
abstract java.lang.Object |
nextUp(java.lang.Object value) |
java.lang.Object |
parse(java.lang.Object value,
boolean coerce) |
java.lang.Object |
parseFrom(RangeFieldMapper.RangeFieldType fieldType,
XContentParser parser,
boolean coerce,
boolean included)
parses from value.
|
java.lang.Object |
parseTo(RangeFieldMapper.RangeFieldType fieldType,
XContentParser parser,
boolean coerce,
boolean included)
parses to value.
|
org.apache.lucene.search.Query |
rangeQuery(java.lang.String field,
java.lang.Object from,
java.lang.Object to,
boolean includeFrom,
boolean includeTo,
ShapeRelation relation,
org.joda.time.DateTimeZone timeZone,
DateMathParser dateMathParser,
QueryShardContext context) |
java.lang.String |
typeName()
Get the associated type name.
|
static RangeFieldMapper.RangeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RangeFieldMapper.RangeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
abstract org.apache.lucene.search.Query |
withinQuery(java.lang.String field,
java.lang.Object from,
java.lang.Object to,
boolean includeFrom,
boolean includeTo) |
public static final RangeFieldMapper.RangeType IP
public static final RangeFieldMapper.RangeType DATE
public static final RangeFieldMapper.RangeType FLOAT
public static final RangeFieldMapper.RangeType DOUBLE
public static final RangeFieldMapper.RangeType INTEGER
public static final RangeFieldMapper.RangeType LONG
public static RangeFieldMapper.RangeType[] values()
for (RangeFieldMapper.RangeType c : RangeFieldMapper.RangeType.values()) System.out.println(c);
public static RangeFieldMapper.RangeType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final java.lang.String typeName()
public abstract org.apache.lucene.document.Field getRangeField(java.lang.String name, RangeFieldMapper.Range range)
public java.util.List<org.apache.lucene.index.IndexableField> createFields(java.lang.String name, RangeFieldMapper.Range range, boolean indexed, boolean docValued, boolean stored)
public java.lang.Object parseFrom(RangeFieldMapper.RangeFieldType fieldType, XContentParser parser, boolean coerce, boolean included) throws java.io.IOException
java.io.IOException
public java.lang.Object parseTo(RangeFieldMapper.RangeFieldType fieldType, XContentParser parser, boolean coerce, boolean included) throws java.io.IOException
java.io.IOException
public abstract java.lang.Object minValue()
public abstract java.lang.Object maxValue()
public abstract java.lang.Object nextUp(java.lang.Object value)
public abstract java.lang.Object nextDown(java.lang.Object value)
public abstract org.apache.lucene.search.Query withinQuery(java.lang.String field, java.lang.Object from, java.lang.Object to, boolean includeFrom, boolean includeTo)
public abstract org.apache.lucene.search.Query containsQuery(java.lang.String field, java.lang.Object from, java.lang.Object to, boolean includeFrom, boolean includeTo)
public abstract org.apache.lucene.search.Query intersectsQuery(java.lang.String field, java.lang.Object from, java.lang.Object to, boolean includeFrom, boolean includeTo)
public java.lang.Object parse(java.lang.Object value, boolean coerce)
public org.apache.lucene.search.Query rangeQuery(java.lang.String field, java.lang.Object from, java.lang.Object to, boolean includeFrom, boolean includeTo, ShapeRelation relation, @Nullable org.joda.time.DateTimeZone timeZone, @Nullable DateMathParser dateMathParser, QueryShardContext context)