Record Class InferenceSettings
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.inference.InferenceSettings
public record InferenceSettings(boolean completionEnabled, int completionRowLimit, boolean rerankEnabled, int rerankRowLimit)
extends Record
Settings for inference features such as completion and rerank.
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
ConstructorsConstructorDescriptionInferenceSettings(boolean completionEnabled, int completionRowLimit, boolean rerankEnabled, int rerankRowLimit) Creates an instance of aInferenceSettingsrecord class.InferenceSettings(Settings settings) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecompletionEnabledrecord component.intReturns the value of thecompletionRowLimitrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thererankEnabledrecord component.intReturns the value of thererankRowLimitrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
COMPLETION_ENABLED_SETTING
-
COMPLETION_ROW_LIMIT_SETTING
-
RERANK_ENABLED_SETTING
-
RERANK_ROW_LIMIT_SETTING
-
-
Constructor Details
-
InferenceSettings
-
InferenceSettings
public InferenceSettings(boolean completionEnabled, int completionRowLimit, boolean rerankEnabled, int rerankRowLimit) Creates an instance of aInferenceSettingsrecord class.- Parameters:
completionEnabled- the value for thecompletionEnabledrecord componentcompletionRowLimit- the value for thecompletionRowLimitrecord componentrerankEnabled- the value for thererankEnabledrecord componentrerankRowLimit- the value for thererankRowLimitrecord component
-
-
Method Details
-
getSettings
-
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 '=='. -
completionEnabled
public boolean completionEnabled()Returns the value of thecompletionEnabledrecord component.- Returns:
- the value of the
completionEnabledrecord component
-
completionRowLimit
public int completionRowLimit()Returns the value of thecompletionRowLimitrecord component.- Returns:
- the value of the
completionRowLimitrecord component
-
rerankEnabled
public boolean rerankEnabled()Returns the value of thererankEnabledrecord component.- Returns:
- the value of the
rerankEnabledrecord component
-
rerankRowLimit
public int rerankRowLimit()Returns the value of thererankRowLimitrecord component.- Returns:
- the value of the
rerankRowLimitrecord component
-