com.groupbyinc.flux.action.search.SearchScrollAsyncAction.class Maven / Gradle / Ivy
???? 47 9com/groupbyinc/flux/action/search/SearchScrollAsyncAction XLjava/lang/Object;Ljava/lang/Runnable; java/lang/Object java/lang/Runnable SearchScrollAsyncAction.java ;com/groupbyinc/flux/action/search/SearchScrollAsyncAction$2 ;com/groupbyinc/flux/action/search/SearchScrollAsyncAction$1 2com/groupbyinc/flux/transport/Transport$Connection
'com/groupbyinc/flux/transport/Transport
Connection Icom/groupbyinc/flux/action/search/SearchPhaseController$ReducedQueryPhase 7com/groupbyinc/flux/action/search/SearchPhaseController ReducedQueryPhase %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup logger !Lorg/apache/logging/log4j/Logger; listener +Lcom/groupbyinc/flux/action/ActionListener; _Lcom/groupbyinc/flux/action/ActionListener; scrollId 2Lcom/groupbyinc/flux/action/search/ParsedScrollId; nodes 1Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes; searchPhaseController 9Lcom/groupbyinc/flux/action/search/SearchPhaseController; request 7Lcom/groupbyinc/flux/action/search/SearchScrollRequest; searchTransportService :Lcom/groupbyinc/flux/action/search/SearchTransportService; startTime J
shardFailures Ljava/util/List; HLjava/util/List;
successfulOps +Ljava/util/concurrent/atomic/AtomicInteger; $assertionsDisabled Z \(Lcom/groupbyinc/flux/action/search/ParsedScrollId;Lorg/apache/logging/log4j/Logger;Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/action/search/SearchPhaseController;Lcom/groupbyinc/flux/action/search/SearchScrollRequest;Lcom/groupbyinc/flux/action/search/SearchTransportService;)V ()V 4 6
7 java/util/ArrayList 9
: 7 - . < java/lang/System > currentTimeMillis ()J @ A
? B + , D ! " F )java/util/concurrent/atomic/AtomicInteger H 0com/groupbyinc/flux/action/search/ParsedScrollId J
getContext 6()[Lcom/groupbyinc/flux/action/search/ScrollIdForNode; L M
K N (I)V 4 P
I Q 0 1 S U W # $ Y % & [ ' ( ] ) * _ this @Lcom/groupbyinc/flux/action/search/SearchScrollAsyncAction; ;Lcom/groupbyinc/flux/action/search/SearchScrollAsyncAction; buildTookInMillis java/lang/Math e max (JJ)J g h
f i run ?com/groupbyinc/flux/action/search/SearchPhaseExecutionException l query n no nodes to search on p 4com/groupbyinc/flux/action/search/ShardSearchFailure r EMPTY_ARRAY 7[Lcom/groupbyinc/flux/action/search/ShardSearchFailure; t u s v ^(Ljava/lang/String;Ljava/lang/String;[Lcom/groupbyinc/flux/action/search/ShardSearchFailure;)V 4 x
m y )com/groupbyinc/flux/action/ActionListener { onFailure (Ljava/lang/Exception;)V } ~ | 4[Lcom/groupbyinc/flux/action/search/ScrollIdForNode; ? java/util/Arrays ? asList %([Ljava/lang/Object;)Ljava/util/List; ? ?
? ? "java/lang/invoke/LambdaMetafactory ? metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; ? ?
? ? ? (Ljava/lang/Object;)V ? lambda$run$0 V([Lcom/groupbyinc/flux/action/search/ScrollIdForNode;Ljava/util/function/BiFunction;)V ? ?
? ? "(Ljava/util/function/BiFunction;)V ? accept ?(Lcom/groupbyinc/flux/action/search/SearchScrollAsyncAction;[Lcom/groupbyinc/flux/action/search/ScrollIdForNode;)Lcom/groupbyinc/flux/common/CheckedConsumer; ? ? ? getClass ()Ljava/lang/Class; ? ?
? ? ~ J(Lcom/groupbyinc/flux/action/ActionListener;)Ljava/util/function/Consumer; ? ? ? wrap v(Lcom/groupbyinc/flux/common/CheckedConsumer;Ljava/util/function/Consumer;)Lcom/groupbyinc/flux/action/ActionListener; ? ? | ? collectNodesAndRun ?(Ljava/lang/Iterable;Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;Lcom/groupbyinc/flux/action/search/SearchTransportService;Lcom/groupbyinc/flux/action/ActionListener;)V ? ?
? context java/util/HashSet ?
? 7 java/lang/Iterable ? iterator ()Ljava/util/Iterator; ? ? ? ?
java/util/Set ? java/util/Iterator ? hasNext ()Z ? ? ? ? next ()Ljava/lang/Object; ? ? ? ? 1com/groupbyinc/flux/action/search/ScrollIdForNode ? getClusterAlias ()Ljava/lang/String; ? ?
? ? add (Ljava/lang/Object;)Z ? ? ? ? isEmpty ? ? ? ? 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? lambda$collectNodesAndRun$1 ?(Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; ? ?
? ? V(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; ? apply R(Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;)Ljava/util/function/BiFunction; ? ? ?
onResponse ? ? | ? 8com/groupbyinc/flux/action/search/SearchTransportService ? getRemoteClusterService 6()Lcom/groupbyinc/flux/transport/RemoteClusterService; ? ?
? ? lambda$collectNodesAndRun$3 ~(Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;Lcom/groupbyinc/flux/action/ActionListener;Ljava/util/function/BiFunction;)V ? ?
? ? ?(Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;Lcom/groupbyinc/flux/action/ActionListener;)Lcom/groupbyinc/flux/common/CheckedConsumer; ? ? ? 2com/groupbyinc/flux/transport/RemoteClusterService ? collectNodes =(Ljava/util/Set;Lcom/groupbyinc/flux/action/ActionListener;)V ? ?
? ? target 3Lcom/groupbyinc/flux/action/search/ScrollIdForNode; remoteClusterService 4Lcom/groupbyinc/flux/transport/RemoteClusterService; scrollIds ILjava/lang/Iterable; Ljava/lang/Iterable; ?Lcom/groupbyinc/flux/action/ActionListener;>; clusters #Ljava/util/Set; Ljava/util/Set; V(Ljava/util/function/BiFunction;[Lcom/groupbyinc/flux/action/search/ScrollIdForNode;)V java/lang/Exception 4com/groupbyinc/flux/common/util/concurrent/CountDown
Q getNode ?
? java/util/function/BiFunction ? ?
.com/groupbyinc/flux/cluster/node/DiscoveryNode
java/lang/IllegalStateException java/lang/StringBuilder
7 node [ append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
] is not available toString ?
(Ljava/lang/String;)V 4
getConnection x(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;)Lcom/groupbyinc/flux/transport/Transport$Connection;"#
$ getScrollId&