Enum Class NumberFieldMapper.NumberType

<NumberFieldMapper.NumberType>
org.elasticsearch.index.mapper.NumberFieldMapper.NumberType
All Implemented Interfaces:
, <
Enclosing class:
NumberFieldMapper

public static enum NumberFieldMapper.NumberType extends <NumberFieldMapper.NumberType>
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.

    < extends <>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
     
     
     
     
     
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    >
     fieldName, Script script, ScriptCompiler compiler)
     
    abstract <org.apache.lucene.document.Field>
     name,  value, boolean indexed, boolean docValued, boolean stored)
     
    static org.apache.lucene.search.Query
     lowerTerm,  upperTerm, boolean includeLower, boolean includeUpper, <,​,​org.apache.lucene.search.Query> builder)
     
    static boolean
     number)
    Returns true if the object is a number and has a decimal part
    static org.apache.lucene.search.Query
     lowerTerm,  upperTerm, boolean includeLower, boolean includeUpper, <,​,​org.apache.lucene.search.Query> builder)
    Processes query bounds into longs and delegates the provided builder to build a range query.
    Get the associated numeric type
    static double
     value)
    Converts an Object to a double by checking it against known types first
    static long
     value, boolean coerce)
    Converts an Object to a long by checking it against known types and checking its range.
    abstract
     value, boolean coerce)
     
    abstract
    parse​(org.elasticsearch.common.xcontent.XContentParser parser, boolean coerce)
     
    abstract
    parsePoint​(byte[] value)
     
     
    abstract org.apache.lucene.search.Query
     field,  lowerTerm,  upperTerm, boolean includeLower, boolean includeUpper, boolean hasDocValues, SearchExecutionContext context)
     
    abstract org.apache.lucene.search.Query
     field,  value)
     
    abstract org.apache.lucene.search.Query
     field, <?> values)
     
    Get the associated type name.
     name)
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.

    , , , , , , , , , ,

    Methods inherited from class java.lang.

    , , , , ,
  • Enum Constant Details

  • Method Details

    • values

      public static NumberFieldMapper.NumberType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static  name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      - if this enum class has no constant with the specified name
      - if the argument is null
    • typeName

      public final  typeName()
      Get the associated type name.
    • numericType

      public final IndexNumericFieldData.NumericType numericType()
      Get the associated numeric type
    • parser

      public final FieldMapper.TypeParser parser()
    • termQuery

      public abstract org.apache.lucene.search.Query termQuery( field,  value)
    • termsQuery

      public abstract org.apache.lucene.search.Query termsQuery( field, <?> values)
    • rangeQuery

      public abstract org.apache.lucene.search.Query rangeQuery( field,  lowerTerm,  upperTerm, boolean includeLower, boolean includeUpper, boolean hasDocValues, SearchExecutionContext context)
    • parse

      public abstract  parse(org.elasticsearch.common.xcontent.XContentParser parser, boolean coerce) throws
      Throws:
    • parse

      public abstract  parse( value, boolean coerce)
    • parsePoint

      public abstract  parsePoint(byte[] value)
    • createFields

      public abstract <org.apache.lucene.document.Field> createFields( name,  value, boolean indexed, boolean docValued, boolean stored)
    • compile

      public > compile( fieldName, Script script, ScriptCompiler compiler)
    • hasDecimalPart

      public static boolean hasDecimalPart( number)
      Returns true if the object is a number and has a decimal part
    • objectToDouble

      public static double objectToDouble( value)
      Converts an Object to a double by checking it against known types first
    • objectToLong

      public static long objectToLong( value, boolean coerce)
      Converts an Object to a long by checking it against known types and checking its range.
    • doubleRangeQuery

      public static org.apache.lucene.search.Query doubleRangeQuery( lowerTerm,  upperTerm, boolean includeLower, boolean includeUpper, <,​,​org.apache.lucene.search.Query> builder)
    • longRangeQuery

      public static org.apache.lucene.search.Query longRangeQuery( lowerTerm,  upperTerm, boolean includeLower, boolean includeUpper, <,​,​org.apache.lucene.search.Query> builder)
      Processes query bounds into longs and delegates the provided builder to build a range query.