
com.groupbyinc.flux.rest.action.cat.RestFielddataAction.class Maven / Gradle / Ivy
???? 3L 7com/groupbyinc/flux/rest/action/cat/RestFielddataAction 5com/groupbyinc/flux/rest/action/cat/AbstractCatAction RestFielddataAction.java 9com/groupbyinc/flux/rest/action/cat/RestFielddataAction$1 java/util/Map$Entry
java/util/Map
Entry +com/groupbyinc/flux/rest/RestRequest$Method
$com/groupbyinc/flux/rest/RestRequest Method Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectLongHashMap$KeysContainer >com/groupbyinc/flux/common/carrotsearch/hppc/ObjectLongHashMap
KeysContainer }(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/rest/RestController;Lcom/groupbyinc/flux/client/Client;)V *Lcom/groupbyinc/flux/common/inject/Inject;
GET -Lcom/groupbyinc/flux/rest/RestRequest$Method; /_cat/fielddata 'com/groupbyinc/flux/rest/RestController " registerHandler h(Lcom/groupbyinc/flux/rest/RestRequest$Method;Ljava/lang/String;Lcom/groupbyinc/flux/rest/RestHandler;)V $ %
# & /_cat/fielddata/{fields} ( this 9Lcom/groupbyinc/flux/rest/action/cat/RestFielddataAction; settings .Lcom/groupbyinc/flux/common/settings/Settings;
controller )Lcom/groupbyinc/flux/rest/RestController; client #Lcom/groupbyinc/flux/client/Client; doRequest r(Lcom/groupbyinc/flux/rest/RestRequest;Lcom/groupbyinc/flux/rest/RestChannel;Lcom/groupbyinc/flux/client/Client;)V Ecom/groupbyinc/flux/action/admin/cluster/node/stats/NodesStatsRequest 4 java/lang/String 6 data:true 8 ([Ljava/lang/String;)V :
5 ; clear I()Lcom/groupbyinc/flux/action/admin/cluster/node/stats/NodesStatsRequest; = >
5 ? indices J(Z)Lcom/groupbyinc/flux/action/admin/cluster/node/stats/NodesStatsRequest; A B
5 C fields E paramAsStringArray :(Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String; G H
I C()Lcom/groupbyinc/flux/action/admin/indices/stats/CommonStatsFlags; A K
5 L * N $com/groupbyinc/flux/rest/RestChannel P !com/groupbyinc/flux/client/Client R [Ljava/lang/String; T ?com/groupbyinc/flux/action/admin/indices/stats/CommonStatsFlags V fieldDataFields V([Ljava/lang/String;)Lcom/groupbyinc/flux/action/admin/indices/stats/CommonStatsFlags; X Y
W Z admin *()Lcom/groupbyinc/flux/client/AdminClient; \ ] S ^ &com/groupbyinc/flux/client/AdminClient ` cluster 1()Lcom/groupbyinc/flux/client/ClusterAdminClient; b c a d ?(Lcom/groupbyinc/flux/rest/action/cat/RestFielddataAction;Lcom/groupbyinc/flux/rest/RestChannel;Lcom/groupbyinc/flux/rest/RestRequest;)V f
g -com/groupbyinc/flux/client/ClusterAdminClient i
nodesStats u(Lcom/groupbyinc/flux/action/admin/cluster/node/stats/NodesStatsRequest;Lcom/groupbyinc/flux/action/ActionListener;)V k l j m request &Lcom/groupbyinc/flux/rest/RestRequest; channel &Lcom/groupbyinc/flux/rest/RestChannel; nodesStatsRequest GLcom/groupbyinc/flux/action/admin/cluster/node/stats/NodesStatsRequest;
documentation (Ljava/lang/StringBuilder;)V /_cat/fielddata
w java/lang/StringBuilder y append -(Ljava/lang/String;)Ljava/lang/StringBuilder; { |
z } /_cat/fielddata/{fields}
sb Ljava/lang/StringBuilder; getTableWithHeader J(Lcom/groupbyinc/flux/rest/RestRequest;)Lcom/groupbyinc/flux/common/Table; com/groupbyinc/flux/common/Table ? ()V ?
? ? startHeaders $()Lcom/groupbyinc/flux/common/Table; ? ?
? ? id ? desc:node id ? addCell H(Ljava/lang/Object;Ljava/lang/String;)Lcom/groupbyinc/flux/common/Table; ? ?
? ? host ? alias:h;desc:host name ? ip ? desc:ip address ? node ? alias:n;desc:node name ? total ? ,text-align:right;desc:total field data usage ?
endHeaders ? ?
? ? table "Lcom/groupbyinc/flux/common/Table;
buildTable ?(Lcom/groupbyinc/flux/rest/RestRequest;Lcom/groupbyinc/flux/action/admin/cluster/node/stats/NodesStatsResponse;)Lcom/groupbyinc/flux/common/Table; java/util/HashSet ?
? ? java/util/HashMap ?
? ? Fcom/groupbyinc/flux/action/admin/cluster/node/stats/NodesStatsResponse ? getNodes >()[Lcom/groupbyinc/flux/action/support/nodes/BaseNodeResponse; ? ?
? ? @[Lcom/groupbyinc/flux/action/admin/cluster/node/stats/NodeStats; ?
java/util/Set ? =com/groupbyinc/flux/action/admin/cluster/node/stats/NodeStats ?
getIndices 0()Lcom/groupbyinc/flux/indices/NodeIndicesStats; ? ?
? ? ,com/groupbyinc/flux/indices/NodeIndicesStats ? getFieldData 6()Lcom/groupbyinc/flux/index/fielddata/FieldDataStats; ? ?
? ? 2com/groupbyinc/flux/index/fielddata/FieldDataStats ? getFields B()Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectLongHashMap; ? ?
? ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? keys P()Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectLongHashMap$KeysContainer; ? ?
? toArray &(Ljava/lang/Class;)[Ljava/lang/Object; ? ?
? add (Ljava/lang/Object;)Z ? ? ? ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ()Z ? ? ? ? next ()Ljava/lang/Object; ? ? ? ?
z ? text-align:right;desc: ? field ? toString ()Ljava/lang/String; ? ?
z ? entrySet ()Ljava/util/Set; ? ? ? startRow ? ?
? ? getKey ? ? ? getNode 2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;
? .com/groupbyinc/flux/cluster/node/DiscoveryNode ? ?
6(Ljava/lang/Object;)Lcom/groupbyinc/flux/common/Table; ?
? getHostName ?
getHostAddress ?
getName ?
getMemorySize 1()Lcom/groupbyinc/flux/common/unit/ByteSizeValue;
? getValue ? :com/groupbyinc/flux/common/carrotsearch/hppc/ObjectLongMap -com/groupbyinc/flux/common/unit/ByteSizeValue getOrDefault (Ljava/lang/Object;J)J ! (J)V #
$ endRow&