java.lang.Object
org.elasticsearch.cluster.metadata.View
- All Implemented Interfaces:
IndexAbstraction,Writeable,ToXContent,ToXContentObject
Represents a single view definition, which is simply a name and a query string.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.cluster.metadata.IndexAbstraction
IndexAbstraction.Alias, IndexAbstraction.ConcreteIndex, IndexAbstraction.TypeNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ViewfromXContent(XContentParser parser) getName()getType()A write index is a dedicated concrete index, that accepts all the new documents that belong to an index abstraction.inthashCode()booleanisHidden()booleanisSystem()name()static ConstructingObjectParser<View, Void> query()toString()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.cluster.metadata.IndexAbstraction
getFailureIndices, getWriteFailureIndex, getWriteIndex, isDataStreamRelated, isFailureIndexOfDataStreamMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
View
-
View
- Throws:
IOException
-
-
Method Details
-
parser
-
fromXContent
- Throws:
IOException
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
name
-
query
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-
getType
- Specified by:
getTypein interfaceIndexAbstraction- Returns:
- the type of the index abstraction
-
getName
- Specified by:
getNamein interfaceIndexAbstraction- Returns:
- the name of the index abstraction
-
getIndices
- Specified by:
getIndicesin interfaceIndexAbstraction- Returns:
- All
Indexof 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
-