Module org.elasticsearch.server
Package org.elasticsearch.action
Class ResolvedIndexExpressions.Builder
java.lang.Object
org.elasticsearch.action.ResolvedIndexExpressions.Builder
- Enclosing class:
ResolvedIndexExpressions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExpression(ResolvedIndexExpression expression) Add a new resolved expression.voidaddExpressions(String original, HashSet<String> localExpressions, ResolvedIndexExpression.LocalIndexResolutionResult resolutionResult, Set<String> remoteExpressions) Add a new resolved expression.voidaddRemoteExpressions(String original, Set<String> remoteExpressions) build()voidexcludeFromLocalExpressions(Set<String> expressionsToExclude) Exclude the given expressions from the local expressions of all prior addedResolvedIndexExpression.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addExpressions
public void addExpressions(String original, HashSet<String> localExpressions, ResolvedIndexExpression.LocalIndexResolutionResult resolutionResult, Set<String> remoteExpressions) Add a new resolved expression.- Parameters:
original- the original expression that was resolved -- may be blank for "access all" caseslocalExpressions- is a HashSet as an optimization -- the set needs to be mutable, and we want to avoid copying it. May be empty.
-
addExpression
Add a new resolved expression.- Parameters:
expression- the expression you want to add.
-
addRemoteExpressions
-
excludeFromLocalExpressions
Exclude the given expressions from the local expressions of all prior addedResolvedIndexExpression. -
build
-