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

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

There is a newer version: 59
Show newest version
????44com/groupbyinc/flux/index/query/GeoShapeQueryBuildernLcom/groupbyinc/flux/index/query/AbstractQueryBuilder;4com/groupbyinc/flux/index/query/AbstractQueryBuilderGeoShapeQueryBuilder.java6com/groupbyinc/flux/index/query/GeoShapeQueryBuilder$26com/groupbyinc/flux/index/query/GeoShapeQueryBuilder$1	Dcom/groupbyinc/flux/common/apache/lucene/search/BooleanQuery$Builder;strategy0Lcom/groupbyinc/flux/common/geo/SpatialStrategy;indexedShapeIdindexedShapeTypeindexedShapeIndexindexedShapePathindexedShapeRoutingrelationignoreUnmappedK(Ljava/lang/String;Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder;)Vo(Ljava/lang/String;Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder;Ljava/lang/String;Ljava/lang/String;)VVX
Ythis6Lcom/groupbyinc/flux/index/query/GeoShapeQueryBuilder;9(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V4com/groupbyinc/flux/common/geo/builders/ShapeBuilder^()VV`
aQ/	cR/	e89	gT9	iU;	k"java/lang/IllegalArgumentExceptionmfieldName is requiredo(Ljava/lang/String;)VVq
nrjava/lang/StringtEeither shapeBytes or indexedShapeId and indexedShapeType are requiredv;indexedShapeType is required if indexedShapeId is specifiedxH/	z6I	|O/	~P/	?JK	?V(Ljava/lang/String;Ljava/util/function/Supplier;Ljava/lang/String;Ljava/lang/String;)V5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Vjava/io/IOException?V?
?0com/groupbyinc/flux/common/io/stream/StreamInput?
readString()Ljava/lang/String;??
??readBoolean()Z??
??readNamedWriteableH(Ljava/lang/Class;)Lcom/groupbyinc/flux/common/io/stream/NamedWriteable;??
??readOptionalString??
??
getVersion()Lcom/groupbyinc/flux/Version;??
??com/groupbyinc/flux/Version?V_6_4_0Lcom/groupbyinc/flux/Version;??	??	onOrAfter (Lcom/groupbyinc/flux/Version;)Z??
??S/	?,com/groupbyinc/flux/common/geo/ShapeRelation?readFromStreamb(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/common/geo/ShapeRelation;??
??"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;??
???F(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Ljava/lang/Object;?.com/groupbyinc/flux/common/geo/SpatialStrategy?d(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/common/geo/SpatialStrategy;??
????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;??
??MN	?in2Lcom/groupbyinc/flux/common/io/stream/StreamInput;	doWriteTo6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)Vjava/lang/IllegalStateException?Lsupplier must be null, can't serialize suppliers, missing a rewriteAndFetch??
?r1com/groupbyinc/flux/common/io/stream/StreamOutput?writeString?q
??writeBoolean(Z)V??
??writeNamedWriteable8(Lcom/groupbyinc/flux/common/io/stream/NamedWriteable;)V??
??writeOptionalString?q
??
??9indexed shape routing cannot be serialized to older nodes?writeTo??
??writeOptionalWriteable3(Lcom/groupbyinc/flux/common/io/stream/Writeable;)V??
??out3Lcom/groupbyinc/flux/common/io/stream/StreamOutput;hasShape8()Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder;h(Lcom/groupbyinc/flux/common/geo/SpatialStrategy;)Lcom/groupbyinc/flux/index/query/GeoShapeQueryBuilder;TERM?N	??
INTERSECTS?9	??java/lang/StringBuilder?
?a
strategy [?append-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
?getStrategyName?
?] only supports relation [getRelationName?
?] found relation [
]toString?
?2()Lcom/groupbyinc/flux/common/geo/SpatialStrategy;J(Ljava/lang/String;)Lcom/groupbyinc/flux/index/query/GeoShapeQueryBuilder;f(Lcom/groupbyinc/flux/common/geo/ShapeRelation;)Lcom/groupbyinc/flux/index/query/GeoShapeQueryBuilder;No Shape Relation definedcurrent strategy [0()Lcom/groupbyinc/flux/common/geo/ShapeRelation;9(Z)Lcom/groupbyinc/flux/index/query/GeoShapeQueryBuilder;	doToQueryl(Lcom/groupbyinc/flux/index/query/QueryShardContext;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query;'java/lang/UnsupportedOperationExceptionquery must be rewritten first
r1com/groupbyinc/flux/index/query/QueryShardContext!fieldMapperF(Ljava/lang/String;)Lcom/groupbyinc/flux/index/mapper/MappedFieldType;#$
"%@com/groupbyinc/flux/common/apache/lucene/search/MatchNoDocsQuery'
(a0com/groupbyinc/flux/index/mapper/MappedFieldType*3com/groupbyinc/flux/index/query/QueryShardException, failed to find geo_shape field [.java/lang/Object0[(Lcom/groupbyinc/flux/index/query/QueryShardContext;Ljava/lang/String;[Ljava/lang/Object;)VV2
-3typeName5?
+6equals(Ljava/lang/Object;)Z89
u:Field [<*] is not of type [geo_shape] but of type [>defaultStrategyN()Lcom/groupbyinc/flux/common/apache/lucene/spatial/prefix/PrefixTreeStrategy;@A
BresolveStrategy~(Lcom/groupbyinc/flux/common/geo/SpatialStrategy;)Lcom/groupbyinc/flux/common/apache/lucene/spatial/prefix/PrefixTreeStrategy;DE
FJcom/groupbyinc/flux/common/apache/lucene/spatial/prefix/PrefixTreeStrategyHScom/groupbyinc/flux/common/apache/lucene/spatial/prefix/RecursivePrefixTreeStrategyJDISJOINTL9	?M
a2com/groupbyinc/flux/index/query/ExistsQueryBuilderP	newFilter~(Lcom/groupbyinc/flux/index/query/QueryShardContext;Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query;RS
QTgetArgs?(Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder;Lcom/groupbyinc/flux/common/geo/ShapeRelation;)Lcom/groupbyinc/flux/common/apache/lucene/spatial/query/SpatialArgs;VW
X	makeQuery}(Lcom/groupbyinc/flux/common/apache/lucene/spatial/query/SpatialArgs;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query;Z[
I\MUSTELcom/groupbyinc/flux/common/apache/lucene/search/BooleanClause$Occur;^_	%`add?(Lcom/groupbyinc/flux/common/apache/lucene/search/Query;Lcom/groupbyinc/flux/common/apache/lucene/search/BooleanClause$Occur;)Lcom/groupbyinc/flux/common/apache/lucene/search/BooleanQuery$Builder;bc
dMUST_NOTf_	%gBcom/groupbyinc/flux/common/apache/lucene/search/ConstantScoreQueryibuild@()Lcom/groupbyinc/flux/common/apache/lucene/search/BooleanQuery;kl
m:(Lcom/groupbyinc/flux/common/apache/lucene/search/Query;)VVo
jp5com/groupbyinc/flux/common/apache/lucene/search/QueryrboolFLcom/groupbyinc/flux/common/apache/lucene/search/BooleanQuery$Builder;exists7Lcom/groupbyinc/flux/common/apache/lucene/search/Query;
intersectsquerycontext3Lcom/groupbyinc/flux/index/query/QueryShardContext;shapeToQuery	fieldType2Lcom/groupbyinc/flux/index/mapper/MappedFieldType;shapeFieldTypeHLcom/groupbyinc/flux/index/mapper/GeoShapeFieldMapper$GeoShapeFieldType;LLcom/groupbyinc/flux/common/apache/lucene/spatial/prefix/PrefixTreeStrategy;fetch?(Lcom/groupbyinc/flux/client/Client;Lcom/groupbyinc/flux/action/get/GetRequest;Ljava/lang/String;Lcom/groupbyinc/flux/action/ActionListener;)V1com/groupbyinc/flux/common/geo/ShapesAvailability?
JTS_AVAILABLE?;	??JTS not available?_local?)com/groupbyinc/flux/action/get/GetRequest?
preference?(Ljava/lang/String;)Lcom/groupbyinc/flux/action/get/GetRequest;??
???(Lcom/groupbyinc/flux/index/query/GeoShapeQueryBuilder;Lcom/groupbyinc/flux/action/get/GetRequest;Ljava/lang/String;Lcom/groupbyinc/flux/action/ActionListener;)VV?

