com.groupbyinc.flux.action.search.MultiSearchRequest.class Maven / Gradle / Ivy
???? 4 ? 4com/groupbyinc/flux/action/search/MultiSearchRequest (com/groupbyinc/flux/action/ActionRequest 2com/groupbyinc/flux/action/CompositeIndicesRequest MultiSearchRequest.java maxConcurrentSearchRequests I requests Ljava/util/List; CLjava/util/List; indicesOptions 3Lcom/groupbyinc/flux/action/support/IndicesOptions; ()V
java/util/ArrayList
1com/groupbyinc/flux/action/support/IndicesOptions strictExpandOpenAndForbidClosed 5()Lcom/groupbyinc/flux/action/support/IndicesOptions;
this 6Lcom/groupbyinc/flux/action/search/MultiSearchRequest; add p(Lcom/groupbyinc/flux/action/search/SearchRequestBuilder;)Lcom/groupbyinc/flux/action/search/MultiSearchRequest; 6com/groupbyinc/flux/action/search/SearchRequestBuilder & request ,()Lcom/groupbyinc/flux/action/ActionRequest; ( )
' * java/util/List , (Ljava/lang/Object;)Z $ . - / 8Lcom/groupbyinc/flux/action/search/SearchRequestBuilder; i(Lcom/groupbyinc/flux/action/search/SearchRequest;)Lcom/groupbyinc/flux/action/search/MultiSearchRequest; 1Lcom/groupbyinc/flux/action/search/SearchRequest; ()I 9(I)Lcom/groupbyinc/flux/action/search/MultiSearchRequest; "java/lang/IllegalArgumentException 6 ,maxConcurrentSearchRequests must be positive 8 (Ljava/lang/String;)V :
7 ; ()Ljava/util/List; validate ?()Lcom/groupbyinc/flux/action/ActionRequestValidationException; isEmpty ()Z @ A - B no requests added D *com/groupbyinc/flux/action/ValidateActions F addValidationError ?(Ljava/lang/String;Lcom/groupbyinc/flux/action/ActionRequestValidationException;)Lcom/groupbyinc/flux/action/ActionRequestValidationException; H I
G J ;com/groupbyinc/flux/action/ActionRequestValidationException L size N 4 - O get (I)Ljava/lang/Object; Q R - S /com/groupbyinc/flux/action/search/SearchRequest U > ?
V W
M validationErrors Z =
M [ addValidationErrors (Ljava/lang/Iterable;)V ] ^
M _ ex =Lcom/groupbyinc/flux/action/ActionRequestValidationException; i validationException k(Lcom/groupbyinc/flux/action/support/IndicesOptions;)Lcom/groupbyinc/flux/action/search/MultiSearchRequest; readFrom 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V java/io/IOException h f g
j 0com/groupbyinc/flux/common/io/stream/StreamInput l readVInt n 4
m o
V
V j in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; writeTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V u v
w 1com/groupbyinc/flux/common/io/stream/StreamOutput y writeVInt (I)V { |
z } iterator ()Ljava/util/Iterator; ? - ? java/util/Iterator ? hasNext ? A ? ? next ()Ljava/lang/Object; ? ? ? ?
V w out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; Signature Code LocalVariableTable LineNumberTable
StackMapTable E()Ljava/util/List;
Exceptions
SourceFile !
?
? R *? *? *? Y? ? *? ? !? ? " # ? &