Record Class AbstractLookupService.LookupShardContext
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.enrich.AbstractLookupService.LookupShardContext
- Enclosing class:
AbstractLookupService<R extends org.elasticsearch.xpack.esql.enrich.AbstractLookupService.Request,T extends org.elasticsearch.xpack.esql.enrich.AbstractLookupService.TransportRequest>
public static record AbstractLookupService.LookupShardContext(EsPhysicalOperationProviders.ShardContext context, SearchExecutionContext executionContext, org.elasticsearch.core.Releasable release)
extends Record
AbstractLookupService uses this to power the queries and field loading that
it needs to perform to actually do the lookup.-
Constructor Summary
ConstructorsConstructorDescriptionLookupShardContext(EsPhysicalOperationProviders.ShardContext context, SearchExecutionContext executionContext, org.elasticsearch.core.Releasable release) Creates an instance of aLookupShardContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontext()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexecutionContextrecord component.fromSearchContext(SearchContext context) final inthashCode()Returns a hash code value for this object.org.elasticsearch.core.Releasablerelease()Returns the value of thereleaserecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LookupShardContext
public LookupShardContext(EsPhysicalOperationProviders.ShardContext context, SearchExecutionContext executionContext, org.elasticsearch.core.Releasable release) Creates an instance of aLookupShardContextrecord class.- Parameters:
context- the value for thecontextrecord componentexecutionContext- the value for theexecutionContextrecord componentrelease- the value for thereleaserecord component
-
-
Method Details
-
fromSearchContext
-
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). -
context
Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-
executionContext
Returns the value of theexecutionContextrecord component.- Returns:
- the value of the
executionContextrecord component
-
release
public org.elasticsearch.core.Releasable release()Returns the value of thereleaserecord component.- Returns:
- the value of the
releaserecord component
-