Package org.elasticsearch.action.support
Class DestructiveOperations
- java.lang.Object
-
- org.elasticsearch.action.support.DestructiveOperations
-
public final class DestructiveOperations extends Object
Helper for dealing with destructive operations and wildcard usage.
-
-
Field Summary
Fields Modifier and Type Field Description static Setting<Boolean>REQUIRES_NAME_SETTINGSetting which controls whether wildcard usage (*, prefix*, _all) is allowed.
-
Constructor Summary
Constructors Constructor Description DestructiveOperations(Settings settings, ClusterSettings clusterSettings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfailDestructive(String[] aliasesOrIndices)Fail if there is wildcard usage in indices and the named is required for destructive operations.
-
-
-
Constructor Detail
-
DestructiveOperations
public DestructiveOperations(Settings settings, ClusterSettings clusterSettings)
-
-
Method Detail
-
failDestructive
public void failDestructive(String[] aliasesOrIndices)
Fail if there is wildcard usage in indices and the named is required for destructive operations.
-
-