Class IndexAbstraction.Index
java.lang.Object
org.elasticsearch.cluster.metadata.IndexAbstraction.Index
- All Implemented Interfaces:
IndexAbstraction
- Enclosing interface:
- IndexAbstraction
Represents an concrete index and encapsulates its
IndexMetadata-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.cluster.metadata.IndexAbstraction
IndexAbstraction.Alias, IndexAbstraction.DataStream, IndexAbstraction.DataStreamAlias, IndexAbstraction.Index, IndexAbstraction.Type -
Constructor Summary
ConstructorsConstructorDescriptionIndex(IndexMetadata indexMetadata)Index(IndexMetadata indexMetadata, IndexAbstraction.DataStream dataStream) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.cluster.metadata.IndexAbstraction
isDataStreamRelated
-
Constructor Details
-
Index
-
Index
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceIndexAbstraction- Returns:
- the name of the index abstraction
-
getType
- Specified by:
getTypein interfaceIndexAbstraction- Returns:
- the type of the index abstraction
-
getIndices
- Specified by:
getIndicesin interfaceIndexAbstraction- Returns:
- All
IndexMetadataof all concrete indices this index abstraction is referring to.
-
getWriteIndex
Description 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 interfaceIndexAbstraction- Returns:
- the write index of this index abstraction or
nullif this index abstraction doesn't have a write index.
-
getParentDataStream
- Specified by:
getParentDataStreamin interfaceIndexAbstraction- 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.
-
isHidden
public boolean isHidden()- Specified by:
isHiddenin interfaceIndexAbstraction- Returns:
- whether this index abstraction is hidden or not
-
isSystem
public boolean isSystem()- Specified by:
isSystemin interfaceIndexAbstraction- Returns:
- whether this index abstraction should be treated as a system index or not
-