Class Setting.MemorySizeValueParser

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

public static class Setting.MemorySizeValueParser extends Object implements Function<String,org.opensearch.core.common.unit.ByteSizeValue>, org.opensearch.core.common.io.stream.Writeable
A writeable parser for memory size value
  • 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
     
    MemorySizeValueParser(org.opensearch.core.common.io.stream.StreamInput in)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.opensearch.core.common.unit.ByteSizeValue
     
    boolean
     
     
    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

    • MemorySizeValueParser

      public MemorySizeValueParser(String key)
    • MemorySizeValueParser

      public MemorySizeValueParser(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
    • getKey

      public String getKey()
    • apply

      public org.opensearch.core.common.unit.ByteSizeValue apply(String s)
      Specified by:
      apply in interface Function<String,org.opensearch.core.common.unit.ByteSizeValue>
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object