Module org.elasticsearch.server
Package org.elasticsearch.action.support
Record Class IndicesOptions.ConcreteTargetOptions
java.lang.Object
java.lang.Record
org.elasticsearch.action.support.IndicesOptions.ConcreteTargetOptions
- Record Components:
- , if false when any of the concrete targets requested does not exist, throw an error
- All Implemented Interfaces:
ToXContent,ToXContentFragment
- Enclosing class:
IndicesOptions
public static record IndicesOptions.ConcreteTargetOptions(boolean allowUnavailableTargets)
extends Record
implements ToXContentFragment
Controls the way the target indices will be handled.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IndicesOptions.ConcreteTargetOptionsstatic final IndicesOptions.ConcreteTargetOptionsstatic final StringFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionConcreteTargetOptions(boolean allowUnavailableTargets) Creates an instance of aConcreteTargetOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theallowUnavailableTargetsrecord component.final booleanIndicates whether some other object is "equal to" this one.fromParameter(Object ignoreUnavailableString, IndicesOptions.ConcreteTargetOptions defaultOption) final inthashCode()Returns a hash code value for this object.final StringtoString()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, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
IGNORE_UNAVAILABLE
- See Also:
-
ALLOW_UNAVAILABLE_TARGETS
-
ERROR_WHEN_UNAVAILABLE_TARGETS
-
-
Constructor Details
-
ConcreteTargetOptions
public ConcreteTargetOptions(boolean allowUnavailableTargets) Creates an instance of aConcreteTargetOptionsrecord class.- Parameters:
allowUnavailableTargets- the value for theallowUnavailableTargetsrecord component
-
-
Method Details
-
fromParameter
public static IndicesOptions.ConcreteTargetOptions fromParameter(Object ignoreUnavailableString, IndicesOptions.ConcreteTargetOptions defaultOption) -
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
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 '=='.
-