Module org.elasticsearch.server
Package org.elasticsearch.action
Record Class ResolvedIndexExpression.LocalExpressions
java.lang.Object
java.lang.Record
org.elasticsearch.action.ResolvedIndexExpression.LocalExpressions
- Enclosing class:
ResolvedIndexExpression
public static record ResolvedIndexExpression.LocalExpressions(Set<String> expressions, ResolvedIndexExpression.LocalIndexResolutionResult localIndexResolutionResult, ElasticsearchException exception)
extends Record
Represents local (non-remote) resolution results, including expanded indices, and a
ResolvedIndexExpression.LocalIndexResolutionResult.-
Constructor Summary
ConstructorsConstructorDescriptionLocalExpressions(Set<String> expressions, ResolvedIndexExpression.LocalIndexResolutionResult localIndexResolutionResult, ElasticsearchException exception) Creates an instance of aLocalExpressionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexceptionrecord component.Returns the value of theexpressionsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelocalIndexResolutionResultrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LocalExpressions
public LocalExpressions(Set<String> expressions, ResolvedIndexExpression.LocalIndexResolutionResult localIndexResolutionResult, @Nullable ElasticsearchException exception) Creates an instance of aLocalExpressionsrecord class.- Parameters:
expressions- the value for theexpressionsrecord componentlocalIndexResolutionResult- the value for thelocalIndexResolutionResultrecord componentexception- the value for theexceptionrecord component
-
-
Method Details
-
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 withObjects::equals(Object,Object). -
expressions
Returns the value of theexpressionsrecord component.- Returns:
- the value of the
expressionsrecord component
-
localIndexResolutionResult
Returns the value of thelocalIndexResolutionResultrecord component.- Returns:
- the value of the
localIndexResolutionResultrecord component
-
exception
Returns the value of theexceptionrecord component.- Returns:
- the value of the
exceptionrecord component
-