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

com.groupbyinc.flux.action.bulk.TransportBulkAction.class Maven / Gradle / Ivy

There is a newer version: 198
Show newest version
????4k3com/groupbyinc/flux/action/bulk/TransportBulkAction?Lcom/groupbyinc/flux/action/support/HandledTransportAction;9com/groupbyinc/flux/action/support/HandledTransportActionTransportBulkAction.java5com/groupbyinc/flux/action/bulk/TransportBulkAction$2Ncom/groupbyinc/flux/action/bulk/TransportBulkAction$IngestBulkResponseListener	IngestBulkResponseListenerGcom/groupbyinc/flux/action/bulk/TransportBulkAction$BulkRequestModifierBulkRequestModifierCcom/groupbyinc/flux/action/bulk/TransportBulkAction$ConcreteIndicesConcreteIndicesAcom/groupbyinc/flux/action/bulk/TransportBulkAction$BulkOperation
BulkOperation5com/groupbyinc/flux/action/bulk/TransportBulkAction$18com/groupbyinc/flux/action/bulk/BulkItemResponse$Failure0com/groupbyinc/flux/action/bulk/BulkItemResponseFailure1com/groupbyinc/flux/action/DocWriteRequest$OpType*com/groupbyinc/flux/action/DocWriteRequestOpType%java/lang/invoke/MethodHandles$Lookup!java/lang/invoke/MethodHandles#LookupautoCreateIndex4Lcom/groupbyinc/flux/action/support/AutoCreateIndex;clusterService4Lcom/groupbyinc/flux/cluster/service/ClusterService;
ingestService*Lcom/groupbyinc/flux/ingest/IngestService;shardBulkAction:Lcom/groupbyinc/flux/action/bulk/TransportShardBulkAction;createIndexActionLLcom/groupbyinc/flux/action/admin/indices/create/TransportCreateIndexAction;relativeTimeProvider!Ljava/util/function/LongSupplier;ingestForwarder9Lcom/groupbyinc/flux/action/ingest/IngestActionForwarder;(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/ingest/IngestService;Lcom/groupbyinc/flux/action/bulk/TransportShardBulkAction;Lcom/groupbyinc/flux/action/admin/indices/create/TransportCreateIndexAction;Lcom/groupbyinc/flux/action/support/ActionFilters;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;Lcom/groupbyinc/flux/action/support/AutoCreateIndex;)V*Lcom/groupbyinc/flux/common/inject/Inject;"java/lang/invoke/LambdaMetafactory7metafactory?(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;9:
8;<()J>java/lang/System@nanoTimeB>
ACD	getAsLong#()Ljava/util/function/LongSupplier;FGH9(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/ingest/IngestService;Lcom/groupbyinc/flux/action/bulk/TransportShardBulkAction;Lcom/groupbyinc/flux/action/admin/indices/create/TransportCreateIndexAction;Lcom/groupbyinc/flux/action/support/ActionFilters;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;Lcom/groupbyinc/flux/action/support/AutoCreateIndex;Ljava/util/function/LongSupplier;)V4J
Kthis5Lcom/groupbyinc/flux/action/bulk/TransportBulkAction;settings.Lcom/groupbyinc/flux/common/settings/Settings;
threadPool+Lcom/groupbyinc/flux/threadpool/ThreadPool;transportService0Lcom/groupbyinc/flux/transport/TransportService;
actionFilters2Lcom/groupbyinc/flux/action/support/ActionFilters;indexNameExpressionResolverBLcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;indices:data/write/bulkY()Ljava/lang/Object;[+com/groupbyinc/flux/action/bulk/BulkRequest]()V4_
^`a/()Lcom/groupbyinc/flux/action/bulk/BulkRequest;cget()Ljava/util/function/Supplier;efg/(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/lang/String;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/action/support/ActionFilters;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;Ljava/util/function/Supplier;)V4i
jjava/util/ObjectslrequireNonNull&(Ljava/lang/Object;)Ljava/lang/Object;no
mp()	r*+	t,-	v./	x&'	z01	|7com/groupbyinc/flux/action/ingest/IngestActionForwarder~3(Lcom/groupbyinc/flux/transport/TransportService;)V4?
?23	?2com/groupbyinc/flux/cluster/service/ClusterService?addStateApplier4(Lcom/groupbyinc/flux/cluster/ClusterStateApplier;)V??
??	doExecute[(Lcom/groupbyinc/flux/action/bulk/BulkRequest;Lcom/groupbyinc/flux/action/ActionListener;)V'java/lang/UnsupportedOperationException?-task parameter is required for this operation?(Ljava/lang/String;)V4?
??bulkRequest-Lcom/groupbyinc/flux/action/bulk/BulkRequest;listener[Lcom/groupbyinc/flux/action/ActionListener;+Lcom/groupbyinc/flux/action/ActionListener;{(Lcom/groupbyinc/flux/tasks/Task;Lcom/groupbyinc/flux/action/bulk/BulkRequest;Lcom/groupbyinc/flux/action/ActionListener;)V0com/groupbyinc/flux/index/IndexNotFoundException?hasIndexRequestsWithPipelines()Z??
^?	localNode2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;??
??.com/groupbyinc/flux/cluster/node/DiscoveryNode?isIngestNode??
??processBulkIndexIngestRequest??
?*com/groupbyinc/flux/action/bulk/BulkAction?INSTANCE,Lcom/groupbyinc/flux/action/bulk/BulkAction;??	??forwardIngestRequest{(Lcom/groupbyinc/flux/action/Action;Lcom/groupbyinc/flux/action/ActionRequest;Lcom/groupbyinc/flux/action/ActionListener;)V??
?relativeTime?>
?6com/groupbyinc/flux/common/util/concurrent/AtomicArray?requestsLjava/util/List;??	^?java/util/List?size()I????(I)V4?
??needToCheck??
?stream()Ljava/util/stream/Stream;????(Ljava/lang/Object;)Z?lambda$doExecute$0/(Lcom/groupbyinc/flux/action/DocWriteRequest;)Z??
???test ()Ljava/util/function/Predicate;???java/util/stream/Stream?filter9(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;????oindex()Ljava/lang/String;???	?@(Lcom/groupbyinc/flux/action/DocWriteRequest;)Ljava/lang/String;?apply()Ljava/util/function/Function;???map8(Ljava/util/function/Function;)Ljava/util/stream/Stream;????java/util/stream/Collectors?toSet()Ljava/util/stream/Collector;??
??collect0(Ljava/util/stream/Collector;)Ljava/lang/Object;????
java/util/Set?java/util/HashMap?
?`java/util/HashSet
`state,()Lcom/groupbyinc/flux/cluster/ClusterState;
?iterator()Ljava/util/Iterator;?	com/groupbyinc/flux/tasks/Task)com/groupbyinc/flux/action/ActionListener

java/util/Map(com/groupbyinc/flux/cluster/ClusterStatejava/util/IteratorhasNext?next[java/lang/StringshouldAutoCreate?(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/ClusterState;)Z
put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;!"#add%??&isEmpty(??)executeBulk?(Lcom/groupbyinc/flux/tasks/Task;Lcom/groupbyinc/flux/action/bulk/BulkRequest;JLcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/common/util/concurrent/AtomicArray;Ljava/util/Map;)V+,
-)java/util/concurrent/atomic/AtomicInteger/??
0?timeout-()Lcom/groupbyinc/flux/common/unit/TimeValue;34
^55(Lcom/groupbyinc/flux/action/bulk/TransportBulkAction;Ljava/util/concurrent/atomic/AtomicInteger;Lcom/groupbyinc/flux/tasks/Task;Lcom/groupbyinc/flux/action/bulk/BulkRequest;JLcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/common/util/concurrent/AtomicArray;Ljava/util/Map;Ljava/lang/String;)V47
8createIndexk(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/TimeValue;Lcom/groupbyinc/flux/action/ActionListener;)V:;
<java/util/Collections>emptyMap()Ljava/util/Map;@A
?BZe2Lcom/groupbyinc/flux/index/IndexNotFoundException;Ljava/lang/String;counter+Ljava/util/concurrent/atomic/AtomicInteger;indices#Ljava/util/Set;Ljava/util/Set;indicesThatCannotBeCreatedULjava/util/Map;Ljava/util/Map;autoCreateIndices*Lcom/groupbyinc/flux/cluster/ClusterState;task Lcom/groupbyinc/flux/tasks/Task;	startTimeJ	responseslLcom/groupbyinc/flux/common/util/concurrent/AtomicArray;8Lcom/groupbyinc/flux/common/util/concurrent/AtomicArray;2com/groupbyinc/flux/action/support/AutoCreateIndexY
Z?
ZBcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest]
^`X(Ljava/lang/String;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest;?`
^aauto(bulk api)ccausee`
^fmasterNodeTimeoutj(Lcom/groupbyinc/flux/common/unit/TimeValue;)Lcom/groupbyinc/flux/action/support/master/MasterNodeRequest;hi
^jJcom/groupbyinc/flux/action/admin/indices/create/TransportCreateIndexActionlexecutew(Lcom/groupbyinc/flux/action/ActionRequest;Lcom/groupbyinc/flux/action/ActionListener;)Lcom/groupbyinc/flux/tasks/Task;no
mp+Lcom/groupbyinc/flux/common/unit/TimeValue;rLcom/groupbyinc/flux/action/ActionListener;createIndexRequestDLcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest; setResponseFailureIfIndexMatches?(Lcom/groupbyinc/flux/common/util/concurrent/AtomicArray;ILcom/groupbyinc/flux/action/DocWriteRequest;Ljava/lang/String;Ljava/lang/Exception;)Zequalsx?
yopType5()Lcom/groupbyinc/flux/action/DocWriteRequest$OpType;{|}type??id???N(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;)V4?
?q(ILcom/groupbyinc/flux/action/DocWriteRequest$OpType;Lcom/groupbyinc/flux/action/bulk/BulkItemResponse$Failure;)V4?
?set(ILjava/lang/Object;)V??
??idxIrequest,Lcom/groupbyinc/flux/action/DocWriteRequest;Ljava/lang/Exception;buildTookInMillis(J)Jjava/util/concurrent/TimeUnit?NANOSECONDSLjava/util/concurrent/TimeUnit;??	??toMillis??
??startTimeNanos?(Lcom/groupbyinc/flux/action/bulk/TransportBulkAction;Lcom/groupbyinc/flux/tasks/Task;Lcom/groupbyinc/flux/action/bulk/BulkRequest;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/common/util/concurrent/AtomicArray;JLjava/util/Map;)V4?
?run?_
?java/util/function/LongSupplier?F>??0(Lcom/groupbyinc/flux/action/bulk/BulkRequest;)V4?

?(com/groupbyinc/flux/ingest/IngestService?getPipelineExecutionService7()Lcom/groupbyinc/flux/ingest/PipelineExecutionService;??
??&lambda$processBulkIndexIngestRequest$1_(Lcom/groupbyinc/flux/action/bulk/TransportBulkAction$BulkRequestModifier;)Ljava/util/Iterator;??
??_(Lcom/groupbyinc/flux/action/bulk/TransportBulkAction$BulkRequestModifier;)Ljava/lang/Iterable;??'(Ljava/lang/Object;Ljava/lang/Object;)V?&lambda$processBulkIndexIngestRequest$3?(Lcom/groupbyinc/flux/action/bulk/TransportBulkAction$BulkRequestModifier;Lcom/groupbyinc/flux/action/index/IndexRequest;Ljava/lang/Exception;)V??
??G(Lcom/groupbyinc/flux/action/index/IndexRequest;Ljava/lang/Exception;)V?accept?(Lcom/groupbyinc/flux/action/bulk/TransportBulkAction;Lcom/groupbyinc/flux/action/bulk/TransportBulkAction$BulkRequestModifier;)Ljava/util/function/BiConsumer;???(Ljava/lang/Object;)V?&lambda$processBulkIndexIngestRequest$4?(Lcom/groupbyinc/flux/action/ActionListener;JLcom/groupbyinc/flux/action/bulk/TransportBulkAction$BulkRequestModifier;Lcom/groupbyinc/flux/tasks/Task;Ljava/lang/Exception;)V??
??(Ljava/lang/Exception;)V??(Lcom/groupbyinc/flux/action/bulk/TransportBulkAction;Lcom/groupbyinc/flux/action/ActionListener;JLcom/groupbyinc/flux/action/bulk/TransportBulkAction$BulkRequestModifier;Lcom/groupbyinc/flux/tasks/Task;)Ljava/util/function/Consumer;???3com/groupbyinc/flux/ingest/PipelineExecutionService?executeBulkRequestS(Ljava/lang/Iterable;Ljava/util/function/BiConsumer;Ljava/util/function/Consumer;)V??
??originalingestStartTimeInNanosbulkRequestModifierILcom/groupbyinc/flux/action/bulk/TransportBulkAction$BulkRequestModifier;X(Lcom/groupbyinc/flux/action/ActionRequest;Lcom/groupbyinc/flux/action/ActionListener;)V??
?x(Lcom/groupbyinc/flux/tasks/Task;Lcom/groupbyinc/flux/action/ActionRequest;Lcom/groupbyinc/flux/action/ActionListener;)V??
?logger!Lorg/apache/logging/log4j/Logger;??	?-failed to execute pipeline for a bulk request?org/apache/logging/log4j/Logger?error*(Ljava/lang/String;Ljava/lang/Throwable;)V????	onFailure???getBulkRequest?c

?wrapActionListenerIfNeededY(JLcom/groupbyinc/flux/action/ActionListener;)Lcom/groupbyinc/flux/action/ActionListener;??

?()Ljava/util/List;??
^??),com/groupbyinc/flux/action/bulk/BulkResponse?7([Lcom/groupbyinc/flux/action/bulk/BulkItemResponse;J)V4

onResponse?ingestTookInMillisactionListener	exception,()Lorg/apache/logging/log4j/message/Message;
&lambda$processBulkIndexIngestRequest$2[(Lcom/groupbyinc/flux/action/index/IndexRequest;)Lorg/apache/logging/log4j/message/Message;
`(Lcom/groupbyinc/flux/action/index/IndexRequest;)Lorg/apache/logging/log4j/util/MessageSupplier;edebugG(Lorg/apache/logging/log4j/util/MessageSupplier;Ljava/lang/Throwable;)V?markCurrentItemAsFailed?

indexRequest/Lcom/groupbyinc/flux/action/index/IndexRequest;5org/apache/logging/log4j/message/ParameterizedMessage7failed to execute pipeline [{}] for document [{}/{}/{}]java/lang/Object!-com/groupbyinc/flux/action/index/IndexRequest#getPipeline%?
$&
$?
$?
$?((Ljava/lang/String;[Ljava/lang/Object;)V4+
,DELETE3Lcom/groupbyinc/flux/action/DocWriteRequest$OpType;./	0versionType)()Lcom/groupbyinc/flux/index/VersionType;234%com/groupbyinc/flux/index/VersionType6EXTERNAL'Lcom/groupbyinc/flux/index/VersionType;89	7:EXTERNAL_GTE<9	7=
access$000?(Lcom/groupbyinc/flux/action/bulk/TransportBulkAction;Lcom/groupbyinc/flux/common/util/concurrent/AtomicArray;ILcom/groupbyinc/flux/action/DocWriteRequest;Ljava/lang/String;Ljava/lang/Exception;)Zvw
Ax0x1x2x3x4x5
access$100k(Lcom/groupbyinc/flux/action/bulk/TransportBulkAction;)Lcom/groupbyinc/flux/cluster/service/ClusterService;
access$200X(Lcom/groupbyinc/flux/action/bulk/TransportBulkAction;)Lorg/apache/logging/log4j/Logger;
access$300b(Lcom/groupbyinc/flux/action/bulk/TransportBulkAction;)Lcom/groupbyinc/flux/threadpool/ThreadPool;QR	O
access$400y(Lcom/groupbyinc/flux/action/bulk/TransportBulkAction;)Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;WX	S
access$5009(Lcom/groupbyinc/flux/action/bulk/TransportBulkAction;J)J??
W
access$900q(Lcom/groupbyinc/flux/action/bulk/TransportBulkAction;)Lcom/groupbyinc/flux/action/bulk/TransportShardBulkAction;access$1000CodeLocalVariableTableLineNumberTableRuntimeVisibleAnnotationsLocalVariableTypeTable	Signature?(Lcom/groupbyinc/flux/action/bulk/BulkRequest;Lcom/groupbyinc/flux/action/ActionListener;)V
StackMapTable?(Lcom/groupbyinc/flux/tasks/Task;Lcom/groupbyinc/flux/action/bulk/BulkRequest;Lcom/groupbyinc/flux/action/ActionListener;)V?(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/TimeValue;Lcom/groupbyinc/flux/action/ActionListener;)V?(Lcom/groupbyinc/flux/common/util/concurrent/AtomicArray;ILcom/groupbyinc/flux/action/DocWriteRequest;Ljava/lang/String;Ljava/lang/Exception;)Zm(Lcom/groupbyinc/flux/tasks/Task;Lcom/groupbyinc/flux/action/bulk/BulkRequest;JLcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/common/util/concurrent/AtomicArray;Ljava/util/Map;)VBootstrapMethods
SourceFileInnerClasses!&'()*+,-./012345\?*+,-	
?I?L?]pMNOPQRST()*+,-./UVWX	&'
^
ej_64J\R*+Z,-	?h?k?qW*?s*?u*?w*?y*
?{*?}*?Y-????*?????]zRMNROPRQRRSTR()R*+R,-R./RUVRWX	R&'
R01^.qrst$u*v0w6x<yHzQ{??\Z
??Y????] 
MN
??
??`
??^ab??\g[,???'*?s?????
*+,-???*????,-???*??7??Y,??????:*?ʙ,??????????????????:??Y??:?Y?:	*?s?:
?
:?????:*
? 6
?:6
?$W
?
	?'W???	?*?*+,-?.?T?0Y	?1?2:	?
:??1??:
*
,?6?Y*+,-
?9?=??˧*+,-?C?.?????]??D
?EF?D
?-?G'?G
AHIt?JL}?MO??PL	??Q
[MN[RS[??[??1*TUCVX`4t?JK}?MN??PK	[??CVW^?!????*?+?1?C?J?X?b?g?t?}????????????????????????????'?F?I?L?Z?c?
?l^????"^????????0?7^?
ad??\2*?{?[?]MN^?\H
*?{+,?\?] 
MN
?G
Q^?:;\?,?^Y?_:+?bWd?gW,?kW*?y-?qW?]4,MN,?G,3r,??	#tu`,?s^?	??? ?+?aevw\?@-???z?3+?Y-?~?Y-??-??-??????????]>@MN@VX@??@??@?G@E?`@VW^??<?>?c>af??\A
??*??e???]
MN
?U^?+,\?
?Y*+,!?????]HMNRS???U??VXMO` ??VWMN^
??ag?>\4
*?}???]
MN^???\?	5?D7?
Y,??:*?u????*??*-+???ڱ]>5MN5RS5??5??0?U&??`5??^???4adD??\4
*+?^,??]
MN^UD??\5*+,?^-??]MN^U??\0j?*?????+???N???D e??7??:	+??:
	?????
?Y?	???
*	
??]\	+>U27??	<-?
jMNj??j?Uj??jRSj	?`<-?
^*
????+?2?<?I?_ic?@^?	??\f*??,?-?+-??]*MN??	?^???

\]+?Y ?"Y*?'SY*?(SY*?)SY*?*S?-?]+^??*?
??\,*?]??^?
??\l**?~?1?*?5?;?*?5?>???]*??^?
??)?c$@?@\h*+-?B?]>CNDXE?F?GGH?^UIJ\/*?s?]CN^UKL\/*??]CN^UMN\/*?P?]CN^UQR\/*?T?]CN^UUV\:*?X?]CNDU^UYZ\/*?w?]CN^U[L\/*??]CN^UhR=?E?=\bd=???=???=???=???=???=aijJ	


	 @"$%




© 2015 - 2024 Weber Informatics LLC | Privacy Policy