com.groupbyinc.flux.common.Table.class Maven / Gradle / Ivy
???? 4+ com/groupbyinc/flux/common/Table java/lang/Object
Table.java %com/groupbyinc/flux/common/Table$Cell Cell headers Ljava/util/List; 9Ljava/util/List; rows KLjava/util/List;>; map Ljava/util/Map; \Ljava/util/Map;>; headerMap JLjava/util/Map; currentCells inHeaders Z withTime EPOCH Ljava/lang/String; epoch TIMESTAMP timestamp
dateFormat ?Lcom/groupbyinc/flux/common/joda/time/format/DateTimeFormatter; ()V !
" java/util/ArrayList $
% "
'
) java/util/HashMap +
, " . 0 2 4 HH:mm:ss 6 :com/groupbyinc/flux/common/joda/time/format/DateTimeFormat 8
forPattern S(Ljava/lang/String;)Lcom/groupbyinc/flux/common/joda/time/format/DateTimeFormatter; : ;
9 < > this "Lcom/groupbyinc/flux/common/Table; startHeaders $()Lcom/groupbyinc/flux/common/Table;
D startHeadersWithTimestamp B C
G 3alias:t,time;desc:seconds since 1970-01-01 00:00:00 I addCell H(Ljava/lang/Object;Ljava/lang/String;)Lcom/groupbyinc/flux/common/Table; K L
M )alias:ts,hms,hhmmss;desc:time in HH:MM:SS O
endHeaders java/util/List R isEmpty ()Z T U S V java/lang/IllegalStateException X no headers added... Z (Ljava/lang/String;)V \
Y ] iterator ()Ljava/util/Iterator; _ ` S a java/util/Iterator c hasNext e U d f next ()Ljava/lang/Object; h i d j value Ljava/lang/Object; l m n toString ()Ljava/lang/String; p q
r
java/util/Map t put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; v w u x header 'Lcom/groupbyinc/flux/common/Table$Cell; startRow size ()I } ~ S (I)V ?
% ? java/lang/System ? currentTimeMillis ()J ? ?
? ? java/util/concurrent/TimeUnit ? SECONDS Ljava/util/concurrent/TimeUnit; ? ? ? ? MILLISECONDS ? ? ? ? convert #(JLjava/util/concurrent/TimeUnit;)J ? ?
? ? java/lang/Long ? valueOf (J)Ljava/lang/Long; ? ?
? ? 6(Ljava/lang/Object;)Lcom/groupbyinc/flux/common/Table; K ?
? =com/groupbyinc/flux/common/joda/time/format/DateTimeFormatter ? print (J)Ljava/lang/String; ? ?
? ? time J endRow %(Z)Lcom/groupbyinc/flux/common/Table; no row started... ? java/lang/StringBuilder ?
? " mismatch on number of cells ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? (I)Ljava/lang/StringBuilder; ? ?
? ? in a row compared to header ?
? r add (Ljava/lang/Object;)Z ? ? S ? s Ljava/lang/StringBuilder; check ? ?
? ? no block started... ? -can't add more cells to a row than the header ? java/lang/String ? length ? ~
? ? java/util/Collections ? emptyMap ()Ljava/util/Map; ? ?
? ? get (I)Ljava/lang/Object; ? ? S ? attr ? ? putAll (Ljava/util/Map;)V ? ? u ? ; ? split '(Ljava/lang/String;)[Ljava/lang/String; ? ?
? ? [Ljava/lang/String; ? indexOf (I)I ? ?
? ? substring (II)Ljava/lang/String; ? ?
? ? (I)Ljava/lang/String; ? ?
? ? $(Ljava/lang/Object;Ljava/util/Map;)V ?
? &(Ljava/lang/Object;)Ljava/lang/Object; ? ? u ? mAttr 5Ljava/util/Map; idx I sAttr sAttrs hdr
attributes cell cellIndex
getHeaders ()Ljava/util/List; getRows getAsMap getHeaderMap findHeaderByName ;(Ljava/lang/String;)Lcom/groupbyinc/flux/common/Table$Cell; equals
?
? getAliasMap alias containsKey ? u "com/groupbyinc/flux/common/Strings splitStringByCommaToArray ?
aliases
headerCell
headerName i headerAliasMap Signature
ConstantValue Code LocalVariableTable LineNumberTable
StackMapTable LocalVariableTypeTable ;()Ljava/util/List; M()Ljava/util/List;>; ^()Ljava/util/Map;>; L()Ljava/util/Map; 7()Ljava/util/Map;
SourceFile InnerClasses !
! ? D*? #*? %Y? &? (*? %Y? &? **? ,Y? -? /*? ,Y? -? 1*? 3*? 5*7? =? ?? D @ A ! " ! # $ % % &