com.groupbyinc.flux.common.unit.ByteSizeValue.class Maven / Gradle / Ivy
???? 4 -com/groupbyinc/flux/common/unit/ByteSizeValue ?Ljava/lang/Object;Lcom/groupbyinc/flux/common/io/stream/Writeable;Ljava/lang/Comparable; java/lang/Object .com/groupbyinc/flux/common/io/stream/Writeable java/lang/Comparable ByteSizeValue.java size J unit .Lcom/groupbyinc/flux/common/unit/ByteSizeUnit; 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V java/io/IOException ()V
0com/groupbyinc/flux/common/io/stream/StreamInput readVLong ()J
,com/groupbyinc/flux/common/unit/ByteSizeUnit BYTES !
# this /Lcom/groupbyinc/flux/common/unit/ByteSizeValue; in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; writeTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V getBytes +
, 1com/groupbyinc/flux/common/io/stream/StreamOutput .
writeVLong (J)V 0 1
/ 2 out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; 2(JLcom/groupbyinc/flux/common/unit/ByteSizeUnit;)V 6
7 bytes
bytesAsInt ()I ??? "java/lang/IllegalArgumentException > java/lang/StringBuilder @
A size [ C append -(Ljava/lang/String;)Ljava/lang/StringBuilder; E F
A G toString ()Ljava/lang/String; I J
K ] is bigger than max int M
A K (Ljava/lang/String;)V P
? Q toBytes (J)J S T
U getKb toKB X T
Y getMb toMB \ T
] getGb toGB ` T
a getTb toTB d T
e getPb toPB h T
i getKbFrac ()D@? getMbFracA0 getGbFracA? getTbFracBp getPbFracC b { x l
pb ? java/lang/String ? u l
? tb ? @ r l
? gb ? o l
? mb ? k l
? kb ? "com/groupbyinc/flux/common/Strings ? format1Decimals '(DLjava/lang/String;)Ljava/lang/String; ? ?
? ? value D suffix Ljava/lang/String; parseBytesSizeValue U(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/unit/ByteSizeValue; /com/groupbyinc/flux/ElasticsearchParseException ? ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/ByteSizeValue;Ljava/lang/String;)Lcom/groupbyinc/flux/common/unit/ByteSizeValue; ? ?
? sValue settingName java/lang/NumberFormatException ? java/util/Objects ? requireNonNull &(Ljava/lang/Object;)Ljava/lang/Object; ? ?
? ? java/util/Locale ? ROOT Ljava/util/Locale; ? ? ? ? toLowerCase &(Ljava/util/Locale;)Ljava/lang/String; ? ?
? ? trim ? J
? ? k ? endsWith (Ljava/lang/String;)Z ? ?
? ? length ? ;
? ? substring (II)Ljava/lang/String; ? ?
? ? java/lang/Double ? parseDouble (Ljava/lang/String;)D ? ?
? ? m ? g ? t ? p ? java/lang/Long ? parseLong (Ljava/lang/String;)J ? ?
? ? -1 ? equals (Ljava/lang/Object;)Z ? ?
? ????????? 0 ? `failed to parse setting [{}] with value [{}] as a size in bytes: unit is missing or unrecognized ? ((Ljava/lang/String;[Ljava/lang/Object;)V ?
? ? failed to parse [{}] ? =(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V ?
? ? lowerSValue e !Ljava/lang/NumberFormatException; defaultValue getClass ()Ljava/lang/Class; ? ?
compareTo 2(Lcom/groupbyinc/flux/common/unit/ByteSizeValue;)I
o Ljava/lang/Object; hashCode (D)I
?
compare (DD)I
? other thisValue
otherValue (Ljava/lang/Object;)I Code LocalVariableTable LineNumberTable
Exceptions
StackMapTable Signature
SourceFile !
T *? *+? ? *? "? $? % &