public class ByteSizeValue extends Object implements Streamable
Constructor and Description |
---|
ByteSizeValue(long bytes) |
ByteSizeValue(long size,
ByteSizeUnit sizeUnit) |
Modifier and Type | Method and Description |
---|---|
long |
bytes() |
int |
bytesAsInt() |
boolean |
equals(Object o) |
long |
gb() |
double |
gbFrac() |
long |
getBytes() |
long |
getGb() |
double |
getGbFrac() |
long |
getKb() |
double |
getKbFrac() |
long |
getMb() |
double |
getMbFrac() |
long |
getPb() |
double |
getPbFrac() |
long |
getTb() |
double |
getTbFrac() |
int |
hashCode() |
long |
kb() |
double |
kbFrac() |
long |
mb() |
double |
mbFrac() |
static ByteSizeValue |
parseBytesSizeValue(String sValue,
ByteSizeValue defaultValue,
String settingName) |
static ByteSizeValue |
parseBytesSizeValue(String sValue,
String settingName) |
long |
pb() |
double |
pbFrac() |
static ByteSizeValue |
readBytesSizeValue(StreamInput in) |
void |
readFrom(StreamInput in) |
long |
tb() |
double |
tbFrac() |
String |
toString() |
void |
writeTo(StreamOutput out) |
public ByteSizeValue(long bytes)
public ByteSizeValue(long size, ByteSizeUnit sizeUnit)
public int bytesAsInt()
public long bytes()
public long getBytes()
public long kb()
public long getKb()
public long mb()
public long getMb()
public long gb()
public long getGb()
public long tb()
public long getTb()
public long pb()
public long getPb()
public double kbFrac()
public double getKbFrac()
public double mbFrac()
public double getMbFrac()
public double gbFrac()
public double getGbFrac()
public double tbFrac()
public double getTbFrac()
public double pbFrac()
public double getPbFrac()
public static ByteSizeValue parseBytesSizeValue(String sValue, String settingName) throws ElasticsearchParseException
ElasticsearchParseException
public static ByteSizeValue parseBytesSizeValue(String sValue, ByteSizeValue defaultValue, String settingName) throws ElasticsearchParseException
ElasticsearchParseException
public static ByteSizeValue readBytesSizeValue(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
Copyright © 2009–2016. All rights reserved.