com.groupbyinc.flux.index.query.IdsQueryBuilder.class Maven / Gradle / Ivy
???? 4z /com/groupbyinc/flux/index/query/IdsQueryBuilder iLcom/groupbyinc/flux/index/query/AbstractQueryBuilder; 4com/groupbyinc/flux/index/query/AbstractQueryBuilder IdsQueryBuilder.java 5com/groupbyinc/flux/common/xcontent/ToXContent$Params .com/groupbyinc/flux/common/xcontent/ToXContent Params %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup NAME Ljava/lang/String; ids
TYPE_FIELD 'Lcom/groupbyinc/flux/common/ParseField; VALUES_FIELD Ljava/util/Set; #Ljava/util/Set; types [Ljava/lang/String; PARSER 2Lcom/groupbyinc/flux/common/xcontent/ObjectParser; uLcom/groupbyinc/flux/common/xcontent/ObjectParser; ()V
! java/util/HashSet #
$ ! & "com/groupbyinc/flux/common/Strings ( EMPTY_ARRAY * ) + - this 1Lcom/groupbyinc/flux/index/query/IdsQueryBuilder; 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V java/io/IOException 2 1
4 0com/groupbyinc/flux/common/io/stream/StreamInput 6 readStringArray ()[Ljava/lang/String; 8 9
7 : java/util/Collections < addAll ,(Ljava/util/Collection;[Ljava/lang/Object;)Z > ?
= @ in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; doWriteTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V 1com/groupbyinc/flux/common/io/stream/StreamOutput F writeStringArray ([Ljava/lang/String;)V H I
G J
java/util/Set L size ()I N O M P java/lang/String R toArray (([Ljava/lang/Object;)[Ljava/lang/Object; T U M V out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; F([Ljava/lang/String;)Lcom/groupbyinc/flux/index/query/IdsQueryBuilder; "java/lang/IllegalArgumentException \ [ids] types cannot be null ^ (Ljava/lang/String;)V `
] a addIds [ids] ids cannot be null d ()Ljava/util/Set;
doXContent o(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)V 3com/groupbyinc/flux/common/xcontent/XContentBuilder i startObject I(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; k l
j m o %com/groupbyinc/flux/common/ParseField q getPreferredName ()Ljava/lang/String; s t
r u array \(Ljava/lang/String;[Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; w x
j y {
startArray } l
j ~ iterator ()Ljava/util/Iterator; ? ? M ? java/util/Iterator ? hasNext ()Z ? ? ? ? next ()Ljava/lang/Object; ? ? ? ? value ? l
j ? endArray 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
j ? printBoostAndQueryName 8(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)V ? ?
? endObject ? ?
j ? builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; fromXContent g(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/index/query/IdsQueryBuilder; ? 0com/groupbyinc/flux/common/xcontent/ObjectParser ? apply Z(Lcom/groupbyinc/flux/common/xcontent/XContentParser;Ljava/lang/Object;)Ljava/lang/Object; ? ?
? ? +com/groupbyinc/flux/common/ParsingException ? 2com/groupbyinc/flux/common/xcontent/XContentParser ? getTokenLocation 8()Lcom/groupbyinc/flux/common/xcontent/XContentLocation; ? ? ? ?
getMessage ? t
] ? java/lang/Object ? s(Lcom/groupbyinc/flux/common/xcontent/XContentLocation;Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V ?
? ? e $Ljava/lang/IllegalArgumentException; parser 4Lcom/groupbyinc/flux/common/xcontent/XContentParser; getWriteableName doToQuery l(Lcom/groupbyinc/flux/index/query/QueryShardContext;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query; _uid ? 1com/groupbyinc/flux/index/query/QueryShardContext ? fieldMapper F(Ljava/lang/String;)Lcom/groupbyinc/flux/index/mapper/MappedFieldType; ? ?
? ? @com/groupbyinc/flux/common/apache/lucene/search/MatchNoDocsQuery ? No mappings ?
? a 0com/groupbyinc/flux/index/mapper/MappedFieldType ? isEmpty ? ? M ? java/lang/StringBuilder ?
? ! Missing ids in " ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? getName ? t
? " query. ? toString ? t
? ? 0com/groupbyinc/flux/common/lucene/search/Queries ? newMatchNoDocsQuery K(Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query; ? ?
? ?
queryTypes ()Ljava/util/Collection; ? ?
? ? _all ? equals (Ljava/lang/Object;)Z ? ?
S ? getMapperService 2()Lcom/groupbyinc/flux/index/mapper/MapperService; ? ?
? ? .com/groupbyinc/flux/index/mapper/MapperService ? ?
? ? java/util/Collection ? $com/groupbyinc/flux/index/mapper/Uid ? createUidsForTypesAndIds g(Ljava/util/Collection;Ljava/util/Collection;)[Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;
? java/util/Arrays asList %([Ljava/lang/Object;)Ljava/util/List;
termsQuery |(Ljava/util/List;Lcom/groupbyinc/flux/index/query/QueryShardContext;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query;
? 5com/groupbyinc/flux/common/apache/lucene/search/Query query 7Lcom/groupbyinc/flux/common/apache/lucene/search/Query;
typesForQuery *Ljava/util/Collection; Ljava/util/Collection; context 3Lcom/groupbyinc/flux/index/query/QueryShardContext; uidField 2Lcom/groupbyinc/flux/index/mapper/MappedFieldType;
doHashCode hashCode ([Ljava/lang/Object;)I
java/lang/Integer valueOf (I)Ljava/lang/Integer; !
" java/util/Objects$ hash&
%' doEquals 4(Lcom/groupbyinc/flux/index/query/IdsQueryBuilder;)Z '(Ljava/lang/Object;Ljava/lang/Object;)Z ?+
%, )([Ljava/lang/Object;[Ljava/lang/Object;)Z ?.
/ other 9(Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder;)Z)*
3 lambda$static$0 3()Lcom/groupbyinc/flux/index/query/IdsQueryBuilder;
! type9 ((Ljava/lang/String;[Ljava/lang/String;)V ;
r< values> "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;BC
ADE ?56
HI6 get ()Ljava/util/function/Supplier;LM N 2(Ljava/lang/String;Ljava/util/function/Supplier;)V P
?Q '(Ljava/lang/Object;Ljava/lang/Object;)VS [
UV G(Lcom/groupbyinc/flux/index/query/IdsQueryBuilder;[Ljava/lang/String;)VX accept !()Ljava/util/function/BiConsumer;Z[ \ fromList Q(Ljava/lang/Class;Ljava/util/function/BiConsumer;)Ljava/util/function/BiConsumer;^_
?` declareStringArray I(Ljava/util/function/BiConsumer;Lcom/groupbyinc/flux/common/ParseField;)Vbc
?d c [
fg \ declareStandardFields =(Lcom/groupbyinc/flux/common/xcontent/AbstractObjectParser;)Vjk
l
ConstantValue Signature Code LocalVariableTable LineNumberTable
Exceptions
StackMapTable %()Ljava/util/Set; LocalVariableTypeTable BootstrapMethods
SourceFile InnerClasses ! n o
o p M *? "*? $Y? %? '*? ,? .? q / 0 r @ 9 ; B 1 p t ,*+? 5*? $Y? %? '*? ,? .*+? ;? .*? '+? ;? AW? q , / 0 , B C r H 9 ; I J + Ks 3 D E p a %+*? .? K+*? '*? '? Q ? S? W ? X? K? q % / 0 % Y Z r O P $ Qs 3 ? [ p ^ +?
? ]Y_? b?*+? .*? q / 0 r W X Z [t 9 p / *? .? q / 0 r b ? c [ p b +?
? ]Ye? b?*? '+? AW*? q / 0 r i j l mt f p / *? '? q / 0 r to u g h p ? Y+? nW+? p? v*? .? zW+? |? v? W*? '? ? N-? ? ? -? ? ? S:+? ?W???+? ?W*+? ?+? ?W? q * ? ? Y / 0 Y ? ? Y ? ? r *
y z { ! | ? } F ~ I N ? S ? X ?t ? + ?? s 3 ? ? p t $? ?*? ?? ?L? ?Y*? ? +? ?+? ?? ?? ] q
? ? $ ? ? r ? ?
?t L ] ? t p - ? q / 0 r ? ? ? p ? ?+¶ ?N-?
? ?Y̷ Ͱ*? '? ? ? %? ?Y? ? ?*? ?? ۶ ? ?M? \*? .?? +? ?:? 9*? .?? ?*? .2? ? +? ?? ?:? ? $Y? %:*? .? AW-*? '?? +?
M,? q R @ Q t ? ? / 0 ? ? ? v Q t ? r 6
? ? ? ? ! ? C ? K ? T ? k ? w ? ? ? ? ? ? ?t % ? ?-"? ?? ? ? s 3 O p F ? ?Y*? 'SY*? .??#S?(? q / 0 r ? )* p i "*? '+? '?-? *? .+? .?0? ? ? q " / 0 "1 0 r ? ? ! ?t @D)2 p 3 *+? ?4? q / 0 r 3
56 p ? Y?7? r ? 8 p ? `? rY:? S?=? p? rY?? S?=? |? ?Y?O ?R? ?? ?S?] ?a? p?e? ?S?i ?a? |?e? ??m? r 6 7 " ? 3 ? F ? Y ? _ ? w F GJKF TWYF ThYo x y