All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.groupbyinc.flux.index.query.TermsQueryBuilder.class Maven / Gradle / Ivy

There is a newer version: 129
Show newest version
????4Y1com/groupbyinc/flux/index/query/TermsQueryBuilderkLcom/groupbyinc/flux/index/query/AbstractQueryBuilder;4com/groupbyinc/flux/index/query/AbstractQueryBuilderTermsQueryBuilder.java3com/groupbyinc/flux/index/query/TermsQueryBuilder$43com/groupbyinc/flux/index/query/TermsQueryBuilder$3	3com/groupbyinc/flux/index/query/TermsQueryBuilder$23com/groupbyinc/flux/index/query/TermsQueryBuilder$1
5com/groupbyinc/flux/common/xcontent/ToXContent$Params.com/groupbyinc/flux/common/xcontent/ToXContentParams8com/groupbyinc/flux/common/xcontent/XContentParser$Token2com/groupbyinc/flux/common/xcontent/XContentParserToken5com/groupbyinc/flux/common/io/stream/Writeable$Reader.com/groupbyinc/flux/common/io/stream/WriteableReader%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandles LookupNAMELjava/lang/String;terms%	fieldNamevaluesLjava/util/List;Ljava/util/List<*>;termsLookup)Lcom/groupbyinc/flux/indices/TermsLookup;supplierLjava/util/function/Supplier;2Ljava/util/function/Supplier;>;
INTEGER_TYPESLjava/util/Set;7Ljava/util/Set;>;STRING_TYPES%Ljava/util/Set;>;>(Ljava/lang/String;Lcom/groupbyinc/flux/indices/TermsLookup;)VN(Ljava/lang/String;Ljava/util/List;Lcom/groupbyinc/flux/indices/TermsLookup;)V57
8this3Lcom/groupbyinc/flux/index/query/TermsQueryBuilder;()V5<
="com/groupbyinc/flux/common/Strings?isEmpty(Ljava/lang/CharSequence;)ZAB
@C"java/lang/IllegalArgumentExceptionEfield name cannot be null.G(Ljava/lang/String;)V5I
FJjava/lang/StringLjava/util/ListN'com/groupbyinc/flux/indices/TermsLookupP1No value or termsLookup specified for terms queryR5Both values and termsLookup specified for terms queryT'$	Vconvert"(Ljava/util/List;)Ljava/util/List;XY
Z()	\+,	^-.	`$Ljava/util/List;((Ljava/lang/String;[Ljava/lang/String;)Vjava/util/ArraysdasList%([Ljava/lang/Object;)Ljava/util/List;fg
eh[Ljava/lang/String;jjava/lang/Iterablel)(Ljava/lang/String;Ljava/lang/Iterable;)V5n
o(Ljava/lang/String;[I)Vstream ([I)Ljava/util/stream/IntStream;rs
et"java/lang/invoke/LambdaMetafactoryvmetafactory?(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;xy
wz{(I)Ljava/lang/Object;}lambda$new$0(I)Ljava/lang/Integer;?
???apply"()Ljava/util/function/IntFunction;???java/util/stream/IntStream?mapToObj;(Ljava/util/function/IntFunction;)Ljava/util/stream/Stream;????java/util/stream/Collectors?toList()Ljava/util/stream/Collector;??
??java/util/stream/Stream?collect0(Ljava/util/stream/Collector;)Ljava/lang/Object;????[I?(Ljava/lang/String;[J)V!([J)Ljava/util/stream/LongStream;r?
e?(J)Ljava/lang/Object;?lambda$new$1(J)Ljava/lang/Long;??
???#()Ljava/util/function/LongFunction;???java/util/stream/LongStream?<(Ljava/util/function/LongFunction;)Ljava/util/stream/Stream;????[J?(Ljava/lang/String;[F)Vrange (II)Ljava/util/stream/IntStream;????lambda$new$2([FI)Ljava/lang/Float;??
??(I)Ljava/lang/Float;?$([F)Ljava/util/function/IntFunction;???[F?(Ljava/lang/String;[D)V#([D)Ljava/util/stream/DoubleStream;r?
e?(D)Ljava/lang/Object;?lambda$new$3(D)Ljava/lang/Double;??
???%()Ljava/util/function/DoubleFunction;???java/util/stream/DoubleStream?>(Ljava/util/function/DoubleFunction;)Ljava/util/stream/Stream;????[D?((Ljava/lang/String;[Ljava/lang/Object;)V[Ljava/lang/Object;?"No value specified for terms query?&(Ljava/lang/Iterable;)Ljava/util/List;X?
?Ljava/lang/Iterable<*>;Ljava/lang/Iterable;2(Ljava/lang/String;Ljava/util/function/Supplier;)V5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Vjava/io/IOException?5?
?0com/groupbyinc/flux/common/io/stream/StreamInput?
readString()Ljava/lang/String;??
??F(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Ljava/lang/Object;?
Q??](Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/indices/TermsLookup;?read9()Lcom/groupbyinc/flux/common/io/stream/Writeable$Reader;???readOptionalWriteablei(Lcom/groupbyinc/flux/common/io/stream/Writeable$Reader;)Lcom/groupbyinc/flux/common/io/stream/Writeable;??
??readGenericValue()Ljava/lang/Object;??
?in2Lcom/groupbyinc/flux/common/io/stream/StreamInput;	doWriteTo6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)Vjava/lang/IllegalStateExceptionLsupplier must be null, can't serialize suppliers, missing a rewriteAndFetch?
J1com/groupbyinc/flux/common/io/stream/StreamOutputwriteString
I
writeOptionalWriteable3(Lcom/groupbyinc/flux/common/io/stream/Writeable;)V
writeGenericValue(Ljava/lang/Object;)V
out3Lcom/groupbyinc/flux/common/io/stream/StreamOutput;()Ljava/util/List;convertBackY
+()Lcom/groupbyinc/flux/indices/TermsLookup;java/util/ArrayList
 =iterator()Ljava/util/Iterator;"#m$java/util/Iterator&hasNext()Z()'*next,?'-add(Ljava/lang/Object;)Z/0
 1listoLjava/lang/Object;	arrayList)Ljava/util/ArrayList;Ljava/util/ArrayList;java/lang/Throwable9A)O;java/util/Collections=	emptyList?
>@()Ljava/util/stream/Stream;rBOC0lambda$convert$4F0
GHtest ()Ljava/util/function/Predicate;JKLallMatch!(Ljava/util/function/Predicate;)ZNO?P(Ljava/lang/Object;)JRlambda$convert$5TR
UVapplyAsLong%()Ljava/util/function/ToLongFunction;XYZ	mapToLongB(Ljava/util/function/ToLongFunction;)Ljava/util/stream/LongStream;\]?^toArray()[J`a?b([J)V5d
elambda$convert$6g0
hiL=com/groupbyinc/flux/common/apache/lucene/util/BytesRefBuilderl
m=6com/groupbyinc/flux/common/io/stream/BytesStreamOutputo
p=size()IrsOtO$6com/groupbyinc/flux/common/apache/lucene/util/BytesRefwjava/lang/ObjectytoString{?
z|	copyChars(Ljava/lang/CharSequence;)V~
m?get:()Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;??
m?bytes[B??	x?offsetI??	x?length??	x?
writeBytes([BII)V??
p?java/lang/Math?addExact(II)I??
??3()Lcom/groupbyinc/flux/common/bytes/BytesReference;??
p?6([ILcom/groupbyinc/flux/common/bytes/BytesReference;)V5?
?close?<
p?/com/groupbyinc/flux/common/bytes/BytesReference?
addSuppressed(Ljava/lang/Throwable;)V??
:?&(Ljava/lang/Object;)Ljava/lang/Object;?lambda$convert$7??
??()Ljava/util/function/Function;???map8(Ljava/util/function/Function;)Ljava/util/stream/Stream;????elementsb8Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;
endOffsetsi1Lcom/groupbyinc/flux/common/bytes/BytesReference;bytesOut8Lcom/groupbyinc/flux/common/io/stream/BytesStreamOutput;builder?Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRefBuilder;
allNumbersZ
allStrings(Ljava/util/List;)V5?

?
doXContento(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)V3com/groupbyinc/flux/common/xcontent/XContentBuilder?startObjectI(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
??
toXContent?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
Q?	endObject7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
??field](Ljava/lang/String;Ljava/lang/Iterable;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
??printBoostAndQueryName8(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)V??
?5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;params7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;fromXContenti(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/index/query/TermsQueryBuilder;	nextToken<()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;???
END_OBJECT:Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;??	?
FIELD_NAME??	?currentName???START_ARRAY??	?+com/groupbyinc/flux/common/ParsingException?getTokenLocation8()Lcom/groupbyinc/flux/common/xcontent/XContentLocation;???.[terms] query does not support multiple fields?^(Lcom/groupbyinc/flux/common/xcontent/XContentLocation;Ljava/lang/String;[Ljava/lang/Object;)V5?
??parseValuesF(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Ljava/util/List;
START_OBJECT?	java/lang/StringBuilder
=B[terms] query does not support more than one field. Already got: [
append-(Ljava/lang/String;)Ljava/lang/StringBuilder;
] but also found []
|parseTermsLookup_(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/indices/TermsLookup;
QisValue)
BOOST_FIELD'Lcom/groupbyinc/flux/common/ParseField;	%com/groupbyinc/flux/common/ParseField match(Ljava/lang/String;)Z"#
!$
floatValue()F&'(
NAME_FIELD*	+text-?. [terms] query does not support [0[terms] unknown token [2-(Ljava/lang/Object;)Ljava/lang/StringBuilder;4
5	] after [7b[terms] query requires a field name, followed by array of terms or a document lookup specification9boost9(F)Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder;;<
=	queryNameJ(Ljava/lang/String;)Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder;?@
Aparser4Lcom/groupbyinc/flux/common/xcontent/XContentParser;FtokencurrentFieldName	END_ARRAYH?	IobjectBytesK?LO1valuegetWriteableName	doToQueryl(Lcom/groupbyinc/flux/index/query/QueryShardContext;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query;'java/lang/UnsupportedOperationExceptionSquery must be rewritten firstU
TJNo terms supplied for "XgetNameZ?
[" query.]0com/groupbyinc/flux/common/lucene/search/Queries_newMatchNoDocsQueryK(Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query;ab
`c1com/groupbyinc/flux/index/query/QueryShardContextefieldMapperF(Ljava/lang/String;)Lcom/groupbyinc/flux/index/mapper/MappedFieldType;gh
fi0com/groupbyinc/flux/index/mapper/MappedFieldTypek
termsQuery|(Ljava/util/List;Lcom/groupbyinc/flux/index/query/QueryShardContext;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query;mn
lo9[Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;q?}Os+com/groupbyinc/flux/common/lucene/BytesRefsu
toBytesRefL(Ljava/lang/Object;)Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;wx
vy>com/groupbyinc/flux/common/apache/lucene/search/TermInSetQuery{N(Ljava/lang/String;[Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;)V5}
|~filterValuescontext3Lcom/groupbyinc/flux/index/query/QueryShardContext;	fieldType2Lcom/groupbyinc/flux/index/mapper/MappedFieldType;fetchz(Lcom/groupbyinc/flux/indices/TermsLookup;Lcom/groupbyinc/flux/client/Client;Lcom/groupbyinc/flux/action/ActionListener;)V)com/groupbyinc/flux/action/get/GetRequest?index??
Q?type??
Q?id??
Q?9(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V5?
??_local?
preference?(Ljava/lang/String;)Lcom/groupbyinc/flux/action/get/GetRequest;??
??routing??
Q???
???(Lcom/groupbyinc/flux/index/query/TermsQueryBuilder;Lcom/groupbyinc/flux/indices/TermsLookup;Lcom/groupbyinc/flux/action/ActionListener;)V5?
?!com/groupbyinc/flux/client/Client?Y(Lcom/groupbyinc/flux/action/get/GetRequest;Lcom/groupbyinc/flux/action/ActionListener;)V????client#Lcom/groupbyinc/flux/client/Client;actionListenerQLcom/groupbyinc/flux/action/ActionListener;>;+Lcom/groupbyinc/flux/action/ActionListener;
getRequest+Lcom/groupbyinc/flux/action/get/GetRequest;
doHashCodejava/util/Objects?hash([Ljava/lang/Object;)I??
??doEquals6(Lcom/groupbyinc/flux/index/query/TermsQueryBuilder;)Zequals'(Ljava/lang/Object;Ljava/lang/Object;)Z??
??other	doRewritee(Lcom/groupbyinc/flux/index/query/QueryRewriteContext;)Lcom/groupbyinc/flux/index/query/QueryBuilder;java/util/function/Supplier?????,com/groupbyinc/flux/index/query/QueryBuilder?5com/groupbyinc/flux/common/apache/lucene/util/SetOnce?
?='(Ljava/lang/Object;Ljava/lang/Object;)V?lambda$doRewrite$9?(Lcom/groupbyinc/flux/common/apache/lucene/util/SetOnce;Lcom/groupbyinc/flux/client/Client;Lcom/groupbyinc/flux/action/ActionListener;)V??
??Q(Lcom/groupbyinc/flux/client/Client;Lcom/groupbyinc/flux/action/ActionListener;)V?accept?(Lcom/groupbyinc/flux/index/query/TermsQueryBuilder;Lcom/groupbyinc/flux/common/apache/lucene/util/SetOnce;)Ljava/util/function/BiConsumer;??	?3com/groupbyinc/flux/index/query/QueryRewriteContext?registerAsyncAction"(Ljava/util/function/BiConsumer;)V??
??getClass()Ljava/lang/Class;??
z??
???V(Lcom/groupbyinc/flux/common/apache/lucene/util/SetOnce;)Ljava/util/function/Supplier;??
?5?
?LLcom/groupbyinc/flux/common/apache/lucene/util/SetOnce;>;7Lcom/groupbyinc/flux/common/apache/lucene/util/SetOnce;queryRewriteContext5Lcom/groupbyinc/flux/index/query/QueryRewriteContext;9(Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder;)Z??
?
lambda$null$8u(Lcom/groupbyinc/flux/common/apache/lucene/util/SetOnce;Lcom/groupbyinc/flux/action/ActionListener;Ljava/util/List;)V??
????(Lcom/groupbyinc/flux/common/apache/lucene/util/SetOnce;Lcom/groupbyinc/flux/action/ActionListener;)Lcom/groupbyinc/flux/common/CheckedConsumer;???)com/groupbyinc/flux/action/ActionListener?	onFailure(Ljava/lang/Exception;)V????	??J(Lcom/groupbyinc/flux/action/ActionListener;)Ljava/util/function/Consumer;?wrapv(Lcom/groupbyinc/flux/common/CheckedConsumer;Ljava/util/function/Consumer;)Lcom/groupbyinc/flux/action/ActionListener;???
listenerjava/lang/Exceptionset

?
onResponse?5
x31	
java/util/Setcontains0java/lang/Number	longValue()J
 01	"java/lang/Double$valueOf&?
%'sDjava/lang/Float+(F)Ljava/lang/Float;&-
,.java/lang/Long0&?
12Jjava/lang/Integer5&?
67java/util/HashSet:java/lang/Class<java/lang/Byte>java/lang/Short@(Ljava/util/Collection;)V5B
;C
ConstantValue	SignatureCodeLocalVariableTableLineNumberTableLocalVariableTypeTable
StackMapTableb(Ljava/lang/String;Ljava/util/List;Lcom/groupbyinc/flux/indices/TermsLookup;)V,(Ljava/lang/String;Ljava/lang/Iterable<*>;)VG(Ljava/lang/String;Ljava/util/function/Supplier;>;)V
Exceptions&()Ljava/util/List;,(Ljava/lang/Iterable<*>;)Ljava/util/List<*>;((Ljava/util/List<*>;)Ljava/util/List<*>;9(Ljava/util/List<*>;)Ljava/util/List;Z(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Ljava/util/List;?(Lcom/groupbyinc/flux/indices/TermsLookup;Lcom/groupbyinc/flux/client/Client;Lcom/groupbyinc/flux/action/ActionListener;>;)VBootstrapMethods
SourceFileInnerClasses!#$E&'$()F*+,-.F/01F231F4'56GJ*+,?9?H :;'$+,I
FG57GY*?>+?D?
?FYH?K?,?-?
?FYS?K?,?-?
?FYU?K?*+?W*,??,?[?]*-?_*?a?H*Y:;Y'$Y()Y+,JY(bI2LMNPQ'S/T9V>WNXSYXZK4?MOQM?MOQOFL?5cG?*+,?
,?i??p?H :;'$(jI
cdK)?
MkM?MkMm?5qG?**+,?,?u?????????m??m?p?H *:;*'$*(?I
m)nK)?"M?M?M?Mm?5?G?**+,?,???????????m??m?p?H *:;*'$*(?I
w)xK)?"M?M?M?Mm?5?G?-*+,?",???,?????????m??m?p?H -:;-'$-(?I??)?,?K)?%M?M?M?Mm?5?G?**+,?,?Ǻ????????m??m?p?H *:;*'$*(?I
?)?K)?"M?M?M?Mm?5?G?*+,?
,?i??m?p?H :;'$(?I
??K)?
M?M?M?Mm5nG?;*?>+?D?
?FYH?K?,?
?FY޷K?*+?W*,??]*?_*?a?H ;:;;'$;(?J;(?I*
?????#?(?0?5?:?K?Mm
FM5?G}*?>*+?W*?]*?_*,?a?H :;'$-.J-/I??	????FN5?Gv.*+??*+??W*+?????Q?_*+??O?]*?a?H.:;.I??
??(?-?O?G|+*?a??Y	?
?+*?W?+*?_?+*?]??H+:;+I????"?*?KO?'?G/*?W?H:;I?(G2*?]??H:;I?FP+G/*?_?H:;I?
X?G@*?O?*?OL?/? Y?!M*?%N-?+?-?.:,?2W???,L+?[?H43)/45$68@(?;3)J*3*$67@(?;3*I"????/?6?9?;?K? '??mOFQXYGg
y*?<??A?*?D?M?Q<?"*?D?[?_?cM?Y,?f?*?D?k?Q=?
?mY?nN?pY?q::*?u?
:6*?v:?+?l?.:		?x?
	?x:
?-	?}??-??:

??
??
?????
??O?d.
????O??????:?Y??:	?!????:

?????	?::?:?!????:??????*?D?????????O?:j,:j5AFI:,75Hz8	?????
?<??
?]45	t???w????3??g???^???y3)[??R'??Jy3*Iz?	?
??"?8?ARV^	j
tw????????????)),	5)],K?
?3?=	Omp:?'?$z?x$??%
Omp:??O:?Omp::H:?Omp:::?OFRYGE	?
Y*?ưH	3)J	3*I6FS??G?D+&??W*?_?+*?W??W*?_+,??W+??W?+*?W*?]???W*+??+??W?H D:;D??D??I&	JKLM!N)P9R>SCTK)O?	??G?xLMN:8:*??Y:??)??*??:??????'+???Y*????z???L*?M?????I+?:??Y*???Y?	?+??????z???L*?N??g??\??%?*?)8??I?,?%?*?/:??3??Y*???Y?	1?????z?????Y*???Y?	3??68?????z???+???Y*??:?z????Y+,-?9?>??B??HRxCDv'$t()r+,	o?$l;E`F?iG$Jt(bI? WXY[	\_`a&b1c9d=eRhUi]jekil?p?q?r?s?t?u?v?x|D?H?]?i?q?w?K-?MOQMM?! 
?B
,7O?
G?@? Y?!L*???J?-*?MM,???Y*????z???+,?NW???+?H  O5@CD8()J8(bI"?????3?;?>?K?O?*z?
O?FTP?G-&?H:;I?QRG:?*?_?
*?a??TYV?W?*?]?*?]?<?$?Y?	Y?*?\?^???d?+*?W?jM,?
,*?]+?p?*?]?u?xN6-??-*?]?t?zS????|Y*?W-??H4t??q/?q?:;???VJ??I2???,?M?V?Z?d?q?{?????K
 ?l?r?O???G?5??Y+??+??+???????+????:,?Y*+-?????H45:;5+,5??5??"??J5??I??"?4?FU?sGN$?zY*?WSY*?]SY*?_SY*?aS???H$:;I???G?>*?W+?W???1*?]+?]???#*?_+?_???*?a+?a?????H>:;>?;I??$?2?=?K<@??G?b*?a?+*?a???*??Y*?W*?a???m?p?*?_?-??Y??M+*,???ڻY*?W,Y??W????*?H >"-?b:;b??J>"-?I??/?6?>?I?`?K	V?0D??G3	*+???H	:;I=??Gk**?_,+-??-Y??W???	?H*:;-???
?I
??
??GS
*,?+??H 
-?

?
3)I???O
??GN*?M??xY*?}??*?H45I,K@z
g0GN*??*?޹???H45IK@
TRG2*??!?H45I?
F0GN*??#*?޹???H45I?K@
??G/&?(?H)*I?
??G;*0?/?H(???I?
??G/?3?H)4Iw
?G/?8?H)?Im9<GnF?;Y?=Y?SYASY6SY1S?i?D?#?;Y?=YxSYMS?i?D??I? ?)?<?E?V?
|~??|???|~??|???|???|EIE|SWS|EjE|???|???|???|???|??FWXB
	D		!"




© 2015 - 2025 Weber Informatics LLC | Privacy Policy