Record Class AnalyzerSettings
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.analysis.AnalyzerSettings
public record AnalyzerSettings(int resultTruncationMaxSize, int resultTruncationDefaultSize, int timeseriesResultTruncationMaxSize, int timeseriesResultTruncationDefaultSize)
extends Record
Values for cluster level settings used during query analysis.
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
ConstructorsConstructorDescriptionAnalyzerSettings(int resultTruncationMaxSize, int resultTruncationDefaultSize, int timeseriesResultTruncationMaxSize, int timeseriesResultTruncationDefaultSize) Creates an instance of aAnalyzerSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theresultTruncationDefaultSizerecord component.intReturns the value of theresultTruncationMaxSizerecord component.intReturns the value of thetimeseriesResultTruncationDefaultSizerecord component.intReturns the value of thetimeseriesResultTruncationMaxSizerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
QUERY_RESULT_TRUNCATION_MAX_SIZE
-
QUERY_RESULT_TRUNCATION_DEFAULT_SIZE
-
QUERY_TIMESERIES_RESULT_TRUNCATION_DEFAULT_SIZE
-
QUERY_TIMESERIES_RESULT_TRUNCATION_MAX_SIZE
-
-
Constructor Details
-
AnalyzerSettings
public AnalyzerSettings(int resultTruncationMaxSize, int resultTruncationDefaultSize, int timeseriesResultTruncationMaxSize, int timeseriesResultTruncationDefaultSize) Creates an instance of aAnalyzerSettingsrecord class.- Parameters:
resultTruncationMaxSize- the value for theresultTruncationMaxSizerecord componentresultTruncationDefaultSize- the value for theresultTruncationDefaultSizerecord componenttimeseriesResultTruncationMaxSize- the value for thetimeseriesResultTruncationMaxSizerecord componenttimeseriesResultTruncationDefaultSize- the value for thetimeseriesResultTruncationDefaultSizerecord 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. All components in this record class are compared with '=='. -
resultTruncationMaxSize
public int resultTruncationMaxSize()Returns the value of theresultTruncationMaxSizerecord component.- Returns:
- the value of the
resultTruncationMaxSizerecord component
-
resultTruncationDefaultSize
public int resultTruncationDefaultSize()Returns the value of theresultTruncationDefaultSizerecord component.- Returns:
- the value of the
resultTruncationDefaultSizerecord component
-
timeseriesResultTruncationMaxSize
public int timeseriesResultTruncationMaxSize()Returns the value of thetimeseriesResultTruncationMaxSizerecord component.- Returns:
- the value of the
timeseriesResultTruncationMaxSizerecord component
-
timeseriesResultTruncationDefaultSize
public int timeseriesResultTruncationDefaultSize()Returns the value of thetimeseriesResultTruncationDefaultSizerecord component.- Returns:
- the value of the
timeseriesResultTruncationDefaultSizerecord component
-