Module org.elasticsearch.server
Record Class IndexNameExpressionResolver.ResolvedExpression
java.lang.Object
java.lang.Record
org.elasticsearch.cluster.metadata.IndexNameExpressionResolver.ResolvedExpression
- Record Components:
resource
- the name of a resource that an expression refers to.selector
- optionally indicates which part of a resource to target during an operation. A null value indicates selectors are unsupported in an API and the default data component of the expression should be used where applicable.
- Enclosing class:
IndexNameExpressionResolver
public static record IndexNameExpressionResolver.ResolvedExpression(String resource, IndexComponentSelector selector)
extends Record
This represents a resolved expression in the form of the name of a resource in the cluster and a potential selector
which defines which part of the resource the expression is targeting.
-
Constructor Summary
ConstructorsConstructorDescriptionResolvedExpression
(String indexAbstraction) ResolvedExpression
(String resource, IndexComponentSelector selector) Creates an instance of aResolvedExpression
record class.ResolvedExpression
(String indexAbstraction, IndicesOptions options) Constructs a ResolvedExpression with the DATA selector if the selectors are allowed or null otherwise. -
Method Summary
Modifier and TypeMethodDescriptioncombined()
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.resource()
Returns the value of theresource
record component.selector()
Returns the value of theselector
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ResolvedExpression
-
ResolvedExpression
Constructs a ResolvedExpression with the DATA selector if the selectors are allowed or null otherwise.- Parameters:
indexAbstraction
-options
-
-
ResolvedExpression
Creates an instance of aResolvedExpression
record class.
-
-
Method Details
-
combined
-
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)
. -
resource
Returns the value of theresource
record component.- Returns:
- the value of the
resource
record component
-
selector
Returns the value of theselector
record component.- Returns:
- the value of the
selector
record component
-