java.lang.Object
org.elasticsearch.common.unit.SizeValue
- All Implemented Interfaces:
Comparable<SizeValue>,Writeable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanlonggiga()doublegigaFrac()inthashCode()longkilo()doublekiloFrac()longmega()doublemegaFrac()static SizeValueparseSizeValue(String sValue) static SizeValueparseSizeValue(String sValue, SizeValue defaultValue) longpeta()doublepetaFrac()longsingles()longtera()doubleteraFrac()toString()voidwriteTo(StreamOutput out) Write this into the StreamOutput.
-
Constructor Details
-
SizeValue
public SizeValue(long singles) -
SizeValue
-
SizeValue
- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
singles
public long singles() -
kilo
public long kilo() -
mega
public long mega() -
giga
public long giga() -
tera
public long tera() -
peta
public long peta() -
kiloFrac
public double kiloFrac() -
megaFrac
public double megaFrac() -
gigaFrac
public double gigaFrac() -
teraFrac
public double teraFrac() -
petaFrac
public double petaFrac() -
toString
-
parseSizeValue
- Throws:
ElasticsearchParseException
-
parseSizeValue
public static SizeValue parseSizeValue(String sValue, SizeValue defaultValue) throws ElasticsearchParseException - Throws:
ElasticsearchParseException
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<SizeValue>
-