Record Class IndexResolver.FieldsInfo
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.session.IndexResolver.FieldsInfo
- Record Components:
caps-FieldCapabilitiesResponsefrom all indices involved in the queryminTransportVersion- The minimumTransportVersionof any node that might receive the request. More precisely, it's the minimum transport version of ALL nodes in ALL the clusters that the query is targeting. It doesn't matter if the node is a data node or an ML node or a unicorn, it's transport version counts. BUT if the query doesn't dispatch to that cluster AT ALL, we don't count the versions of any nodes in that cluster.currentBuildIsSnapshot- is the current build a snapshot? Note: This is alwaysBuild.current().isSnapshot()in production but tests need more controluseAggregateMetricDoubleWhenNotSupported- does the query itself force us to useaggregate_metric_doublefields even if the remotes don't report that they support the type? This exists because some remotes do supportaggregate_metric_doublewithout reporting that they do. And, for a while, we used the query itself to opt into reading these fields.useDenseVectorWhenNotSupported- does the query itself force us to usedense_vectorfields even if the remotes don't report that they support the type? This exists because some remotes do supportdense_vectorwithout reporting that they do. And, for a while, we used the query itself to opt into reading these fields.
- Enclosing class:
IndexResolver
public static record IndexResolver.FieldsInfo(FieldCapabilitiesResponse caps, TransportVersion minTransportVersion, boolean currentBuildIsSnapshot, boolean useAggregateMetricDoubleWhenNotSupported, boolean useDenseVectorWhenNotSupported)
extends Record
Information for resolving a field.
-
Constructor Summary
ConstructorsConstructorDescriptionFieldsInfo(FieldCapabilitiesResponse caps, TransportVersion minTransportVersion, boolean currentBuildIsSnapshot, boolean useAggregateMetricDoubleWhenNotSupported, boolean useDenseVectorWhenNotSupported) Creates an instance of aFieldsInforecord class. -
Method Summary
Modifier and TypeMethodDescriptioncaps()Returns the value of thecapsrecord component.booleanReturns the value of thecurrentBuildIsSnapshotrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theminTransportVersionrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theuseAggregateMetricDoubleWhenNotSupportedrecord component.booleanReturns the value of theuseDenseVectorWhenNotSupportedrecord component.
-
Constructor Details
-
FieldsInfo
public FieldsInfo(FieldCapabilitiesResponse caps, @Nullable TransportVersion minTransportVersion, boolean currentBuildIsSnapshot, boolean useAggregateMetricDoubleWhenNotSupported, boolean useDenseVectorWhenNotSupported) Creates an instance of aFieldsInforecord class.- Parameters:
caps- the value for thecapsrecord componentminTransportVersion- the value for theminTransportVersionrecord componentcurrentBuildIsSnapshot- the value for thecurrentBuildIsSnapshotrecord componentuseAggregateMetricDoubleWhenNotSupported- the value for theuseAggregateMetricDoubleWhenNotSupportedrecord componentuseDenseVectorWhenNotSupported- the value for theuseDenseVectorWhenNotSupportedrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
caps
Returns the value of thecapsrecord component.- Returns:
- the value of the
capsrecord component
-
minTransportVersion
Returns the value of theminTransportVersionrecord component.- Returns:
- the value of the
minTransportVersionrecord component
-
currentBuildIsSnapshot
public boolean currentBuildIsSnapshot()Returns the value of thecurrentBuildIsSnapshotrecord component.- Returns:
- the value of the
currentBuildIsSnapshotrecord component
-
useAggregateMetricDoubleWhenNotSupported
public boolean useAggregateMetricDoubleWhenNotSupported()Returns the value of theuseAggregateMetricDoubleWhenNotSupportedrecord component.- Returns:
- the value of the
useAggregateMetricDoubleWhenNotSupportedrecord component
-
useDenseVectorWhenNotSupported
public boolean useDenseVectorWhenNotSupported()Returns the value of theuseDenseVectorWhenNotSupportedrecord component.- Returns:
- the value of the
useDenseVectorWhenNotSupportedrecord component
-