Module org.elasticsearch.server
Package org.elasticsearch.action
Record Class ResolvedIndexExpression.LocalExpressions
java.lang.Object
java.lang.Record
org.elasticsearch.action.ResolvedIndexExpression.LocalExpressions
- Record Components:
indices- represents the resolved concrete indices backing the expression
- All Implemented Interfaces:
Writeable
- Enclosing class:
ResolvedIndexExpression
public static record ResolvedIndexExpression.LocalExpressions(Set<String> indices, ResolvedIndexExpression.LocalIndexResolutionResult localIndexResolutionResult, ElasticsearchException exception)
extends Record
implements Writeable
Represents local (non-remote) resolution results, including expanded indices, and a
ResolvedIndexExpression.LocalIndexResolutionResult.-
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
ConstructorsConstructorDescriptionLocalExpressions(Set<String> indices, 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.final inthashCode()Returns a hash code value for this object.indices()Returns the value of theindicesrecord component.Returns the value of thelocalIndexResolutionResultrecord component.final StringtoString()Returns a string representation of this record class.voidwriteTo(StreamOutput out) Write this into the StreamOutput.
-
Field Details
-
NONE
-
-
Constructor Details
-
LocalExpressions
public LocalExpressions(Set<String> indices, ResolvedIndexExpression.LocalIndexResolutionResult localIndexResolutionResult, @Nullable ElasticsearchException exception) Creates an instance of aLocalExpressionsrecord class.- Parameters:
indices- the value for theindicesrecord componentlocalIndexResolutionResult- the value for thelocalIndexResolutionResultrecord componentexception- the value for theexceptionrecord component
-
LocalExpressions
- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- 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 withObjects::equals(Object,Object). -
indices
Returns the value of theindicesrecord component.- Returns:
- the value of the
indicesrecord 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
-