com.groupbyinc.flux.cluster.metadata.IndexMetaData.class Maven / Gradle / Ivy
???? 4F 2com/groupbyinc/flux/cluster/metadata/IndexMetaData ?Ljava/lang/Object;Lcom/groupbyinc/flux/cluster/Diffable;Lcom/groupbyinc/flux/common/xcontent/ToXContentFragment; java/lang/Object $com/groupbyinc/flux/cluster/Diffable 6com/groupbyinc/flux/common/xcontent/ToXContentFragment IndexMetaData.java :com/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder Builder Dcom/groupbyinc/flux/cluster/metadata/IndexMetaData$IndexMetaDataDiff IndexMetaDataDiff 8com/groupbyinc/flux/cluster/metadata/IndexMetaData$State State 9com/groupbyinc/flux/cluster/metadata/IndexMetaData$Custom Custom 4com/groupbyinc/flux/cluster/metadata/IndexMetaData$1 5com/groupbyinc/flux/common/xcontent/ToXContent$Params .com/groupbyinc/flux/common/xcontent/ToXContent Params 4com/groupbyinc/flux/common/settings/Settings$Builder ,com/groupbyinc/flux/common/settings/Settings 4com/groupbyinc/flux/common/settings/Setting$Property " +com/groupbyinc/flux/common/settings/Setting $ Property 8com/groupbyinc/flux/common/xcontent/ToXContent$MapParams ' MapParams Bcom/groupbyinc/flux/cluster/DiffableUtils$StringSetValueSerializer * )com/groupbyinc/flux/cluster/DiffableUtils , StringSetValueSerializer %java/lang/invoke/MethodHandles$Lookup / java/lang/invoke/MethodHandles 1 Lookup customPrototypes Ljava/util/Map; ^Ljava/util/Map; INDEX_READ_ONLY_BLOCK 0Lcom/groupbyinc/flux/cluster/block/ClusterBlock; INDEX_READ_BLOCK INDEX_WRITE_BLOCK INDEX_METADATA_BLOCK "INDEX_READ_ONLY_ALLOW_DELETE_BLOCK INDEX_SETTING_PREFIX Ljava/lang/String; index. ? SETTING_NUMBER_OF_SHARDS index.number_of_shards B INDEX_NUMBER_OF_SHARDS_SETTING -Lcom/groupbyinc/flux/common/settings/Setting; BLcom/groupbyinc/flux/common/settings/Setting; SETTING_NUMBER_OF_REPLICAS index.number_of_replicas H INDEX_NUMBER_OF_REPLICAS_SETTING SETTING_ROUTING_PARTITION_SIZE index.routing_partition_size L $INDEX_ROUTING_PARTITION_SIZE_SETTING SETTING_AUTO_EXPAND_REPLICAS index.auto_expand_replicas P "INDEX_AUTO_EXPAND_REPLICAS_SETTING hLcom/groupbyinc/flux/common/settings/Setting; SETTING_READ_ONLY index.blocks.read_only U INDEX_READ_ONLY_SETTING BLcom/groupbyinc/flux/common/settings/Setting; SETTING_BLOCKS_READ index.blocks.read Z INDEX_BLOCKS_READ_SETTING SETTING_BLOCKS_WRITE index.blocks.write ^ INDEX_BLOCKS_WRITE_SETTING SETTING_BLOCKS_METADATA index.blocks.metadata b INDEX_BLOCKS_METADATA_SETTING SETTING_READ_ONLY_ALLOW_DELETE #index.blocks.read_only_allow_delete f +INDEX_BLOCKS_READ_ONLY_ALLOW_DELETE_SETTING SETTING_VERSION_CREATED index.version.created j SETTING_VERSION_CREATED_STRING index.version.created_string m SETTING_VERSION_UPGRADED index.version.upgraded p SETTING_VERSION_UPGRADED_STRING index.version.upgraded_string s SETTING_CREATION_DATE index.creation_date v SETTING_INDEX_PROVIDED_NAME index.provided_name y SETTING_PRIORITY index.priority | INDEX_PRIORITY_SETTING SETTING_CREATION_DATE_STRING index.creation_date_string ? SETTING_INDEX_UUID
index.uuid ? SETTING_DATA_PATH index.data_path ? INDEX_DATA_PATH_SETTING ALcom/groupbyinc/flux/common/settings/Setting; INDEX_UUID_NA_VALUE _na_ ? "INDEX_ROUTING_REQUIRE_GROUP_PREFIX index.routing.allocation.require ? "INDEX_ROUTING_INCLUDE_GROUP_PREFIX index.routing.allocation.include ? "INDEX_ROUTING_EXCLUDE_GROUP_PREFIX index.routing.allocation.exclude ? #INDEX_ROUTING_REQUIRE_GROUP_SETTING ]Lcom/groupbyinc/flux/common/settings/Setting; #INDEX_ROUTING_INCLUDE_GROUP_SETTING #INDEX_ROUTING_EXCLUDE_GROUP_SETTING ,INDEX_ROUTING_INITIAL_RECOVERY_GROUP_SETTING SETTING_WAIT_FOR_ACTIVE_SHARDS dLcom/groupbyinc/flux/common/settings/Setting; INDEX_FORMAT index.format ? INDEX_FORMAT_SETTING KEY_IN_SYNC_ALLOCATIONS in_sync_allocations ? KEY_VERSION version ? KEY_ROUTING_NUM_SHARDS routing_num_shards ? KEY_SETTINGS settings ? KEY_STATE state ? KEY_MAPPINGS mappings ? KEY_ALIASES aliases ? KEY_PRIMARY_TERMS
primary_terms ? INDEX_STATE_FILE_PREFIX state- ? routingNumShards I
routingFactor routingPartitionSize numberOfShards numberOfReplicas index !Lcom/groupbyinc/flux/index/Index; J primaryTerms [J :Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$State; 5Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap; }Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap; .Lcom/groupbyinc/flux/common/settings/Settings; Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap; customs ?Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap; inSyncAllocationIds 8Lcom/groupbyinc/flux/common/collect/ImmutableOpenIntMap; ]Lcom/groupbyinc/flux/common/collect/ImmutableOpenIntMap;>; totalNumberOfShards requireFilters 7Lcom/groupbyinc/flux/cluster/node/DiscoveryNodeFilters; includeFilters excludeFilters initialRecoveryFilters indexCreatedVersion Lcom/groupbyinc/flux/Version; indexUpgradedVersion waitForActiveShards 5Lcom/groupbyinc/flux/action/support/ActiveShardCount; INDEX_SHRINK_SOURCE_UUID_KEY index.shrink.source.uuid ? INDEX_SHRINK_SOURCE_NAME_KEY index.shrink.source.name ? INDEX_SHRINK_SOURCE_UUID INDEX_SHRINK_SOURCE_NAME
FORMAT_PARAMS 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; FORMAT 1Lcom/groupbyinc/flux/gateway/MetaDataStateFormat; gLcom/groupbyinc/flux/gateway/MetaDataStateFormat; $assertionsDisabled Z registerPrototype P(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Custom;)V 4 5 ?
java/util/Map ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? ? type proto ;Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Custom; lookupPrototype O(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Custom; %Lcom/groupbyinc/flux/common/Nullable; get &(Ljava/lang/Object;)Ljava/lang/Object; ? ? ? ? lookupPrototypeSafe "java/lang/IllegalArgumentException java/lang/StringBuilder ()V
2No custom metadata prototype registered for type [ append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
] toString ()Ljava/lang/String;
(Ljava/lang/String;)V
TT; buildNumberOfShardsSetting /()Lcom/groupbyinc/flux/common/settings/Setting; es.index.max_number_of_shards 1024 java/lang/System getProperty 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; !
" java/lang/Integer$ parseInt (Ljava/lang/String;)I&'
%( )es.index.max_number_of_shards must be > 0* java/lang/Math, min (II)I./
-0
IndexScope 6Lcom/groupbyinc/flux/common/settings/Setting$Property;23 #4 Final63 #7
intSetting {(Ljava/lang/String;III[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting;9:
%; maxNumShards?(Lcom/groupbyinc/flux/index/Index;J[JLcom/groupbyinc/flux/cluster/metadata/IndexMetaData$State;IILcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;Lcom/groupbyinc/flux/common/collect/ImmutableOpenIntMap;Lcom/groupbyinc/flux/cluster/node/DiscoveryNodeFilters;Lcom/groupbyinc/flux/cluster/node/DiscoveryNodeFilters;Lcom/groupbyinc/flux/cluster/node/DiscoveryNodeFilters;Lcom/groupbyinc/flux/cluster/node/DiscoveryNodeFilters;Lcom/groupbyinc/flux/Version;Lcom/groupbyinc/flux/Version;IILcom/groupbyinc/flux/action/support/ActiveShardCount;)V
? ? @ ? ? B ? ? D ? ? F java/lang/AssertionErrorH
I com/groupbyinc/flux/index/IndexK ? 3com/groupbyinc/flux/common/collect/ImmutableOpenMapN 6com/groupbyinc/flux/common/collect/ImmutableOpenIntMapP 5com/groupbyinc/flux/cluster/node/DiscoveryNodeFiltersR com/groupbyinc/flux/VersionT 3com/groupbyinc/flux/action/support/ActiveShardCountV ? ? X ? ? Z ? ? \ ? ? ^ ? ? ` ? ? b ? ? d ? ? f ? ? h ? ? j ? ? l ? ? n ? ? p ? ? r ? ? t ? ? v ? ? x ? ? z ? ? | (I)Ljava/lang/StringBuilder;
~
must be a multiple of ? (Ljava/lang/Object;)V?
I? this 4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; getIndex #()Lcom/groupbyinc/flux/index/Index; getIndexUUID getUUID?
L?
isSameUUID (Ljava/lang/String;)Z?
? java/lang/String? equals (Ljava/lang/Object;)Z??
?? otherUUID
getVersion ()J primaryTerm (I)J shardId getCreationVersion ()Lcom/groupbyinc/flux/Version; getUpgradedVersion getCreationDate???????? java/lang/Long? valueOf (J)Ljava/lang/Long;??
?? getAsLong 4(Ljava/lang/String;Ljava/lang/Long;)Ljava/lang/Long;??
!? longValue??
?? getState <()Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$State; getNumberOfShards ()I getNumberOfReplicas getRoutingPartitionSize isRoutingPartitionedIndex ()Z getTotalNumberOfShards getWaitForActiveShards 7()Lcom/groupbyinc/flux/action/support/ActiveShardCount; getSettings 0()Lcom/groupbyinc/flux/common/settings/Settings;
getAliases 7()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap; getMappings mapping J(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/MappingMetaData;
O ? 4com/groupbyinc/flux/cluster/metadata/MappingMetaData? mappingType getMergeSourceIndex ? E ? exists 1(Lcom/groupbyinc/flux/common/settings/Settings;)Z??
%? ? E ? B(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object; ??
%? '(Ljava/lang/String;Ljava/lang/String;)V?
L? mappingOrDefault _default_? 6Lcom/groupbyinc/flux/cluster/metadata/MappingMetaData;
getCustoms custom getInSyncAllocationIds :()Lcom/groupbyinc/flux/common/collect/ImmutableOpenIntMap; (I)Ljava/util/Set; (I)Ljava/lang/Object; ??
Q?
java/util/Set? 9()Lcom/groupbyinc/flux/cluster/node/DiscoveryNodeFilters; getInitialRecoveryFilters getClass ()Ljava/lang/Class;??
?
O?
L?
!? java/util/Arrays? ([J[J)Z??
??
Q? o Ljava/lang/Object; that hashCode??
L? (J)I??
??
?
O?
!? ([J)I??
?
Q? result diff X(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;)Lcom/groupbyinc/flux/cluster/Diff; k(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;)V
previousState readDiffFrom V(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/cluster/Diff; java/io/IOException 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V
in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; fromXContent j(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;
parser 4Lcom/groupbyinc/flux/common/xcontent/XContentParser;
toXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ?(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)V
builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; params readFrom h(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; 0com/groupbyinc/flux/common/io/stream/StreamInput#
readString%
$&
readLong)?
$* ?(J)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder; ?,
- readInt/?
$0 setRoutingNumShards ?(I)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder;23
4 readByte ()B67
$8 fromId =(B)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$State;:;
< x(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$State;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder; ?>
? readSettingsFromStream b(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/common/settings/Settings;AB
!C l(Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder; ?E
F readVLongArray ()[JHI
$J access$1100 A(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder;[J)VLM
N readVIntP?
$Q
?
putMapping t(Lcom/groupbyinc/flux/cluster/metadata/MappingMetaData;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder;TU
V 2com/groupbyinc/flux/cluster/metadata/AliasMetaDataX
Y putAlias r(Lcom/groupbyinc/flux/cluster/metadata/AliasMetaData;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder;[\
] ? ?
_ o(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Custom;!a b putCustom ?(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Custom;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder;de
f getInstance F()Lcom/groupbyinc/flux/cluster/DiffableUtils$StringSetValueSerializer;hi
+j (I)Ljava/lang/Integer;?l
%m read U(Lcom/groupbyinc/flux/common/io/stream/StreamInput;Ljava/lang/Object;)Ljava/util/Set;op
+q putInSyncAllocationIds N(ILjava/util/Set;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder;st
u build 6()Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;wx
y mappingMd i aliasMd 4Lcom/groupbyinc/flux/cluster/metadata/AliasMetaData; customIndexMetaData key
allocationIds #Ljava/util/Set; Ljava/util/Set;