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

com.groupbyinc.flux.cluster.routing.OperationRouting.class Maven / Gradle / Ivy

There is a newer version: 59
Show newest version
????3?4com/groupbyinc/flux/cluster/routing/OperationRouting6com/groupbyinc/flux/common/component/AbstractComponentOperationRouting.java6com/groupbyinc/flux/cluster/routing/OperationRouting$1awarenessAllocationDeciderSLcom/groupbyinc/flux/cluster/routing/allocation/decider/AwarenessAllocationDecider;
EMPTY_ROUTINGLjava/util/Map;FLjava/util/Map;>;?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/cluster/routing/allocation/decider/AwarenessAllocationDecider;)V*Lcom/groupbyinc/flux/common/inject/Inject;1(Lcom/groupbyinc/flux/common/settings/Settings;)V

		this6Lcom/groupbyinc/flux/cluster/routing/OperationRouting;settings.Lcom/groupbyinc/flux/common/settings/Settings;indexShards?(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/ShardIterator;%Lcom/groupbyinc/flux/common/Nullable;shards?(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;
:com/groupbyinc/flux/cluster/routing/IndexShardRoutingTable shardsIt5()Lcom/groupbyinc/flux/cluster/routing/ShardIterator;"#
!$clusterState*Lcom/groupbyinc/flux/cluster/ClusterState;indexLjava/lang/String;typeidrouting	getShards?(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/ShardIterator;(com/groupbyinc/flux/cluster/ClusterState/nodes3()Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;12
03/com/groupbyinc/flux/cluster/node/DiscoveryNodes5localNodeId()Ljava/lang/String;78
69preferenceActiveShardIterator?(Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;Ljava/lang/String;Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/ShardIterator;;<
=
preference?(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/String;ILjava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/ShardIterator;getRoutingTable4()Lcom/groupbyinc/flux/cluster/routing/RoutingTable;AB
0C0com/groupbyinc/flux/cluster/routing/RoutingTableEshardRoutingTableQ(Ljava/lang/String;I)Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;GH
FIshardIdI
indexShard;Ljava/util/Set;searchShards?(Lcom/groupbyinc/flux/cluster/ClusterState;[Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/GroupShardsIterator;java/util/HashSeta(I)V
c
bditerator()Ljava/util/Iterator;fgVhjava/util/IteratorjhasNext()Zlmknnext()Ljava/lang/Object;pqkradd(Ljava/lang/Object;)ZtuVv7com/groupbyinc/flux/cluster/routing/GroupShardsIteratorxjava/util/ArrayListz(Ljava/util/Collection;)V
|
{}(Ljava/util/List;)V

y?3Lcom/groupbyinc/flux/cluster/routing/ShardIterator;shardsetDLjava/util/Set;
	?
java/util/Map?()V
?
b?\indexRoutingTableu(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable;??
?get&(Ljava/lang/Object;)Ljava/lang/Object;????java/lang/String?5com/groupbyinc/flux/cluster/routing/IndexRoutingTable?generateShardIdu(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I??
??(I)Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;??
??6com/groupbyinc/flux/index/shard/ShardNotFoundException?'com/groupbyinc/flux/index/shard/ShardId?(Ljava/lang/String;I)V
?
??,(Lcom/groupbyinc/flux/index/shard/ShardId;)V
?
??I()Lcom/groupbyinc/flux/common/google/common/collect/UnmodifiableIterator;f?
??rindexRouting7Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable;effectiveRouting#Ljava/util/Set;isEmpty?m
??Qcom/groupbyinc/flux/cluster/routing/allocation/decider/AwarenessAllocationDecider?awarenessAttributes()[Ljava/lang/String;??
?? activeInitializingShardsRandomIt?#
!?*preferAttributesActiveInitializingShardsIty([Ljava/lang/String;Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;)Lcom/groupbyinc/flux/cluster/routing/ShardIterator;??
!?charAt(I)C??
??.com/groupbyinc/flux/cluster/routing/Preference?parseD(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/Preference;??
??SHARDS0Lcom/groupbyinc/flux/cluster/routing/Preference;??	??indexOf(I)I??
??*8
??length?X
??	substring(I)Ljava/lang/String;??
??(II)Ljava/lang/String;??
??"com/groupbyinc/flux/common/Strings?splitStringByCommaToArray'(Ljava/lang/String;)[Ljava/lang/String;??
??java/lang/Integer?parseInt(Ljava/lang/String;)I??
??+()Lcom/groupbyinc/flux/index/shard/ShardId;K?
!?+X
??7$SwitchMap$org$elasticsearch$cluster$routing$Preference[I??	?ordinal?X
??PREFER_NODE??	??$preferNodeActiveInitializingShardsItG(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/ShardIterator;??
!? primaryActiveInitializingShardIt#
! replicaActiveInitializingShardIt#
!&primaryFirstActiveInitializingShardsIt#
!&replicaFirstActiveInitializingShardsIt	#
!
"onlyNodeActiveInitializingShardsIt?
!
	ONLY_NODE?	?ensureNodeIdExistsF(Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;Ljava/lang/String;)V

ONLY_NODES?	?*onlyNodeSelectorActiveInitializingShardsItx(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;)Lcom/groupbyinc/flux/cluster/routing/ShardIterator;
!"java/lang/IllegalArgumentExceptionjava/lang/StringBuilder
 ?unknown preference ["append-(Ljava/lang/String;)Ljava/lang/StringBuilder;$%
 &-(Ljava/lang/Object;)Ljava/lang/StringBuilder;$(
 )]+toString-8
 .(Ljava/lang/String;)V
0
13com/groupbyinc/flux/cluster/routing/DjbHashFunction3DJB_HASH5?
46activeInitializingShardsIt6(I)Lcom/groupbyinc/flux/cluster/routing/ShardIterator;89
!:z([Ljava/lang/String;Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;I)Lcom/groupbyinc/flux/cluster/routing/ShardIterator;?<
!=idsfoundZnodeId
nodeAttributepreferenceType1Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;routingTableFB
0GK(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable;(I
FJ0com/groupbyinc/flux/index/IndexNotFoundExceptionL
M1?(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/index/shard/ShardId;.Lcom/groupbyinc/flux/common/SuppressForbidden;reasonMath#abs is trappymetaData1()Lcom/groupbyinc/flux/cluster/metadata/MetaData;ST
0U-com/groupbyinc/flux/cluster/metadata/MetaDataWH(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;(Y
XZ2com/groupbyinc/flux/cluster/metadata/IndexMetaData\getCreationVersion()Lcom/groupbyinc/flux/Version;^_
]`getRoutingHashFunction4()Lcom/groupbyinc/flux/cluster/routing/HashFunction;bc
]dgetRoutingUseTypefm
]ghashG(Lcom/groupbyinc/flux/cluster/routing/HashFunction;Ljava/lang/String;)Iij
kcom/groupbyinc/flux/Versionm0com/groupbyinc/flux/cluster/routing/HashFunctionoY(Lcom/groupbyinc/flux/cluster/routing/HashFunction;Ljava/lang/String;Ljava/lang/String;)Iiq
r
V_2_0_0_beta1Lcom/groupbyinc/flux/Version;tu	nv	onOrAfter (Lcom/groupbyinc/flux/Version;)Zxy
nzgetNumberOfShards|X
]})com/groupbyinc/flux/common/math/MathUtilsmod(II)I??
??java/lang/Math?abs??
??
indexMetaData4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;createdVersionhashFunction2Lcom/groupbyinc/flux/cluster/routing/HashFunction;useTypei?p?Ljava/lang/Deprecated;_all?equals?u
??]Can't route an operation with no type and having type part of the routing (for backward comp)?'(Ljava/lang/String;Ljava/lang/String;)Ii?p?	dataNodes7()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;??
6?3com/groupbyinc/flux/common/collect/ImmutableOpenMap?keysF()Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectLookupContainer;??
??Bcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectLookupContainer?contains?u??No data node with id[?] found?java/util/Collections?emptyMap()Ljava/util/Map;??
??	SignatureCodeLocalVariableTableLineNumberTableRuntimeVisibleAnnotations"RuntimeVisibleParameterAnnotationsLocalVariableTypeTable?(Lcom/groupbyinc/flux/cluster/ClusterState;[Ljava/lang/String;Ljava/util/Map;>;)I
StackMapTable?(Lcom/groupbyinc/flux/cluster/ClusterState;[Ljava/lang/String;Ljava/util/Map;>;Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/GroupShardsIterator;?(Lcom/groupbyinc/flux/cluster/ClusterState;[Ljava/lang/String;Ljava/util/Map;>;)Ljava/util/Set;RuntimeInvisibleAnnotations
Deprecated
SourceFileInnerClasses!	
?
?Q*+?*,??? 	?78
9??k*+,-??%??>&'()*)+),)?<?-.??**+,-?+?4?:+?4?>??H&'()*)+),)?)?@?-@?+?D,?J:*+?4?:+?4?>??>&'()KL?)MN?
DE?
OP??*+,-?T:?Z??4&'[\,	^?,	]?
I	J???_`?D
p*+,-?T:?bY?Z?e:?i:?o?6?s?!:*+?4?:+?4?>:		?
	?wW??ƻyY?{Y?~????\	Mf?	8$?Npp&'p[\p,p?)	g^W?^? p,	g]W???"N	OP8QMRRS\U_V??"VVk9????QR?}?-?	???-N?bY??:,:?66??2:*+??:	-???V:

?`
?i:?o?J?s??:*+??6
	
??:???Y??Y
??????wW????-	??:?o??s?!:?wW??????M??zu+KL
~"MNh8?)?
MN7???	D??^
.?()??&'?[\?,??^? D???
?,??]?J\]_.`7aDbIchdue~f?g?j?k?m?n?o?_?r??

@??0??V??10??V???Vk?C?!?0??V???V?k?"0??V?????;<???????*???:??+???+-?°??_????:?Ц?;??6??жֶ?`??:??жֶ?`??:??:6	:

?66?%
2:

??+???	6	?	????	?????d?*???:

??+???+
-?°`??:??:????.??	2GMRW\ag?+???ֶ?`?ݶ??+,???+??+??+??+??+,????ֶ?`??:*-?+????ֶ?`??:+-???Y? Y?!#?'?*,?'?/?2?*???:??
+?7?;?+-?7?>????\d)?+)
??\
L?(L{)?x?\?u@A	?B)?C);?D???MN?7)?1E??)??\??.v
wxy!{)~4;?C?L?R?g?{????????????????????????????????<?Q?W?\?a?f?k?q????????????????????|
????=????
!?6?????"?????
!?6???A?"???
???z+?H,?KN-??MY,?N?-??*&'()	????	?
???????*+,-??6+?D,?J??H&'()*)+),)
KL?
?
?KO?p	??Y,*+,-??????>&'()*)+),)??????r~+?V,?[:??MY,?N??a:?e:?h6	?#	?*?l6
?*-?s6
?
*?l6
?w?{?
?~???
?~p?????
AiL
OiL
~~&'~()~*)~+)~,)
t??_?u&X??-Q?A	\"iL
?:?
????&?-?2?7?D?R?\?g?r???]?+np
?	?PQsR?ij?F+,???? ??,)??iq?|",?
?,????Y??2?+,-????*""??"*)"+)?????
?????3+????,???%?Y? Y?!??',?'??'?/?2??? 331E3B)??2?2?????????Y??





© 2015 - 2025 Weber Informatics LLC | Privacy Policy