Module org.elasticsearch.server
Class IndexAbstraction.Alias
java.lang.Object
org.elasticsearch.cluster.metadata.IndexAbstraction.Alias
- All Implemented Interfaces:
- IndexAbstraction
- Enclosing interface:
- IndexAbstraction
Represents an alias and groups all 
IndexMetadata instances sharing the same alias name together.- 
Nested Class SummaryNested classes/interfaces inherited from interface org.elasticsearch.cluster.metadata.IndexAbstractionIndexAbstraction.Alias, IndexAbstraction.ConcreteIndex, IndexAbstraction.DataStream, IndexAbstraction.Type
- 
Constructor SummaryConstructorsConstructorDescriptionAlias(AliasMetadata aliasMetadata, List<IndexMetadata> indexMetadatas) Alias(DataStreamAlias dataStreamAlias, List<Index> indicesOfAllDataStreams, Index writeIndexOfWriteDataStream) 
- 
Method SummaryMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.cluster.metadata.IndexAbstractiongetWriteIndex
- 
Constructor Details- 
Alias
- 
Aliaspublic Alias(DataStreamAlias dataStreamAlias, List<Index> indicesOfAllDataStreams, Index writeIndexOfWriteDataStream) 
 
- 
- 
Method Details- 
getType- Specified by:
- getTypein interface- IndexAbstraction
- Returns:
- the type of the index abstraction
 
- 
getName- Specified by:
- getNamein interface- IndexAbstraction
- Returns:
- the name of the index abstraction
 
- 
getIndices- Specified by:
- getIndicesin interface- IndexAbstraction
- Returns:
- All Indexof all concrete indices this index abstraction is referring to.
 
- 
getWriteIndexDescription copied from interface:IndexAbstractionA write index is a dedicated concrete index, that accepts all the new documents that belong to an index abstraction.A write index may also be a regular concrete index of a index abstraction and may therefore also be returned by IndexAbstraction.getIndices(). An index abstraction may also not have a dedicated write index.- Specified by:
- getWriteIndexin interface- IndexAbstraction
- Returns:
- the write index of this index abstraction or
 nullif this index abstraction doesn't have a write index.
 
- 
getParentDataStream- Specified by:
- getParentDataStreamin interface- IndexAbstraction
- Returns:
- the data stream to which this index belongs or nullif this is not a concrete index or if it is a concrete index that does not belong to a data stream.
 
- 
isHiddenpublic boolean isHidden()- Specified by:
- isHiddenin interface- IndexAbstraction
- Returns:
- whether this index abstraction is hidden or not
 
- 
isSystempublic boolean isSystem()- Specified by:
- isSystemin interface- IndexAbstraction
- Returns:
- whether this index abstraction should be treated as a system index or not
 
- 
isDataStreamRelatedpublic boolean isDataStreamRelated()- Specified by:
- isDataStreamRelatedin interface- IndexAbstraction
- Returns:
- whether this index abstraction is related to data streams
 
- 
equals
- 
hashCodepublic int hashCode()
 
-