Class ResolvedIndexExpressions.Builder

java.lang.Object
org.elasticsearch.action.ResolvedIndexExpressions.Builder
Enclosing class:
ResolvedIndexExpressions

public static final class ResolvedIndexExpressions.Builder extends Object
  • 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" cases
      localExpressions - is a HashSet as an optimization -- the set needs to be mutable, and we want to avoid copying it. May be empty.
    • addExpression

      public void addExpression(ResolvedIndexExpression expression)
      Add a new resolved expression.
      Parameters:
      expression - the expression you want to add.
    • addRemoteExpressions

      public void addRemoteExpressions(String original, Set<String> remoteExpressions)
    • excludeFromLocalExpressions

      public void excludeFromLocalExpressions(Set<String> expressionsToExclude)
      Exclude the given expressions from the local expressions of all prior added ResolvedIndexExpression.
    • build

      public ResolvedIndexExpressions build()