Class ByteSizeValue

java.lang.Object
org.elasticsearch.common.unit.ByteSizeValue
All Implemented Interfaces:
java.lang.Comparable<ByteSizeValue>, Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentFragment

public class ByteSizeValue
extends java.lang.Object
implements Writeable, java.lang.Comparable<ByteSizeValue>, org.elasticsearch.common.xcontent.ToXContentFragment
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent

    org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params

    Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable

    Writeable.Reader<V>, Writeable.Writer<V>
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static ByteSizeValue ZERO  

    Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent

    EMPTY_PARAMS
  • Constructor Summary

    Constructors 
    Constructor Description
    ByteSizeValue​(long bytes)  
    ByteSizeValue​(long size, ByteSizeUnit unit)  
    ByteSizeValue​(StreamInput in)  
  • Method Summary

    Modifier and Type Method Description
    int bytesAsInt()
    Deprecated.
    int compareTo​(ByteSizeValue other)  
    boolean equals​(java.lang.Object o)  
    long getBytes()  
    long getGb()  
    double getGbFrac()  
    long getKb()  
    double getKbFrac()  
    long getMb()  
    double getMbFrac()  
    long getPb()  
    double getPbFrac()  
    java.lang.String getStringRep()  
    long getTb()  
    double getTbFrac()  
    int hashCode()  
    static ByteSizeValue parseBytesSizeValue​(java.lang.String sValue, java.lang.String settingName)  
    static ByteSizeValue parseBytesSizeValue​(java.lang.String sValue, ByteSizeValue defaultValue, java.lang.String settingName)  
    java.lang.String toString()  
    org.elasticsearch.common.xcontent.XContentBuilder toXContent​(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)  
    void writeTo​(StreamOutput out)
    Write this into the StreamOutput.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment

    isFragment