Class DestructiveOperations


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

      Fields 
      Modifier and Type Field Description
      static Setting<java.lang.Boolean> REQUIRES_NAME_SETTING
      Setting which controls whether wildcard usage (*, prefix*, _all) is allowed.
    • Method Summary

      Modifier and Type Method Description
      void failDestructive​(java.lang.String[] aliasesOrIndices)
      Fail if there is wildcard usage in indices and the named is required for destructive operations.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • REQUIRES_NAME_SETTING

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

    • Method Detail

      • failDestructive

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