Module org.elasticsearch.compute
Record Class MetricsInfoOperator.Factory
java.lang.Object
java.lang.Record
org.elasticsearch.compute.operator.MetricsInfoOperator.Factory
- Record Components:
fieldLookup- on-demand lookup for metric field metadatametadataSourceChannel- channel index for_timeseries_metadatablockindexChannel- channel index for_indexblock
- All Implemented Interfaces:
Describable,Operator.OperatorFactory
- Enclosing class:
MetricsInfoOperator
public static record MetricsInfoOperator.Factory(MetricsInfoOperator.MetricFieldLookup fieldLookup, int metadataSourceChannel, int indexChannel)
extends Record
implements Operator.OperatorFactory
Factory for INITIAL mode (data nodes): extracts metric metadata from shards.
-
Constructor Summary
ConstructorsConstructorDescriptionFactory(MetricsInfoOperator.MetricFieldLookup fieldLookup, int metadataSourceChannel, int indexChannel) Creates an instance of aFactoryrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondescribe()Returns a description of the component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefieldLookuprecord component.get(DriverContext driverContext) Creates a new intermediate operator.final inthashCode()Returns a hash code value for this object.intReturns the value of theindexChannelrecord component.intReturns the value of themetadataSourceChannelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Factory
public Factory(MetricsInfoOperator.MetricFieldLookup fieldLookup, int metadataSourceChannel, int indexChannel) Creates an instance of aFactoryrecord class.- Parameters:
fieldLookup- the value for thefieldLookuprecord componentmetadataSourceChannel- the value for themetadataSourceChannelrecord componentindexChannel- the value for theindexChannelrecord component
-
-
Method Details
-
get
Description copied from interface:Operator.OperatorFactoryCreates a new intermediate operator.- Specified by:
getin interfaceOperator.OperatorFactory
-
describe
Description copied from interface:DescribableReturns a description of the component. This description can be more specific than Object::toString.- Specified by:
describein interfaceDescribable- Returns:
- the description
-
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 '=='. -
fieldLookup
Returns the value of thefieldLookuprecord component.- Returns:
- the value of the
fieldLookuprecord component
-
metadataSourceChannel
public int metadataSourceChannel()Returns the value of themetadataSourceChannelrecord component.- Returns:
- the value of the
metadataSourceChannelrecord component
-
indexChannel
public int indexChannel()Returns the value of theindexChannelrecord component.- Returns:
- the value of the
indexChannelrecord component
-