Class SizeValue

java.lang.Object
org.elasticsearch.common.unit.SizeValue
All Implemented Interfaces:
Comparable<SizeValue>, Writeable

public class SizeValue extends Object implements Writeable, Comparable<SizeValue>
  • Constructor Details

  • Method Details

    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • singles

      public long singles()
    • getSingles

      public long getSingles()
    • kilo

      public long kilo()
    • getKilo

      public long getKilo()
    • mega

      public long mega()
    • getMega

      public long getMega()
    • giga

      public long giga()
    • getGiga

      public long getGiga()
    • tera

      public long tera()
    • getTera

      public long getTera()
    • peta

      public long peta()
    • getPeta

      public long getPeta()
    • kiloFrac

      public double kiloFrac()
    • getKiloFrac

      public double getKiloFrac()
    • megaFrac

      public double megaFrac()
    • getMegaFrac

      public double getMegaFrac()
    • gigaFrac

      public double gigaFrac()
    • getGigaFrac

      public double getGigaFrac()
    • teraFrac

      public double teraFrac()
    • getTeraFrac

      public double getTeraFrac()
    • petaFrac

      public double petaFrac()
    • getPetaFrac

      public double getPetaFrac()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • parseSizeValue

      public static SizeValue parseSizeValue(String sValue) throws ElasticsearchParseException
      Throws:
      ElasticsearchParseException
    • parseSizeValue

      public static SizeValue parseSizeValue(String sValue, SizeValue defaultValue) throws ElasticsearchParseException
      Throws:
      ElasticsearchParseException
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(SizeValue other)
      Specified by:
      compareTo in interface Comparable<SizeValue>