Class DestructiveOperations


public final class DestructiveOperations extends Object
Helper for dealing with destructive operations and wildcard usage.
  • Field Details


      public static final Setting<Boolean> REQUIRES_NAME_SETTING
      Setting which controls whether wildcard usage (*, prefix*, _all) is allowed.
  • Constructor Details

  • Method Details

    • failDestructive

      public void failDestructive(String[] aliasesOrIndices)
      Fail if there is wildcard usage in indices and the named is required for destructive operations.