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 java/util/Map$Entry
java/util/Map
Entry 5com/groupbyinc/flux/common/xcontent/ToXContent$Params
.com/groupbyinc/flux/common/xcontent/ToXContent Params &MAX_CONCURRENT_SEARCH_REQUESTS_DEFAULT I maxConcurrentSearchRequests 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 2 request ,()Lcom/groupbyinc/flux/action/ActionRequest; 4 5
3 6 /com/groupbyinc/flux/action/search/SearchRequest 8 java/util/List : (Ljava/lang/Object;)Z 0 < ; = 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 D ,maxConcurrentSearchRequests must be positive F (Ljava/lang/String;)V H
E I ()Ljava/util/List; validate ?()Lcom/groupbyinc/flux/action/ActionRequestValidationException; isEmpty ()Z N O ; P no requests added R *com/groupbyinc/flux/action/ValidateActions T addValidationError ?(Ljava/lang/String;Lcom/groupbyinc/flux/action/ActionRequestValidationException;)Lcom/groupbyinc/flux/action/ActionRequestValidationException; V W
U X ;com/groupbyinc/flux/action/ActionRequestValidationException Z size \ B ; ] get (I)Ljava/lang/Object; _ ` ; a L M
9 c
[ validationErrors f K
[ g addValidationErrors (Ljava/lang/Iterable;)V i j
[ k 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 t r s
v 0com/groupbyinc/flux/common/io/stream/StreamInput x readVInt z B
y {
9
9 v in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; writeTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V ? ?
? 1com/groupbyinc/flux/common/io/stream/StreamOutput ? writeVInt (I)V ? ?
? ? iterator ()Ljava/util/Iterator; ? ? ; ? java/util/Iterator ? hasNext ? O ? ? next ()Ljava/lang/Object; ? ? ? ?
9 ? out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; equals java/lang/Object ? getClass ()Ljava/lang/Class; ? ?
? ? java/util/Objects ? '(Ljava/lang/Object;Ljava/lang/Object;)Z ? ?
? ? o Ljava/lang/Object; that hashCode java/lang/Integer ? valueOf (I)Ljava/lang/Integer; ? ?
? ? hash ([Ljava/lang/Object;)I ? ?
? ? readMultiLineFormatI(Lcom/groupbyinc/flux/common/bytes/BytesReference;Lcom/groupbyinc/flux/common/xcontent/XContent;Lcom/groupbyinc/flux/common/CheckedBiConsumer;[Ljava/lang/String;Lcom/groupbyinc/flux/action/support/IndicesOptions;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Z)V java/lang/Throwable ? /com/groupbyinc/flux/common/bytes/BytesReference ? length ? B
? ? ,com/groupbyinc/flux/common/xcontent/XContent ? streamSeparator ()B ? ? ? ? findNextMarker 7(BILcom/groupbyinc/flux/common/bytes/BytesReference;I)I ? ?
? indices F([Ljava/lang/String;)Lcom/groupbyinc/flux/action/search/SearchRequest; ? ?
9 ? f(Lcom/groupbyinc/flux/action/support/IndicesOptions;)Lcom/groupbyinc/flux/action/search/SearchRequest; ?
9 ? types ? ?
9 ? routing E(Ljava/lang/String;)Lcom/groupbyinc/flux/action/search/SearchRequest; ? ?
9 ?
searchType ? ?
9 ? DEFAULT_INDICES_OPTIONS ? 9 ? slice 5(II)Lcom/groupbyinc/flux/common/bytes/BytesReference; ? ?
? ? streamInput 4()Lcom/groupbyinc/flux/common/io/stream/StreamInput; ? ?
? ? =com/groupbyinc/flux/common/xcontent/LoggingDeprecationHandler ? INSTANCE ?Lcom/groupbyinc/flux/common/xcontent/LoggingDeprecationHandler; ? ? ? ? createParser ?(Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Lcom/groupbyinc/flux/common/xcontent/DeprecationHandler;Ljava/io/InputStream;)Lcom/groupbyinc/flux/common/xcontent/XContentParser; ? ? ? ? 2com/groupbyinc/flux/common/xcontent/XContentParser ? map ()Ljava/util/Map; ? ? ? ? entrySet ()Ljava/util/Set; ? ? ?
java/util/Set ? ? ? ,com/groupbyinc/flux/common/CheckedBiConsumer ? [Ljava/lang/String; ? java/lang/String ? 9com/groupbyinc/flux/common/xcontent/NamedXContentRegistry java/io/InputStream getValue ? index getKey
? ? <
? -explicit index in multi search is not allowed =com/groupbyinc/flux/common/xcontent/support/XContentMapValues nodeStringArrayValue '(Ljava/lang/Object;)[Ljava/lang/String;
type ? search_type ? nodeStringValue 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/String;
request_cache" requestCache$ nodeBooleanValue '(Ljava/lang/Object;Ljava/lang/String;)Z&'
( java/lang/Boolean* (Z)Ljava/lang/Boolean; ?,
+- F(Ljava/lang/Boolean;)Lcom/groupbyinc/flux/action/search/SearchRequest;$/
90
preference22 ?
94 ? allow_partial_search_results7 allowPartialSearchResults 4(Z)Lcom/groupbyinc/flux/action/search/SearchRequest;9:
9; fromMap w(Ljava/util/Map;Lcom/groupbyinc/flux/action/support/IndicesOptions;)Lcom/groupbyinc/flux/action/support/IndicesOptions;=>
'? $closeResource 1(Ljava/lang/Throwable;Ljava/lang/AutoCloseable;)VAB
C accept '(Ljava/lang/Object;Ljava/lang/Object;)VEF ?G value entry ;Ljava/util/Map$Entry; Ljava/util/Map$Entry; source 5Ljava/util/Map; Ljava/util/Map; parser 4Lcom/groupbyinc/flux/common/xcontent/XContentParser; stream Ljava/io/InputStream;
nextMarker
searchRequest defaultOptions bytes 1Lcom/groupbyinc/flux/common/bytes/BytesReference; data xContent .Lcom/groupbyinc/flux/common/xcontent/XContent; consumer ?Lcom/groupbyinc/flux/common/CheckedBiConsumer; .Lcom/groupbyinc/flux/common/CheckedBiConsumer; Ljava/lang/String; registry ;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry; allowExplicitIndex Z from marker B (I)B _g
?h 7The msearch request must be terminated by a newline [
]j writeMultiLineFormat h(Lcom/groupbyinc/flux/action/search/MultiSearchRequest;Lcom/groupbyinc/flux/common/xcontent/XContent;)[B java/io/ByteArrayOutputStreamn
o K
q 3com/groupbyinc/flux/common/xcontent/XContentBuilders builder e(Lcom/groupbyinc/flux/common/xcontent/XContent;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;uv
tw writeSearchRequestParams i(Lcom/groupbyinc/flux/action/search/SearchRequest;Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)Vyz
{ h(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)Lcom/groupbyinc/flux/common/bytes/BytesReference;W}
?~ (Ljava/io/OutputStream;)V ??
?? write? ?
o? :()Lcom/groupbyinc/flux/search/builder/SearchSourceBuilder;M?
9? EMPTY_PARAMS 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;?? ? 6com/groupbyinc/flux/search/builder/SearchSourceBuilder?
toXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
?? startObject 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
t? endObject??
t? toByteArray ()[B??
o? xContentBuilder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; multiSearchRequest output Ljava/io/ByteArrayOutputStream; ()[Ljava/lang/String; ??
9? field [(Ljava/lang/String;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
t? )
9? expandWildcardsOpen? O
'? expandWildcardsClosed? O
'? expand_wildcards? all? [(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
t? open? closed? none? ignore_unavailable? ignoreUnavailable? O
'? J(Ljava/lang/String;Z)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
t? allow_no_indices? allowNoIndices? O
'? ??
9? 0()Lcom/groupbyinc/flux/action/search/SearchType; ??
9? ,com/groupbyinc/flux/action/search/SearchType? name ()Ljava/lang/String;??
?? java/util/Locale? ROOT Ljava/util/Locale;?? ?? toLowerCase &(Ljava/util/Locale;)Ljava/lang/String;??
? ()Ljava/lang/Boolean;$?
9? \(Ljava/lang/String;Ljava/lang/Boolean;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
t?2?
9? ??
9?9?
9? java/lang/AutoCloseable? close? ??
addSuppressed (Ljava/lang/Throwable;)V??
?? x0 Ljava/lang/Throwable; x1 Ljava/lang/AutoCloseable;
ConstantValue Signature Code LocalVariableTable LineNumberTable
StackMapTable E()Ljava/util/List;
Exceptions LocalVariableTypeTable?(Lcom/groupbyinc/flux/common/bytes/BytesReference;Lcom/groupbyinc/flux/common/xcontent/XContent;Lcom/groupbyinc/flux/common/CheckedBiConsumer;[Ljava/lang/String;Lcom/groupbyinc/flux/action/support/IndicesOptions;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Z)V
SourceFile InnerClasses ! ? ? ? R *? *? *? "Y? #? %*? +? -? ? . / ? 6 : ; = 0 1 ? K *? %+? 7? 9? > W*? ? . / 4 ? ?
D E 0 @ ? E
*? %+? > W*? ?
. /
4 A ?
M N B ? / *? ? ? . / ? U C ? _ ?
? EYG? J?*? *? ? . / ? \ ] ` a? K ? / *? %? ? . / ? e? L M ? ? UL*? %? Q ?
S+? YL=*? %? ^ ? 2*? %? b ? 9? dN-? +? ? [Y? eL+-? h? l????+? ? * 5 m n <