Class SizeValue

org.elasticsearch.common.unit.SizeValue
All Implemented Interfaces:
<SizeValue>, Writeable

public class SizeValue extends implements <SizeValue>
  • Constructor Details

    • SizeValue

      public SizeValue(long singles)
    • SizeValue

      public SizeValue(long size, SizeUnit sizeUnit)
    • SizeValue

      public SizeValue(StreamInput in) throws
      Throws:
  • Method Details

    • writeTo

      public void writeTo(StreamOutput out) throws
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
    • 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  toString()
      Overrides:
       in class 
    • parseSizeValue

      public static  sValue) throws ElasticsearchParseException
      Throws:
      ElasticsearchParseException
    • parseSizeValue

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

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

      public int hashCode()
      Overrides:
       in class 
    • compareTo

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