Module org.elasticsearch.server
Record Class BlockLoaderFunctionConfig.TimeSeriesMetadata
java.lang.Object
java.lang.Record
org.elasticsearch.index.mapper.blockloader.BlockLoaderFunctionConfig.TimeSeriesMetadata
- All Implemented Interfaces:
BlockLoaderFunctionConfig
- Enclosing interface:
BlockLoaderFunctionConfig
public static record BlockLoaderFunctionConfig.TimeSeriesMetadata(boolean loadMetrics, Set<String> withoutFields)
extends Record
implements BlockLoaderFunctionConfig
Configuration for loading time-series metadata fields from
_source.
Controls which field types to include (dimensions, metrics, or both) and which dimensions to exclude.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.index.mapper.blockloader.BlockLoaderFunctionConfig
BlockLoaderFunctionConfig.Function, BlockLoaderFunctionConfig.JustFunction, BlockLoaderFunctionConfig.TimeSeriesMetadata -
Constructor Summary
ConstructorsConstructorDescriptionTimeSeriesMetadata(boolean loadMetrics, Set<String> withoutFields) Creates an instance of aTimeSeriesMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.function()Name used in descriptions.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theloadMetricsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewithoutFieldsrecord component.
-
Constructor Details
-
TimeSeriesMetadata
Creates an instance of aTimeSeriesMetadatarecord class.- Parameters:
loadMetrics- the value for theloadMetricsrecord componentwithoutFields- the value for thewithoutFieldsrecord component
-
-
Method Details
-
function
Description copied from interface:BlockLoaderFunctionConfigName used in descriptions.- Specified by:
functionin interfaceBlockLoaderFunctionConfig
-
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 '=='. -
loadMetrics
public boolean loadMetrics()Returns the value of theloadMetricsrecord component.- Returns:
- the value of the
loadMetricsrecord component
-
withoutFields
Returns the value of thewithoutFieldsrecord component.- Returns:
- the value of the
withoutFieldsrecord component
-