Module org.elasticsearch.server
Package org.elasticsearch.action.support
Record Class IndicesOptions.GeneralOptions
java.lang.Object
java.lang.Record
org.elasticsearch.action.support.IndicesOptions.GeneralOptions
- Record Components:
allowAliasToMultipleIndices
- , allow aliases to multiple indices, true by default.allowClosedIndices
- , allow closed indices, true by default.ignoreThrottled
- , filters out throttled (aka frozen indices), defaults to true.
- All Implemented Interfaces:
ToXContent
,ToXContentFragment
- Enclosing class:
- IndicesOptions
public static record IndicesOptions.GeneralOptions(boolean allowAliasToMultipleIndices, boolean allowClosedIndices, boolean ignoreThrottled)
extends Record
implements ToXContentFragment
These options apply on all indices that have been selected by the other Options. It can either filter the response or
define what type of indices or aliases are not allowed which will result in an error response.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionGeneralOptions
(boolean allowAliasToMultipleIndices, boolean allowClosedIndices, boolean ignoreThrottled) Creates an instance of aGeneralOptions
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of theallowAliasToMultipleIndices
record component.boolean
Returns the value of theallowClosedIndices
record component.builder()
builder
(IndicesOptions.GeneralOptions generalOptions) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Deprecated.parseParameter
(Object ignoreThrottled, IndicesOptions.GeneralOptions defaultOptions) final String
toString()
Returns a string representation of this record class.toXContent
(XContentBuilder builder, ToXContent.Params params) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
IGNORE_THROTTLED
- See Also:
-
DEFAULT
-
-
Constructor Details
-
GeneralOptions
public GeneralOptions(boolean allowAliasToMultipleIndices, boolean allowClosedIndices, @Deprecated boolean ignoreThrottled) Creates an instance of aGeneralOptions
record class.- Parameters:
allowAliasToMultipleIndices
- the value for theallowAliasToMultipleIndices
record componentallowClosedIndices
- the value for theallowClosedIndices
record componentignoreThrottled
- the value for theignoreThrottled
record component
-
-
Method Details
-
parseParameter
public static IndicesOptions.GeneralOptions parseParameter(Object ignoreThrottled, IndicesOptions.GeneralOptions defaultOptions) -
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceToXContent
- Throws:
IOException
-
builder
-
builder
public static IndicesOptions.GeneralOptions.Builder builder(IndicesOptions.GeneralOptions generalOptions) -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
allowAliasToMultipleIndices
public boolean allowAliasToMultipleIndices()Returns the value of theallowAliasToMultipleIndices
record component.- Returns:
- the value of the
allowAliasToMultipleIndices
record component
-
allowClosedIndices
public boolean allowClosedIndices()Returns the value of theallowClosedIndices
record component.- Returns:
- the value of the
allowClosedIndices
record component
-
ignoreThrottled
Deprecated.Returns the value of theignoreThrottled
record component.- Returns:
- the value of the
ignoreThrottled
record component
-