Class NumericConfig


  • public class NumericConfig
    extends java.lang.Object
    This class holds the configuration used to parse numeric queries and create NumericRangeQuerys.
    See Also:
    NumericRangeQuery, NumberFormat
    • Method Detail

      • getPrecisionStep

        public int getPrecisionStep()
        Returns the precision used to index the numeric values
        Returns:
        the precision used to index the numeric values
        See Also:
        NumericRangeQuery.getPrecisionStep()
      • setPrecisionStep

        public void setPrecisionStep​(int precisionStep)
        Sets the precision used to index the numeric values
        Parameters:
        precisionStep - the precision used to index the numeric values
        See Also:
        NumericRangeQuery.getPrecisionStep()
      • getNumberFormat

        public java.text.NumberFormat getNumberFormat()
        Returns the NumberFormat used to parse a String to Number
        Returns:
        the NumberFormat used to parse a String to Number
      • getType

        public FieldType.NumericType getType()
        Returns the numeric type used to index the numeric values
        Returns:
        the numeric type used to index the numeric values
      • setType

        public void setType​(FieldType.NumericType type)
        Sets the numeric type used to index the numeric values
        Parameters:
        type - the numeric type used to index the numeric values
      • setNumberFormat

        public void setNumberFormat​(java.text.NumberFormat format)
        Sets the NumberFormat used to parse a String to Number
        Parameters:
        format - the NumberFormat used to parse a String to Number, cannot be null
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object