Uses of Class
org.elasticsearch.cluster.metadata.IndexMetaData
-
-
Uses of IndexMetaData in org.elasticsearch.action.support.replication
Methods in org.elasticsearch.action.support.replication with parameters of type IndexMetaData Modifier and Type Method Description protected voidTransportReplicationAction. resolveRequest(IndexMetaData indexMetaData, Request request)Resolves derived values in the request. -
Uses of IndexMetaData in org.elasticsearch.cluster
Methods in org.elasticsearch.cluster with parameters of type IndexMetaData Modifier and Type Method Description static booleanClusterChangedEvent. indexMetaDataChanged(IndexMetaData metaData1, IndexMetaData metaData2)Returnstrueiff theIndexMetaDatafor a given index has changed between the previous cluster state and the new cluster state. -
Uses of IndexMetaData in org.elasticsearch.cluster.block
Methods in org.elasticsearch.cluster.block with parameters of type IndexMetaData Modifier and Type Method Description ClusterBlocks.BuilderClusterBlocks.Builder. addBlocks(IndexMetaData indexMetaData)ClusterBlocks.BuilderClusterBlocks.Builder. updateBlocks(IndexMetaData indexMetaData) -
Uses of IndexMetaData in org.elasticsearch.cluster.health
Constructors in org.elasticsearch.cluster.health with parameters of type IndexMetaData Constructor Description ClusterIndexHealth(IndexMetaData indexMetaData, IndexRoutingTable indexRoutingTable) -
Uses of IndexMetaData in org.elasticsearch.cluster.metadata
Fields in org.elasticsearch.cluster.metadata with type parameters of type IndexMetaData Modifier and Type Field Description static MetaDataStateFormat<IndexMetaData>IndexMetaData. FORMATState format forIndexMetaDatato write to and load from diskMethods in org.elasticsearch.cluster.metadata that return IndexMetaData Modifier and Type Method Description IndexMetaDataIndexMetaData.Builder. build()static IndexMetaDataIndexMetaData.Builder. fromXContent(XContentParser parser)static IndexMetaDataIndexMetaData. fromXContent(XContentParser parser)IndexMetaDataMetaData.Builder. get(String index)IndexMetaDataMetaData. getIndexSafe(Index index)Returns theIndexMetaDatafor this index.IndexMetaDataMetaData.Builder. getSafe(Index index)IndexMetaDataAliasOrIndex.Alias. getWriteIndex()IndexMetaDataMetaData. index(String index)IndexMetaDataMetaData. index(Index index)static IndexMetaDataIndexMetaData. readFrom(StreamInput in)IndexMetaDataMetaDataIndexUpgradeService. upgradeIndexMetaData(IndexMetaData indexMetaData, Version minimumIndexCompatibilityVersion)Checks that the index can be upgraded to the current version of the master node.Methods in org.elasticsearch.cluster.metadata that return types with arguments of type IndexMetaData Modifier and Type Method Description Diff<IndexMetaData>IndexMetaData. diff(IndexMetaData previousState)List<IndexMetaData>AliasOrIndex.Alias. getIndices()List<IndexMetaData>AliasOrIndex. getIndices()List<IndexMetaData>AliasOrIndex.Index. getIndices()ImmutableOpenMap<String,IndexMetaData>MetaData. getIndices()ImmutableOpenMap<String,IndexMetaData>MetaData. indices()Iterator<IndexMetaData>MetaData. iterator()static Diff<IndexMetaData>IndexMetaData. readDiffFrom(StreamInput in)Methods in org.elasticsearch.cluster.metadata with parameters of type IndexMetaData Modifier and Type Method Description static IndexMetaData.BuilderIndexMetaData. builder(IndexMetaData indexMetaData)Diff<IndexMetaData>IndexMetaData. diff(IndexMetaData previousState)booleanMetaData. hasIndexMetaData(IndexMetaData indexMetaData)Returns true iff existing index has the sameIndexMetaDatainstancestatic booleanMetaDataIndexStateService. isIndexVerifiedBeforeClosed(IndexMetaData indexMetaData)MetaData.BuilderMetaData.Builder. put(IndexMetaData indexMetaData, boolean incrementVersion)static ShardIdIndexMetaData. selectCloneShard(int shardId, IndexMetaData sourceIndexMetadata, int numTargetShards)Returns the source shard ID to clone the given target shard offstatic Set<ShardId>IndexMetaData. selectRecoverFromShards(int shardId, IndexMetaData sourceIndexMetadata, int numTargetShards)Selects the source shards for a local shard recovery.static Set<ShardId>IndexMetaData. selectShrinkShards(int shardId, IndexMetaData sourceIndexMetadata, int numTargetShards)Returns the source shard ids to shrink into the given shard id.static ShardIdIndexMetaData. selectSplitShard(int shardId, IndexMetaData sourceIndexMetadata, int numTargetShards)Returns the source shard ID to split the given target shard offstatic voidIndexMetaData.Builder. toXContent(IndexMetaData indexMetaData, XContentBuilder builder, ToXContent.Params params)IndexMetaDataMetaDataIndexUpgradeService. upgradeIndexMetaData(IndexMetaData indexMetaData, Version minimumIndexCompatibilityVersion)Checks that the index can be upgraded to the current version of the master node.Method parameters in org.elasticsearch.cluster.metadata with type arguments of type IndexMetaData Modifier and Type Method Description MetaData.BuilderMetaData.Builder. indices(ImmutableOpenMap<String,IndexMetaData> indices)voidAliasValidator. validateAlias(String alias, String index, String indexRouting, Function<String,IndexMetaData> indexLookup)Validate a proposed alias.Constructors in org.elasticsearch.cluster.metadata with parameters of type IndexMetaData Constructor Description Alias(AliasMetaData aliasMetaData, IndexMetaData indexMetaData)Builder(IndexMetaData indexMetaData)Index(IndexMetaData indexMetaData) -
Uses of IndexMetaData in org.elasticsearch.cluster.routing
Methods in org.elasticsearch.cluster.routing that return IndexMetaData Modifier and Type Method Description protected IndexMetaDataOperationRouting. indexMetaData(ClusterState clusterState, String index)Methods in org.elasticsearch.cluster.routing with parameters of type IndexMetaData Modifier and Type Method Description RoutingTable.BuilderRoutingTable.Builder. addAsFromCloseToOpen(IndexMetaData indexMetaData)RoutingTable.BuilderRoutingTable.Builder. addAsFromDangling(IndexMetaData indexMetaData)RoutingTable.BuilderRoutingTable.Builder. addAsFromOpenToClose(IndexMetaData indexMetaData)RoutingTable.BuilderRoutingTable.Builder. addAsNew(IndexMetaData indexMetaData)RoutingTable.BuilderRoutingTable.Builder. addAsNewRestore(IndexMetaData indexMetaData, RecoverySource.SnapshotRecoverySource recoverySource, IntSet ignoreShards)RoutingTable.BuilderRoutingTable.Builder. addAsRecovery(IndexMetaData indexMetaData)RoutingTable.BuilderRoutingTable.Builder. addAsRestore(IndexMetaData indexMetaData, RecoverySource.SnapshotRecoverySource recoverySource)voidRoutingNodes. failShard(org.apache.logging.log4j.Logger logger, ShardRouting failedShard, UnassignedInfo unassignedInfo, IndexMetaData indexMetaData, RoutingChangesObserver routingChangesObserver)Applies the relevant logic to handle a cancelled or failed shard.static intOperationRouting. generateShardId(IndexMetaData indexMetaData, String id, String routing)IndexRoutingTable.BuilderIndexRoutingTable.Builder. initializeAsFromCloseToOpen(IndexMetaData indexMetaData)Initializes a new empty index, as as a result of opening a closed index.IndexRoutingTable.BuilderIndexRoutingTable.Builder. initializeAsFromDangling(IndexMetaData indexMetaData)Initializes a new index caused by dangling index imported.IndexRoutingTable.BuilderIndexRoutingTable.Builder. initializeAsFromOpenToClose(IndexMetaData indexMetaData)Initializes a new empty index, as as a result of closing an opened index.IndexRoutingTable.BuilderIndexRoutingTable.Builder. initializeAsNew(IndexMetaData indexMetaData)Initializes a new empty index, as if it was created from an API.IndexRoutingTable.BuilderIndexRoutingTable.Builder. initializeAsNewRestore(IndexMetaData indexMetaData, RecoverySource.SnapshotRecoverySource recoverySource, IntSet ignoreShards)Initializes a new empty index, to be restored from a snapshotIndexRoutingTable.BuilderIndexRoutingTable.Builder. initializeAsRecovery(IndexMetaData indexMetaData)Initializes an existing index.IndexRoutingTable.BuilderIndexRoutingTable.Builder. initializeAsRestore(IndexMetaData indexMetaData, RecoverySource.SnapshotRecoverySource recoverySource)Initializes an existing index, to be restored from a snapshot -
Uses of IndexMetaData in org.elasticsearch.cluster.routing.allocation.decider
Methods in org.elasticsearch.cluster.routing.allocation.decider with parameters of type IndexMetaData Modifier and Type Method Description DecisionAllocationDecider. canAllocate(IndexMetaData indexMetaData, RoutingNode node, RoutingAllocation allocation)Returns aDecisionwhether the given shard routing can be allocated at all at this state of theRoutingAllocation.DecisionAllocationDeciders. canAllocate(IndexMetaData indexMetaData, RoutingNode node, RoutingAllocation allocation)DecisionFilterAllocationDecider. canAllocate(IndexMetaData indexMetaData, RoutingNode node, RoutingAllocation allocation) -
Uses of IndexMetaData in org.elasticsearch.common.settings
Methods in org.elasticsearch.common.settings with parameters of type IndexMetaData Modifier and Type Method Description IndexScopedSettingsIndexScopedSettings. copy(Settings settings, IndexMetaData metaData) -
Uses of IndexMetaData in org.elasticsearch.gateway
Fields in org.elasticsearch.gateway with type parameters of type IndexMetaData Modifier and Type Field Description protected MetaDataStateFormat<IndexMetaData>MetaStateService. INDEX_META_DATA_FORMATMethods in org.elasticsearch.gateway that return IndexMetaData Modifier and Type Method Description IndexMetaDataMetaStateService. loadIndexState(Index index)Loads the index state for the provided index name, returning null if doesn't exists.Methods in org.elasticsearch.gateway with parameters of type IndexMetaData Modifier and Type Method Description longMetaStateService. writeIndex(String reason, IndexMetaData indexMetaData)Writes the index state.voidMetaStateService. writeIndexAndUpdateManifest(String reason, IndexMetaData metaData)Writes index metadata and updates manifest file accordingly.Method parameters in org.elasticsearch.gateway with type arguments of type IndexMetaData Modifier and Type Method Description voidLocalAllocateDangledIndices. allocateDangled(Collection<IndexMetaData> indices, ActionListener<LocalAllocateDangledIndices.AllocateDangledResponse> listener) -
Uses of IndexMetaData in org.elasticsearch.index
Methods in org.elasticsearch.index that return IndexMetaData Modifier and Type Method Description IndexMetaDataIndexSettings. getIndexMetaData()Returns the current IndexMetaData for this indexIndexMetaDataIndexService. getMetaData()Methods in org.elasticsearch.index with parameters of type IndexMetaData Modifier and Type Method Description booleanIndexSettings. updateIndexMetaData(IndexMetaData indexMetaData)Updates the settings and index metadata and notifies all registered settings consumers with the new settings iff at least one setting has changed.booleanIndexService. updateMapping(IndexMetaData currentIndexMetaData, IndexMetaData newIndexMetaData)voidIndexService. updateMetaData(IndexMetaData currentIndexMetaData, IndexMetaData newIndexMetaData)Constructors in org.elasticsearch.index with parameters of type IndexMetaData Constructor Description IndexSettings(IndexMetaData indexMetaData, Settings nodeSettings)Creates a newIndexSettingsinstance.IndexSettings(IndexMetaData indexMetaData, Settings nodeSettings, IndexScopedSettings indexScopedSettings)Creates a newIndexSettingsinstance. -
Uses of IndexMetaData in org.elasticsearch.index.mapper
Methods in org.elasticsearch.index.mapper with parameters of type IndexMetaData Modifier and Type Method Description voidMapperService. merge(IndexMetaData indexMetaData, MapperService.MergeReason reason)booleanMapperService. updateMapping(IndexMetaData currentIndexMetaData, IndexMetaData newIndexMetaData)Update mapping by only merging the metadata that is different between received and stored entries -
Uses of IndexMetaData in org.elasticsearch.indices
Methods in org.elasticsearch.indices that return IndexMetaData Modifier and Type Method Description IndexMetaDataIndicesService. verifyIndexIsDeleted(Index index, ClusterState clusterState)Verify that the contents on disk for the given index is deleted; if not, delete the contents.Methods in org.elasticsearch.indices with parameters of type IndexMetaData Modifier and Type Method Description IndexServiceIndicesService. createIndex(IndexMetaData indexMetaData, List<IndexEventListener> builtInListeners)Creates a newIndexServicefor the given metadata.MapperServiceIndicesService. createIndexMapperService(IndexMetaData indexMetaData)creates a new mapper service for the given index, in order to do administrative work like mapping updates.voidIndicesService. deleteUnassignedIndex(String reason, IndexMetaData metaData, ClusterState clusterState)Deletes an index that is not assigned to this node.voidIndicesService. verifyIndexMetadata(IndexMetaData metaData, IndexMetaData metaDataUpdate)This method verifies that the givenmetaDataholds sane values to create anIndexService. -
Uses of IndexMetaData in org.elasticsearch.indices.cluster
Methods in org.elasticsearch.indices.cluster that return IndexMetaData Modifier and Type Method Description IndexMetaDataIndicesClusterStateService.AllocatedIndices. verifyIndexIsDeleted(Index index, ClusterState clusterState)Verify that the contents on disk for the given index is deleted; if not, delete the contents.Methods in org.elasticsearch.indices.cluster with parameters of type IndexMetaData Modifier and Type Method Description UIndicesClusterStateService.AllocatedIndices. createIndex(IndexMetaData indexMetaData, List<IndexEventListener> builtInIndexListener)Creates a newIndexServicefor the given metadata.voidIndicesClusterStateService.AllocatedIndices. deleteUnassignedIndex(String reason, IndexMetaData metaData, ClusterState clusterState)Deletes an index that is not assigned to this node.booleanIndicesClusterStateService.AllocatedIndex. updateMapping(IndexMetaData currentIndexMetaData, IndexMetaData newIndexMetaData)Checks if index requires refresh from master.voidIndicesClusterStateService.AllocatedIndex. updateMetaData(IndexMetaData currentIndexMetaData, IndexMetaData newIndexMetaData)Updates the metadata of this index. -
Uses of IndexMetaData in org.elasticsearch.repositories
Methods in org.elasticsearch.repositories that return IndexMetaData Modifier and Type Method Description IndexMetaDataRepository. getSnapshotIndexMetaData(SnapshotId snapshotId, IndexId index)Returns the index metadata associated with the snapshot. -
Uses of IndexMetaData in org.elasticsearch.repositories.blobstore
Methods in org.elasticsearch.repositories.blobstore that return IndexMetaData Modifier and Type Method Description IndexMetaDataBlobStoreRepository. getSnapshotIndexMetaData(SnapshotId snapshotId, IndexId index) -
Uses of IndexMetaData in org.elasticsearch.search.internal
Methods in org.elasticsearch.search.internal with parameters of type IndexMetaData Modifier and Type Method Description static QueryBuilderShardSearchRequest. parseAliasFilter(CheckedFunction<byte[],QueryBuilder,IOException> filterParser, IndexMetaData metaData, String... aliasNames)Returns the filter associated with listed filtering aliases.
-