Module org.elasticsearch.xcore
Class ResolvedIndices
java.lang.Object
org.elasticsearch.xpack.core.security.authz.ResolvedIndices
Stores a collection of index names separated into "local" and "remote".
This allows the resolution and categorization to take place exactly once per-request.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class for ResolvedIndices that allows for the building of a list of indices without the need to construct new objects and merging them together -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ResolvedIndices
-
-
Method Details
-
getLocal
Returns the collection of index names that have been stored as "local" indices. This is aListbecause order may be important. For example[ "a*" , "-a1" ]is interpreted differently to[ "-a1", "a*" ]. As a consequence, this list may contain duplicates. -
getRemote
Returns the collection of index names that have been stored as "remote" indices. -
isEmpty
public boolean isEmpty() -
isNoIndicesPlaceholder
public boolean isNoIndicesPlaceholder()- Returns:
trueif theremoteindex lists is empty, and the local index list contains theno-index-placeholderand nothing else.
-
toArray
-