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 TypeMethodDescriptionint
boolean
long
giga()
double
gigaFrac()
int
hashCode()
long
kilo()
double
kiloFrac()
long
mega()
double
megaFrac()
static SizeValue
parseSizeValue
(String sValue) static SizeValue
parseSizeValue
(String sValue, SizeValue defaultValue) long
peta()
double
petaFrac()
long
singles()
long
tera()
double
teraFrac()
toString()
void
writeTo
(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:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in 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:
compareTo
in interfaceComparable<SizeValue>
-