Class Setting.DoubleParser

java.lang.Object
org.opensearch.common.settings.Setting.DoubleParser
All Implemented Interfaces:
Function<String,Double>, org.opensearch.core.common.io.stream.Writeable
Enclosing class:
Setting<T>

public static class Setting.DoubleParser extends Object implements Function<String,Double>, org.opensearch.core.common.io.stream.Writeable
A writeable parser for double
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable

    org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V>
  • Constructor Summary

    Constructors
    Constructor
    Description
    DoubleParser(double minValue, double maxValue, String key, boolean isFiltered)
     
    DoubleParser(org.opensearch.core.common.io.stream.StreamInput in)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
     
    boolean
     
     
    double
     
    double
     
    int
     
    void
    writeTo(org.opensearch.core.common.io.stream.StreamOutput out)
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Constructor Details

    • DoubleParser

      public DoubleParser(double minValue, double maxValue, String key, boolean isFiltered)
    • DoubleParser

      public DoubleParser(org.opensearch.core.common.io.stream.StreamInput in) throws IOException
      Throws:
      IOException
  • Method Details

    • writeTo

      public void writeTo(org.opensearch.core.common.io.stream.StreamOutput out) throws IOException
      Specified by:
      writeTo in interface org.opensearch.core.common.io.stream.Writeable
      Throws:
      IOException
    • getMin

      public double getMin()
    • getMax

      public double getMax()
    • getKey

      public String getKey()
    • getFilterStatus

      public boolean getFilterStatus()
    • apply

      public Double apply(String s)
      Specified by:
      apply in interface Function<String,Double>
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object