com.groupbyinc.flux.action.fieldcaps.TransportFieldCapabilitiesAction.class Maven / Gradle / Ivy
???? 4? Ecom/groupbyinc/flux/action/fieldcaps/TransportFieldCapabilitiesAction ?Lcom/groupbyinc/flux/action/support/HandledTransportAction; 9com/groupbyinc/flux/action/support/HandledTransportAction %TransportFieldCapabilitiesAction.java Gcom/groupbyinc/flux/action/fieldcaps/TransportFieldCapabilitiesAction$2 Gcom/groupbyinc/flux/action/fieldcaps/TransportFieldCapabilitiesAction$1 java/util/Map$Entry
java/util/Map
Entry >com/groupbyinc/flux/action/fieldcaps/FieldCapabilities$Builder 6com/groupbyinc/flux/action/fieldcaps/FieldCapabilities Builder 2com/groupbyinc/flux/transport/Transport$Connection 'com/groupbyinc/flux/transport/Transport
Connection %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup clusterService 4Lcom/groupbyinc/flux/cluster/service/ClusterService; shardAction LLcom/groupbyinc/flux/action/fieldcaps/TransportFieldCapabilitiesIndexAction; remoteClusterService 4Lcom/groupbyinc/flux/transport/RemoteClusterService; transportService 0Lcom/groupbyinc/flux/transport/TransportService; ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/action/fieldcaps/TransportFieldCapabilitiesIndexAction;Lcom/groupbyinc/flux/action/support/ActionFilters;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;)V *Lcom/groupbyinc/flux/common/inject/Inject; indices:data/read/field_caps * "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; . /
- 0 1 ()Ljava/lang/Object; 3 =com/groupbyinc/flux/action/fieldcaps/FieldCapabilitiesRequest 5 ()V ' 7
6 8 9 A()Lcom/groupbyinc/flux/action/fieldcaps/FieldCapabilitiesRequest; ; get ()Ljava/util/function/Supplier; = > ?/(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/lang/String;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/action/support/ActionFilters;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;Ljava/util/function/Supplier;)V ' A
B D .com/groupbyinc/flux/transport/TransportService F getRemoteClusterService 6()Lcom/groupbyinc/flux/transport/RemoteClusterService; H I
G J # $ L % & N ! " P this GLcom/groupbyinc/flux/action/fieldcaps/TransportFieldCapabilitiesAction; settings .Lcom/groupbyinc/flux/common/settings/Settings;
threadPool +Lcom/groupbyinc/flux/threadpool/ThreadPool;
actionFilters 2Lcom/groupbyinc/flux/action/support/ActionFilters; indexNameExpressionResolver BLcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver; doExecute m(Lcom/groupbyinc/flux/action/fieldcaps/FieldCapabilitiesRequest;Lcom/groupbyinc/flux/action/ActionListener;)V 2com/groupbyinc/flux/cluster/service/ClusterService ^ state ,()Lcom/groupbyinc/flux/cluster/ClusterState; ` a
_ b indicesOptions 5()Lcom/groupbyinc/flux/action/support/IndicesOptions; d e
6 f indices ()[Ljava/lang/String; h i
6 j (Ljava/lang/Object;)Z l lambda$doExecute$0 ?(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/String;)Z n o
p q (Ljava/lang/String;)Z s test ?(Lcom/groupbyinc/flux/action/fieldcaps/TransportFieldCapabilitiesAction;Lcom/groupbyinc/flux/cluster/ClusterState;)Ljava/util/function/Predicate; u v w 2com/groupbyinc/flux/transport/RemoteClusterService y groupIndices u(Lcom/groupbyinc/flux/action/support/IndicesOptions;[Ljava/lang/String;Ljava/util/function/Predicate;)Ljava/util/Map; { |
z } remove &(Ljava/lang/Object;)Ljava/lang/Object; ? ? ? *com/groupbyinc/flux/action/OriginalIndices ? isEmpty ()Z ? ? ?
? j "com/groupbyinc/flux/common/Strings ? EMPTY_ARRAY [Ljava/lang/String; ? ? ? ? (com/groupbyinc/flux/cluster/ClusterState ? Z [ ? @com/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver ? concreteIndexNames j(Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/IndicesRequest;)[Ljava/lang/String; ? ?
? ? ? size ()I ? ? ? 4com/groupbyinc/flux/common/util/concurrent/CountDown ? (I)V ' ?
? ? java/util/ArrayList ?
? 8 java/util/Collections ? synchronizedList "(Ljava/util/List;)Ljava/util/List; ? ?
? ? 7 lambda$doExecute$1 ?(Lcom/groupbyinc/flux/common/util/concurrent/CountDown;Lcom/groupbyinc/flux/action/fieldcaps/FieldCapabilitiesRequest;Lcom/groupbyinc/flux/action/ActionListener;Ljava/util/List;)V ? ?
? ? run
(Lcom/groupbyinc/flux/action/fieldcaps/TransportFieldCapabilitiesAction;Lcom/groupbyinc/flux/common/util/concurrent/CountDown;Lcom/groupbyinc/flux/action/fieldcaps/FieldCapabilitiesRequest;Lcom/groupbyinc/flux/action/ActionListener;Ljava/util/List;)Ljava/lang/Runnable; ? ? ? >com/groupbyinc/flux/action/fieldcaps/FieldCapabilitiesResponse ?
? 8 )com/groupbyinc/flux/action/ActionListener ?
onResponse (Ljava/lang/Object;)V ? ? ? ? java/util/List ? java/lang/Runnable ? n(Lcom/groupbyinc/flux/action/fieldcaps/TransportFieldCapabilitiesAction;Ljava/util/List;Ljava/lang/Runnable;)V ' ?
? Bcom/groupbyinc/flux/action/fieldcaps/FieldCapabilitiesIndexRequest ? fields ? i
6 ? (([Ljava/lang/String;Ljava/lang/String;)V ' ?
? ? Jcom/groupbyinc/flux/action/fieldcaps/TransportFieldCapabilitiesIndexAction ? execute w(Lcom/groupbyinc/flux/action/ActionRequest;Lcom/groupbyinc/flux/action/ActionListener;)Lcom/groupbyinc/flux/tasks/Task; ? ?
? ? entrySet ()Ljava/util/Set; ? ? ?
java/util/Set ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ? ? ? ? next ? 3 ? ? getKey ? 3 ? java/lang/String ? getValue ? 3 ? ? lambda$doExecute$2 ?(Ljava/lang/String;Lcom/groupbyinc/flux/action/OriginalIndices;Lcom/groupbyinc/flux/action/fieldcaps/FieldCapabilitiesRequest;Ljava/util/List;Ljava/lang/Runnable;Ljava/lang/Void;)V ? ?
? ? (Ljava/lang/Void;)V ? accept(Lcom/groupbyinc/flux/action/fieldcaps/TransportFieldCapabilitiesAction;Ljava/lang/String;Lcom/groupbyinc/flux/action/OriginalIndices;Lcom/groupbyinc/flux/action/fieldcaps/FieldCapabilitiesRequest;Ljava/util/List;Ljava/lang/Runnable;)Lcom/groupbyinc/flux/common/CheckedConsumer; ? ? ? lambda$doExecute$3 ,(Ljava/lang/Runnable;Ljava/lang/Exception;)V ? ?
? (Ljava/lang/Exception;)V 3(Ljava/lang/Runnable;)Ljava/util/function/Consumer; ? wrap v(Lcom/groupbyinc/flux/common/CheckedConsumer;Ljava/util/function/Consumer;)Lcom/groupbyinc/flux/action/ActionListener; ? ensureConnected @(Ljava/lang/String;Lcom/groupbyinc/flux/action/ActionListener;)V
z
concreteIndices index Ljava/lang/String; clusterAlias originalIndices ,Lcom/groupbyinc/flux/action/OriginalIndices;
remoteIndices ULjava/util/Map$Entry; Ljava/util/Map$Entry;
innerListener rLcom/groupbyinc/flux/action/ActionListener; +Lcom/groupbyinc/flux/action/ActionListener; request ?Lcom/groupbyinc/flux/action/fieldcaps/FieldCapabilitiesRequest; listener mLcom/groupbyinc/flux/action/ActionListener; clusterState *Lcom/groupbyinc/flux/cluster/ClusterState; remoteClusterIndices OLjava/util/Map; Ljava/util/Map; localIndices totalNumRequest I completionCounter 6Lcom/groupbyinc/flux/common/util/concurrent/CountDown; indexResponses WLjava/util/List; Ljava/util/List; Ljava/lang/Runnable; merge R(Ljava/util/List;)Lcom/groupbyinc/flux/action/fieldcaps/FieldCapabilitiesResponse; java/util/HashMap/
0 8 ? ? Ccom/groupbyinc/flux/action/fieldcaps/FieldCapabilitiesIndexResponse3 getIndexName ()Ljava/lang/String;56
47 ()Ljava/util/Map; =9
4:
innerMerge 3(Ljava/util/Map;Ljava/lang/String;Ljava/util/Map;)V<=
> build ;(Z)Lcom/groupbyinc/flux/action/fieldcaps/FieldCapabilities;@A
B put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;DE F (Ljava/util/Map;)V 'H
?I response ELcom/groupbyinc/flux/action/fieldcaps/FieldCapabilitiesIndexResponse;
fieldEntry iLjava/util/Map$Entry; typeMap [Ljava/util/Map;
multiTypes Z entry ?Ljava/util/Map$Entry;>; responseMapBuilder ?Ljava/util/Map;>; responseMap ~Ljava/util/Map;>; ? lambda$innerMerge$4 #(Ljava/lang/String;)Ljava/util/Map;Z[
\][ apply ()Ljava/util/function/Function;`a b computeIfAbsent C(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;de f getTypeh6
i lambda$innerMerge$5 f(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/action/fieldcaps/FieldCapabilities$Builder;kl
mn T(Ljava/lang/String;)Lcom/groupbyinc/flux/action/fieldcaps/FieldCapabilities$Builder;p 1(Ljava/lang/String;)Ljava/util/function/Function;`r s isSearchableu ?
v isAggregatablex ?
y add (Ljava/lang/String;ZZ)V{|
} field fieldCap 8Lcom/groupbyinc/flux/action/fieldcaps/FieldCapabilities; cLjava/util/Map; builder @Lcom/groupbyinc/flux/action/fieldcaps/FieldCapabilities$Builder; aLjava/util/Map$Entry; indexName map X(Lcom/groupbyinc/flux/action/ActionRequest;Lcom/groupbyinc/flux/action/ActionListener;)V \ ]
? '(Ljava/lang/String;Ljava/lang/String;)V '?
? key f ? 7 ?? e Ljava/lang/Exception; java/lang/Exception?
getConnection H(Ljava/lang/String;)Lcom/groupbyinc/flux/transport/Transport$Connection;??
z? setMergeResults (Z)V??
6?
? f t(Lcom/groupbyinc/flux/action/support/IndicesOptions;)Lcom/groupbyinc/flux/action/fieldcaps/FieldCapabilitiesRequest; d?
6? T([Ljava/lang/String;)Lcom/groupbyinc/flux/action/fieldcaps/FieldCapabilitiesRequest; h?
6? ??
6? 5com/groupbyinc/flux/transport/TransportRequestOptions? EMPTY 7Lcom/groupbyinc/flux/transport/TransportRequestOptions;?? ?? ?(Lcom/groupbyinc/flux/action/fieldcaps/TransportFieldCapabilitiesAction;Ljava/util/List;Ljava/lang/String;Ljava/lang/Runnable;)V '?
? sendRequest ?(Lcom/groupbyinc/flux/transport/Transport$Connection;Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportRequest;Lcom/groupbyinc/flux/transport/TransportRequestOptions;Lcom/groupbyinc/flux/transport/TransportResponseHandler;)V??
G? v Ljava/lang/Void;
connection 4Lcom/groupbyinc/flux/transport/Transport$Connection;
remoteRequest countDown? ?
?? isMergeResults? ?
6?-.
? (Ljava/util/List;)V '?
?? hasIndexOrAlias ?(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/ClusterState;)Z??
?? idx Code LocalVariableTable LineNumberTable RuntimeVisibleAnnotations LocalVariableTypeTable
StackMapTable Signature ?(Lcom/groupbyinc/flux/action/fieldcaps/FieldCapabilitiesRequest;Lcom/groupbyinc/flux/action/ActionListener;)V ?(Ljava/util/List;)Lcom/groupbyinc/flux/action/fieldcaps/FieldCapabilitiesResponse; ?(Ljava/util/Map;>;Ljava/lang/String;Ljava/util/Map;)V
Exceptions BootstrapMethods
SourceFile InnerClasses ! ! " # $ % &