Package org.gridgain.ml.model
Class MlSqlJobParameters
java.lang.Object
org.gridgain.ml.model.ModelInfo
org.gridgain.ml.model.MlJobParameters
org.gridgain.ml.model.MlSqlJobParameters
- All Implemented Interfaces:
Serializable
Machine Learning Job parameters for SQL-based prediction operations.
This class handles SQL query-based prediction operations.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for MlSqlJobParameters.Nested classes/interfaces inherited from class org.gridgain.ml.model.MlJobParameters
MlJobParameters.OperationTypeNested classes/interfaces inherited from class org.gridgain.ml.model.ModelInfo
ModelInfo.ModelStatus -
Method Summary
Modifier and TypeMethodDescriptionstatic MlSqlJobParameters.Builderbuilder()Creates a new builder.Gets the input column name.intlimit()Gets the limit for number of rows to process.voidsetInputColumn(String inputColumn) Sets the input column name.voidsetLimit(int limit) Sets the limit for number of rows to process.voidsetSqlParams(Serializable[] sqlParams) Sets the SQL parameters.voidsetSqlQuery(String sqlQuery) Sets the SQL query.Object[]Gets the SQL parameters.sqlQuery()Gets the SQL query.toString()Creates and returns a string representation of the parameters.protected voidAbstract method for operation-specific validation.Methods inherited from class org.gridgain.ml.model.MlJobParameters
customInputMarshaller, customInputMarshaller, customJobClass, customJobClass, customOutputMarshaller, customOutputMarshaller, hasCustomComponents, hasUrl, operationType, operationType, timeoutSeconds, timeoutSeconds, validateMethods inherited from class org.gridgain.ml.model.ModelInfo
config, id, inputClass, isLoaded, loadTimestamp, name, outputClass, properties, property, property, setInputClass, setLoaded, setOutputClass, setProperty, setStatus, setTranslator, setTranslatorFactory, setUrl, setVersion, status, translator, translatorFactory, type, url, version
-
Method Details
-
sqlQuery
Gets the SQL query.- Returns:
- SQL query
-
setSqlQuery
Sets the SQL query.- Parameters:
sqlQuery- SQL query
-
inputColumn
Gets the input column name.- Returns:
- Input column name
-
setInputColumn
Sets the input column name.- Parameters:
inputColumn- Input column name
-
sqlParams
Gets the SQL parameters.- Returns:
- SQL parameters
-
setSqlParams
Sets the SQL parameters.- Parameters:
sqlParams- SQL parameters
-
limit
public int limit()Gets the limit for number of rows to process.- Returns:
- limit
-
setLimit
public void setLimit(int limit) Sets the limit for number of rows to process.- Parameters:
limit- row limit (1-5000)
-
validateOperationSpecific
protected void validateOperationSpecific()Abstract method for operation-specific validation. Subclasses must implement this method to validate their specific fields.- Specified by:
validateOperationSpecificin classMlJobParameters
-
builder
Creates a new builder.- Returns:
- Builder instance
-
toString
Creates and returns a string representation of the parameters.- Overrides:
toStringin classMlJobParameters- Returns:
- string representation
-