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

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

????4?4com/groupbyinc/flux/cluster/routing/OperationRouting6com/groupbyinc/flux/common/component/AbstractComponentOperationRouting.java6com/groupbyinc/flux/cluster/routing/OperationRouting$1%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandles
LookupawarenessAttributes[Ljava/lang/String;
EMPTY_ROUTINGLjava/util/Map;FLjava/util/Map;>;$assertionsDisabledZf(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/common/settings/ClusterSettings;)V1(Lcom/groupbyinc/flux/common/settings/Settings;)V
Qcom/groupbyinc/flux/cluster/routing/allocation/decider/AwarenessAllocationDecider6CLUSTER_ROUTING_ALLOCATION_AWARENESS_ATTRIBUTE_SETTING-Lcom/groupbyinc/flux/common/settings/Setting;	+com/groupbyinc/flux/common/settings/SettinggetB(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object;!"
 #
	&"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;*+
),-(Ljava/lang/Object;)V/setAwarenessAttributes([Ljava/lang/String;)V12
342acceptU(Lcom/groupbyinc/flux/cluster/routing/OperationRouting;)Ljava/util/function/Consumer;7893com/groupbyinc/flux/common/settings/ClusterSettings;addSettingsUpdateConsumerM(Lcom/groupbyinc/flux/common/settings/Setting;Ljava/util/function/Consumer;)V=>
<?this6Lcom/groupbyinc/flux/cluster/routing/OperationRouting;settings.Lcom/groupbyinc/flux/common/settings/Settings;clusterSettings5Lcom/groupbyinc/flux/common/settings/ClusterSettings;indexShards?(Lcom/groupbyinc/flux/cluster/ClusterState;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;)Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;JK
L:com/groupbyinc/flux/cluster/routing/IndexShardRoutingTableNshardsIt5()Lcom/groupbyinc/flux/cluster/routing/ShardIterator;PQ
ORclusterState*Lcom/groupbyinc/flux/cluster/ClusterState;indexLjava/lang/String;idrouting	getShards?(Lcom/groupbyinc/flux/cluster/ClusterState;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;^_
]`/com/groupbyinc/flux/cluster/node/DiscoveryNodesbgetLocalNodeId()Ljava/lang/String;de
cfpreferenceActiveShardIterator?(Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;Ljava/lang/String;Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/ShardIterator;hi
j
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;no
]p0com/groupbyinc/flux/cluster/routing/RoutingTablershardRoutingTableQ(Ljava/lang/String;I)Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;tu
svshardIdI
indexShard;Ljava/util/Set;setDLjava/util/Set;	?
java/util/Map?()V?
??indexRoutingTableu(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable;??
?
indexMetaDatar(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;??
?&(Ljava/lang/Object;)Ljava/lang/Object;!???java/lang/String?5com/groupbyinc/flux/cluster/routing/IndexRoutingTable?2com/groupbyinc/flux/cluster/metadata/IndexMetaData?getRoutingPartitionSize??
??calculateScaledShardIdJ(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Ljava/lang/String;I)I??
?v(Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable;I)Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;t?
?
??partitionOffsetroutingPartitionSizerindexRouting7Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable;4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;effectiveRouting#Ljava/util/Set;isEmpty??
?? activeInitializingShardsRandomIt?Q
O?*preferAttributesActiveInitializingShardsIty([Ljava/lang/String;Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;)Lcom/groupbyinc/flux/cluster/routing/ShardIterator;??
O?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??
??type?e
??length??
??	substring(I)Ljava/lang/String;??
??(II)Ljava/lang/String;?
?"com/groupbyinc/flux/common/StringssplitStringByCommaToArray'(Ljava/lang/String;)[Ljava/lang/String;
java/lang/Integer
parseInt(Ljava/lang/String;)I
+()Lcom/groupbyinc/flux/index/shard/ShardId;x
O'com/groupbyinc/flux/index/shard/ShardIdX?
7$SwitchMap$org$elasticsearch$cluster$routing$Preference[I	ordinal?
?PREFER_NODES?	?,!split#
?$java/util/Arrays&stream.([Ljava/lang/Object;)Ljava/util/stream/Stream;()
'*java/util/stream/Collectors,toSet()Ljava/util/stream/Collector;./
-0java/util/stream/Stream2collect0(Ljava/util/stream/Collector;)Ljava/lang/Object;4536$preferNodeActiveInitializingShardsItD(Ljava/util/Set;)Lcom/groupbyinc/flux/cluster/routing/ShardIterator;89
O:java/util/Collections<	singleton#(Ljava/lang/Object;)Ljava/util/Set;>?
=@ primaryActiveInitializingShardItBQ
OC replicaActiveInitializingShardItEQ
OF&primaryFirstActiveInitializingShardsItHQ
OI&replicaFirstActiveInitializingShardsItKQ
OL"onlyNodeActiveInitializingShardsItG(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/ShardIterator;NO
OP
ONLY_NODESR?	?S*onlyNodeSelectorActiveInitializingShardsItU?
OV"java/lang/IllegalArgumentExceptionXjava/lang/StringBuilderZ
[?unknown preference []append-(Ljava/lang/String;)Ljava/lang/StringBuilder;_`
[a-(Ljava/lang/Object;)Ljava/lang/StringBuilder;_c
[d]ftoStringhe
[i(Ljava/lang/String;)Vk
Yl7com/groupbyinc/flux/cluster/routing/Murmur3HashFunctionnhashp
oqgetMinNodeVersion()Lcom/groupbyinc/flux/Version;st
cucom/groupbyinc/flux/VersionwV_6_0_0_alpha1Lcom/groupbyinc/flux/Version;yz	x{	onOrAfter (Lcom/groupbyinc/flux/Version;)Z}~
x)Lcom/groupbyinc/flux/index/shard/ShardId;x?	O?hashCode??
?activeInitializingShardsIt6(I)Lcom/groupbyinc/flux/cluster/routing/ShardIterator;??
O?z([Ljava/lang/String;Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;I)Lcom/groupbyinc/flux/cluster/routing/ShardIterator;??
O?idsfoundnodesIdsnodeAttributespreferenceTypelocalNodeId1Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;routingHash?(I)Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;??
??6com/groupbyinc/flux/index/shard/ShardNotFoundException?getIndex#()Lcom/groupbyinc/flux/index/Index;??
??%(Lcom/groupbyinc/flux/index/Index;I)V?
?,(Lcom/groupbyinc/flux/index/shard/ShardId;)V?
??routingTable?o
]?K(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable;V?
s?0com/groupbyinc/flux/index/IndexNotFoundException?
?lmetaData1()Lcom/groupbyinc/flux/cluster/metadata/MetaData;??
]?-com/groupbyinc/flux/cluster/metadata/MetaData?H(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;V?
??generateShardId[(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Ljava/lang/String;Ljava/lang/String;)I??
??(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/index/shard/ShardId;
??	?isRoutingPartitionedIndex??
??java/lang/AssertionError?=A routing value is required for gets from a partitioned index?/
??java/lang/Math?floorMod(II)I??
??getRoutingNumShards??
??getRoutingFactor??
??java/lang/Class?desiredAssertionStatus??
??emptyMap()Ljava/util/Map;??
=?	SignatureCodeLocalVariableTableLineNumberTable"RuntimeVisibleParameterAnnotationsLocalVariableTypeTable
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;BootstrapMethods
SourceFileInnerClasses!
??k!*+?*?+?$?%?',?*?:?@?? !AB!CD!EF?123 512?>*+?'??AB
?
89GH?_
*+,-?M?S??4
AB
TU
VW
XW
YW?<?
IZ[?w**+,-?M+?a?g+?a?k??>ABTUVWXWYWlW?@?IIZm?+?q,?w:*+?a?g+?a?k??>ABTUVWxylWz{?
DE?
I|}?D
p*+,-??:??Y????:??:???6???O:*+?a?g+?a?k:		?
	??W??ƻ?Y??Y??????\	M??	8$?{pABpTUp?pYplW	gJ?W??? pY	gJ?W???"I	JK8LMMRN\P_Q??"???9????II~?i?-?	???-N??Y??:,:?66??2:*+??:	*+??:
-????:?V??:???@????:

??66? *	

?ηѹ?W???ߧ???-	??:??????O:

??W??????N???
{$?yx'?yq.?W
?
z{
7???	@???
M???.?VW?AB?TU???Y???? M????Y????JWXZ.[7\@]M^R_q`xa?b?a?d?f?g?h?Z?k?
@??]%??%?:
]%??%????????#????"]%??%????Ihi????ݙ*?'??+??+*?'-????_????:???|??6??????`?:??????`?:?	:6	:

?66?%
2:

?+???	6	?	????	?????d?*?'??+??+*?'-??`?:??:??.??0]fkpuz?? ????`?"?%?+?1?7??:+?;?+,?A?;?+?D?+?G?+?J?+?M?+,?Q??T????`?:+"?%-?W??YY?[Y?\^?b?eg?b?j?m??r6-?v?|???h+????`6*?'??
+???+*?'-?????_JW?XW
G?VyvzJW}s??p?	V????W6???ABz{?W^?lW?7?y?V????/o
pqs$v/w6x>zG}M~b?v?}?????????????????????????????0?5?F?I?V?]?f?k?p?u?z????????????????????j
	?=????
O?c???%%"?	?
O?c???,?"?"?
It??? +??N-???Y?Y+???????-??* AB ?? xyz{???
????O???z+??,??N-???Y,???-??*ABTUVW	????	?
????????z+??,??N-???Y,???-??*ABTUVW	????	?
?????JK?y*+,??-??6+?q,?w??>ABTUVWXWYWxy?
??x??}*+,??:?Y??-??????>ABTUVWXWYW???
???
I????E,? ???*?????Yŷǿ+N?,N*???+?r*?ʸ?6?6*-?ά?H?W7?yE??EXWEYW#"?W=?y?"???!?#?*?:?=??????II
???a+?r`>*?и?*??l??*???W?ypy?
????>?ٚ????ݳ???
,T?@?.056??	




© 2015 - 2025 Weber Informatics LLC | Privacy Policy