?!com/groupbyinc/flux/client/Client?getY(Lcom/groupbyinc/flux/action/get/GetRequest;Lcom/groupbyinc/flux/action/ActionListener;)V????client#Lcom/groupbyinc/flux/client/Client;
getRequest+Lcom/groupbyinc/flux/action/get/GetRequest;pathlistenercLcom/groupbyinc/flux/action/ActionListener;+Lcom/groupbyinc/flux/action/ActionListener;5$SwitchMap$org$elasticsearch$common$geo$ShapeRelation[I??	?ordinal()I??
??Bcom/groupbyinc/flux/common/apache/lucene/spatial/query/SpatialArgs?Gcom/groupbyinc/flux/common/apache/lucene/spatial/query/SpatialOperation?IsDisjointToILcom/groupbyinc/flux/common/apache/lucene/spatial/query/SpatialOperation;??	??*()Lorg/locationtech/spatial4j/shape/Shape;k?
_?t(Lcom/groupbyinc/flux/common/apache/lucene/spatial/query/SpatialOperation;Lorg/locationtech/spatial4j/shape/Shape;)VV?
??
Intersects??	??IsWithin??	??Contains??	??invalid relation [?-(Ljava/lang/Object;)Ljava/lang/StringBuilder;??
??
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;??
???>	?%com/groupbyinc/flux/common/ParseField?getPreferredName??
??field[(Ljava/lang/String;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;??
_?A>	?B>	?C>	?D>	?E>	?F>	?	endObject7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
??@>	?G>	?J(Ljava/lang/String;Z)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
??printBoostAndQueryName8(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)V??
?builder5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;params7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;fromXContentl(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/index/query/GeoShapeQueryBuilder;	nextToken<()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;
END_OBJECT:Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;		

FIELD_NAME		
currentName?START_OBJECT		+com/groupbyinc/flux/common/ParsingExceptiongetTokenLocation8()Lcom/groupbyinc/flux/common/xcontent/XContentLocation;$[geo_shape] point specified twice. [^(Lcom/groupbyinc/flux/common/xcontent/XContentLocation;Ljava/lang/String;[Ljava/lang/Object;)VV
getDeprecationHandler:()Lcom/groupbyinc/flux/common/xcontent/DeprecationHandler; !"matchM(Ljava/lang/String;Lcom/groupbyinc/flux/common/xcontent/DeprecationHandler;)Z$%
?&2com/groupbyinc/flux/common/geo/parsers/ShapeParser(parsel(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder;*+),text.?/
fromStringD(Ljava/lang/String;)Lcom/groupbyinc/flux/common/geo/SpatialStrategy;12
?3Unknown strategy [5 ]7getRelationByNameB(Ljava/lang/String;)Lcom/groupbyinc/flux/common/geo/ShapeRelation;9:
?;Unknown shape operation [=isValue??
@eo_shape] unknown token [B	] after [D$[geo_shape] query does not support [FBOOST_FIELDH>	I
floatValue()FKLM
NAME_FIELDO>	PbooleanValueR?SVW
UV]
WQ
YR
[S
]T
_M?
a	queryNameJ(Ljava/lang/String;)Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder;cd
eboost9(F)Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder;gh
iU
kstrategyNameparser4Lcom/groupbyinc/flux/common/xcontent/XContentParser;
shapeRelationidtypeindex	shapePathshapeRoutingtokencurrentFieldNameFdoEquals9(Lcom/groupbyinc/flux/index/query/GeoShapeQueryBuilder;)Zjava/util/Objects{'(Ljava/lang/Object;Ljava/lang/Object;)Z8}
|~java/lang/Boolean?valueOf(Z)Ljava/lang/Boolean;??
??other
doHashCodehash([Ljava/lang/Object;)I??
|?getWriteableName	doRewritee(Lcom/groupbyinc/flux/index/query/QueryRewriteContext;)Lcom/groupbyinc/flux/index/query/QueryBuilder;java/util/function/Supplier?()Ljava/lang/Object;????,com/groupbyinc/flux/index/query/QueryBuilder?5com/groupbyinc/flux/common/apache/lucene/util/SetOnce?
?a'(Ljava/lang/Object;Ljava/lang/Object;)V?lambda$doRewrite$1?(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/GeoShapeQueryBuilder;Lcom/groupbyinc/flux/common/apache/lucene/util/SetOnce;)Ljava/util/function/BiConsumer;???3com/groupbyinc/flux/index/query/QueryRewriteContext?registerAsyncAction"(Ljava/util/function/BiConsumer;)V??
??requireNonNull&(Ljava/lang/Object;)Ljava/lang/Object;??
|??
????V(Lcom/groupbyinc/flux/common/apache/lucene/util/SetOnce;)Ljava/util/function/Supplier;???V?
?oLcom/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yz
?
?Wrouting??
??(Ljava/lang/Object;)V?lambda$doRewrite$0?(Lcom/groupbyinc/flux/common/apache/lucene/util/SetOnce;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder;)V??
??9(Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder;)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;??????
?java/lang/Exception?set??
??
onResponse????((Ljava/lang/String;[Ljava/lang/String;)VV?
??MT
indexed_shape?qrs??ignore_unmapped?
ConstantValue	SignatureCodeLocalVariableTableLineNumberTable
StackMapTableLocalVariableTypeTable?(Ljava/lang/String;Ljava/util/function/Supplier;Ljava/lang/String;Ljava/lang/String;)V
Exceptions?(Lcom/groupbyinc/flux/client/Client;Lcom/groupbyinc/flux/action/get/GetRequest;Ljava/lang/String;Lcom/groupbyinc/flux/action/ActionListener;)VBootstrapMethods
SourceFileInnerClasses!./?12/?45/?789:;?<=>?>@>A>B>C>D>E>F>G>H/6IJK?LMNO/P/Q/R/S/T9U;#VW?K	*+,?Z?? 	[\	H/	6I?
qrV]?X*+?_,-?Z??*[\H/O/P/?
??VX?j*?b*4?d*7?f*?h?j*?l+?
?nYp?s?,?-?
?nYw?s?-??
?nYy?s?*+?{*,?}*-?*??*????4j[\jH/j6IjO/jP/?F?_
`ce? ?*?2?<?E?O?T?Y?^?d?i???*u_uuV???7*?b*4?d*7?f*?h?j*?l*+?{*?}*,??*-?*????47[\7H/7JK7O/7P/?7JL?.?_
`ce?!?&?+?0?6???V??Q?*+??*4?d*7?f*?h?j*?l*+???{+???*+_???_?}*?*???E*?}*+???*+????*+???d*+???f+???????*+?????*??*+???j*+????????*+???l*?????[\????^?_`ce?%?,?9?>?F?K?S?[?c?k?x???????????????F?<????4?*???
??Yҷӿ+*?{??*?}??=+???+*?}??L+*???+*????+*?d??+*?f??+??????+*????*???
??Y?ӿ*?j+??+*?ʶ?+*?l?ܱ? ?[\???&v?;?N????&?+?/?:?B?J?R?Z?g?r?y??????????@?7?H??/*?{??[\??6??/*?}??[\??O??/*???[\??P??/*????[\??M???_+?W+???P*?j???F?nY??Y????+??????	??*?j?	?
???s?*+??*??_[\_MN???5?X?]???XM?/*?ʰ?[\?Q??*+?d*??[\Q/?
Q??/*?d??[\?R??*+?f*??[\R/?
#$R??/*?f??[\?+S??*+??*??[\S/?
56S??/*????[\??T??r+??nY?s?*???X*?ʲ??N+???G?nY??Y???*?ʶ?????	??+?	?
???s?*+?j*??r[\rT9?IJL'MKNkPpQ??[T?/*?j??[\?XU??*?l*??[\U;?
abU??/*?l??[\?k?P
9*?}?
*????Y? ?*?}M+*?{?&N-?<*?l??(Y?)??-Y+??Y??/?*?{?
???1?4?-?71?;?:?-Y+??Y??=?*?{???-?7?
???1?4?-?:?C:*???*?ʶG:?K?U*?j?N?K?Y?O:+*?{?U:,???Y?]:	?a?eW	?h?eW?jY?n?q:??jY,*?j?Y?]?q:??p?<tu?2vw?$xw	yw9[\9z{|I'}~?????M?6yw?fpqst'u+v2w:yd{p|?}????????????????????? ?6??#
? _+)?B?I?Y?s????-?????Y??ӿ,???W+,?
Y*,-??????4-[\-??-??-?/-???-???????,???	VW?????+??.?\ />M??Y??*???????Y??*???????Y??*???????Y??*??????nY??Y??Ķ+??
???s???6I?T9??(?7?F?U?d??(?????+1??W+*?{??W*???+?Ѷ?*?ʶ??W*?}?+?ֶܶ?W*?}+,??W?o+??ֶϲ??*??ڲ??*????W*?d?+???*?d??W*?f?+???*?f??W*???+???*????W+??W*?j?+????*?j?	??W+??W+????*?l??W*+??+??W?? ?[\?????b????)?0?;?H?U?b?m?t??????????????	??
??	):?	?.?LMN::::::	:8:
6*?Y:
???
??*?:???
??G+?0?Y*???Y????
???1??L*?Y:
????
????*?:*?:
??*?#?'?*?-:??²?*?#?'?E*?0:?4N-?0?Y*???Y??6??8???1????o??*?#?'?B*?0??*?0?8???1????*?#?'??*?Y:
????
??*?:???
?A????*?#?'?*?0:?????*?#?'?*?0:?????*?#?'?*?0:?????*?#?'?*?0:??i??*?#?'??X*?0:	??M?Y*???Y??C?
??E??
???1???Y*???Y??G??
???1??
?A????J*?#?'?*?N8??q?Q*?#?'?*?0:
??U??*?#?'?*?T6??9?Y*???Y??G??
???1????Y+?V:??Y+?X:??ZW??\W	?	?^W,?
,?`W-?
-?bW
?
?fW?jW?lW????7m/,?\?no?H/?p9?MN	?6I?q/?r/?s/?t/?u/	-mv	
w/|gx!yc/
$vU;=]?\?:N	! $"3#;$F%N&R'*?+?,?-?.?/?0?1?2?3?4?57'8195:f<w=?>???@?A?B?C?D?E?F?GHI"J-MeR?W?X?Y?Z?[?\?]?_e f/h=jBkJmOnWp\qdshtovswzyz?|?}?~???$u??_uuuuuuu?!u??_uuuuuuu8?@?O?O!#7,#,?


?yz??*?{+?{???*?+????*?d+?d??}*?f+?f??o*??+????a*??+????S*?j+?j??E*?}+?}??7*??+????)*??+?ʸ?*?l??+?l????????[\??\?2??$?2?@?N?\?j?x??????????@????^?1Y*?{SY*?SY*?dSY*?fSY*??SY*??SY*?jSY*?}SY*??SY	*?l??SY
*??S????^[\??N?Z????-1??[\??????*???9*?????*?(?Y*?{*?????_?V*?j?`*?ʶb?*?}?C??Y??M+*,?????Y*?{,Y??W??*?*????*?j?`*?ʶb?*?? L8J??[\????L8J??6
???#?9?<?=?D?L?W????????d??F?Dy??3	*+?????	[\?=????@??Y*?d*??*???:*????W*,*?f+-??-Y??W???޷??4@[\@J?@??@??+??????0?9???
???S
*,??+???? 
J?
??
?I??????`??????h??Y7?u??ܻ?Y??u??ѻ?Y??u?????Y??u????Y??u????Y??u????Y??u????Y??u????Y??u????Y??u?????.BIJ'K8LIMZNkO|P?Q?R4?????????????????????J	
		D	 "#	%'(@	*,-




© 2015 - 2025 Weber Informatics LLC | Privacy Policy