Module org.elasticsearch.server
Package org.elasticsearch.action.support
Record Class IndicesOptions.CrossProjectModeOptions
java.lang.Object
java.lang.Record
org.elasticsearch.action.support.IndicesOptions.CrossProjectModeOptions
- Record Components:
resolveIndexExpression- determines that the index expression must be resolved for cross-project requests, defaults to false.
- All Implemented Interfaces:
Writeable
- Enclosing class:
IndicesOptions
public static record IndicesOptions.CrossProjectModeOptions(boolean resolveIndexExpression)
extends Record
implements Writeable
The cross-project mode options are internal-only options that apply on all indices that have been selected by the other Options.
These options may contextually change over the lifetime of the request.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCrossProjectModeOptions(boolean resolveIndexExpression) Creates an instance of aCrossProjectModeOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.readFrom(StreamInput in) booleanReturns the value of theresolveIndexExpressionrecord component.final StringtoString()Returns a string representation of this record class.voidwriteTo(StreamOutput out) Write this into the StreamOutput.
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
CrossProjectModeOptions
public CrossProjectModeOptions(boolean resolveIndexExpression) Creates an instance of aCrossProjectModeOptionsrecord class.- Parameters:
resolveIndexExpression- the value for theresolveIndexExpressionrecord component
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
readFrom
- 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 '=='. -
resolveIndexExpression
public boolean resolveIndexExpression()Returns the value of theresolveIndexExpressionrecord component.- Returns:
- the value of the
resolveIndexExpressionrecord component
-