
com.groupbyinc.flux.rest.action.count.RestCountAction$1.class Maven / Gradle / Ivy
???? 3 { 7com/groupbyinc/flux/rest/action/count/RestCountAction$1 qLcom/groupbyinc/flux/rest/action/support/RestBuilderListener; ;com/groupbyinc/flux/rest/action/support/RestBuilderListener RestCountAction.java 5com/groupbyinc/flux/rest/action/count/RestCountAction
handleRequest r(Lcom/groupbyinc/flux/rest/RestRequest;Lcom/groupbyinc/flux/rest/RestChannel;Lcom/groupbyinc/flux/client/Client;)V
5com/groupbyinc/flux/common/xcontent/ToXContent$Params .com/groupbyinc/flux/common/xcontent/ToXContent Params val$terminateAfter I val$request &Lcom/groupbyinc/flux/rest/RestRequest; this$0 7Lcom/groupbyinc/flux/rest/action/count/RestCountAction; ?(Lcom/groupbyinc/flux/rest/action/count/RestCountAction;Lcom/groupbyinc/flux/rest/RestChannel;ILcom/groupbyinc/flux/rest/RestRequest;)V )(Lcom/groupbyinc/flux/rest/RestChannel;)V
this 9Lcom/groupbyinc/flux/rest/action/count/RestCountAction$1; channel &Lcom/groupbyinc/flux/rest/RestChannel;
buildResponse ?(Lcom/groupbyinc/flux/action/search/SearchResponse;Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)Lcom/groupbyinc/flux/rest/RestResponse; java/lang/Exception ( 3com/groupbyinc/flux/common/xcontent/XContentBuilder * startObject 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; , -
+ . terminated_early 0 0com/groupbyinc/flux/action/search/SearchResponse 2 isTerminatedEarly ()Ljava/lang/Boolean; 4 5
3 6 field [(Ljava/lang/String;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; 8 9
+ : count < getHits )()Lcom/groupbyinc/flux/search/SearchHits; > ?
3 @ %com/groupbyinc/flux/search/SearchHits B totalHits ()J D E C F J(Ljava/lang/String;J)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; 8 H
+ I getTotalShards ()I K L
3 M getSuccessfulShards O L
3 P getFailedShards R L
3 S getShardFailures 9()[Lcom/groupbyinc/flux/action/search/ShardSearchFailure; U V
3 W 3com/groupbyinc/flux/rest/action/support/RestActions Y buildBroadcastShardsHeader ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;III[Lcom/groupbyinc/flux/action/ShardOperationFailedException;)V [ \
Z ] endObject _ -
+ ` *com/groupbyinc/flux/rest/BytesRestResponse b status '()Lcom/groupbyinc/flux/rest/RestStatus; d e
3 f ](Lcom/groupbyinc/flux/rest/RestStatus;Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)V h
c i response 2Lcom/groupbyinc/flux/action/search/SearchResponse; builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; p(Ljava/lang/Object;Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)Lcom/groupbyinc/flux/rest/RestResponse; &