
com.groupbyinc.flux.common.unit.SizeValue.class Maven / Gradle / Ivy
???? 3 ? )com/groupbyinc/flux/common/unit/SizeValue java/lang/Object /com/groupbyinc/flux/common/io/stream/Streamable SizeValue.java size J sizeUnit *Lcom/groupbyinc/flux/common/unit/SizeUnit; ()V
this +Lcom/groupbyinc/flux/common/unit/SizeValue; (J)V (com/groupbyinc/flux/common/unit/SizeUnit SINGLE .(JLcom/groupbyinc/flux/common/unit/SizeUnit;)V
singles %size in SizeValue may not be negative ;com/groupbyinc/flux/common/google/common/base/Preconditions
checkArgument (ZLjava/lang/Object;)V !
" $
& ()J toSingles (J)J ) *
+
getSingles (
. kilo toKilo 1 *
2 getKilo 0 (
5 mega toMega 8 *
9 getMega 7 (
< giga toGiga ? *
@ getGiga > (
C tera toTera F *
G getTera E (
J peta toPeta M *
N getPeta L (
Q kiloFrac ()D@?@ getKiloFrac S T
X megaFracA.?? getMegaFrac Z T
^ gigaFracA??e getGigaFrac ` T
d teraFracBm?? getTeraFrac f T
j petaFracCk?&4 getPetaFrac l T
p toString ()Ljava/lang/String; t ?~?ƀ p x java/lang/String z ?ԥ t ~ ;?? g ? B@ m ? ? k ? "com/groupbyinc/flux/common/Strings ? format1Decimals '(DLjava/lang/String;)Ljava/lang/String; ? ?
? ? value D suffix Ljava/lang/String; parseSizeValue ?(Ljava/lang/String;)Lcom/groupbyinc/flux/common/unit/SizeValue; /com/groupbyinc/flux/ElasticsearchParseException ? j(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/SizeValue;)Lcom/groupbyinc/flux/common/unit/SizeValue; ? ?
? sValue java/lang/NumberFormatException ? b ? endsWith (Ljava/lang/String;)Z ? ?
{ ? length ()I ? ?
{ ? substring (II)Ljava/lang/String; ? ?
{ ? java/lang/Long ? parseLong (Ljava/lang/String;)J ? ?
? ? K ? java/lang/Double ? parseDouble (Ljava/lang/String;)D ? ?
? ? M ? G ? T ? P ? failed to parse [{}] ? =(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V ?
? ? e !Ljava/lang/NumberFormatException; defaultValue
readSizeValue _(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/common/unit/SizeValue; java/io/IOException ?
readFrom 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V ? ?
? in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; sizeValue 0com/groupbyinc/flux/common/io/stream/StreamInput ? readVLong ? (
? ? writeTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V 1com/groupbyinc/flux/common/io/stream/StreamOutput ?
writeVLong ?
? ? out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; equals (Ljava/lang/Object;)Z getClass ()Ljava/lang/Class; ? ?
? o Ljava/lang/Object; hashCode ? ?
? result I Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile !
!
? 3 *? ? ? ?
( * ? A *? ? ? ? ?
- . ? ? *? ?? ? ? #*? %*-? '? ?
? 0 1 2 3 4 ? ? @ ( ? 6 *? '*? %? ,? ? ? 7 - ( ? / *? /? ? ? ; 0 ( ? 6 *? '*? %? 3? ? ? ? 4 ( ? / *? 6? ? ? C 7 ( ? 6 *? '*? %? :? ? ? G ; ( ? / *? =? ? ? K > ( ? 6 *? '*? %? A? ? ? O B ( ? / *? D? ? ? S E ( ? 6 *? '*? %? H? ? ? W I ( ? / *? K? ? ? [ L ( ? 6 *? '*? %? O? ? ? _ P ( ? / *? R? ? ? c S T ? 4
*? /? Uo? ?
? g W T ? / *? Y? ? ? k Z T ? 4
*? /? [o? ?
? o ] T ? / *? _? ? ? s ` T ? 4
*? /? ao? ?
? w c T ? / *? e? ? ? { f T ? 4
*? /? go? ?
? i T ? / *? k? ? ? ? l T ? 4
*? /? mo? ?
? ? o T ? / *? q? ? ? ? r s ? t*? /@?Ju: v?? *? qJy:? P |?? *? kJ:? < ??? *? eJ?:? ( ??? *? _J?:? ??? *? YJ?:)? ?? ? * t o l ? ? h ? ? ? N ? ? ? ? ? ? ? ( ? - ? 4 ? <