Class SyntheticDataParams.Builder
java.lang.Object
com.oracle.database.selectai.model.SyntheticDataParams.Builder
- Enclosing class:
SyntheticDataParams
Builder for
SyntheticDataParams.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the synthetic data parameter payload.Sets whether table comments should be used as context during synthetic data generation.priority(SyntheticDataParams.Priority priority) Sets the priority used for synthetic data generation.Sets the priority used for synthetic data generation.sampleRows(Integer sampleRows) Sets the number of table rows sampled to guide synthetic data generation.tableStatistics(Boolean tableStatistics) Sets whether table statistics should be used during synthetic data generation.
-
Constructor Details
-
Builder
public Builder()Creates an empty builder.
-
-
Method Details
-
sampleRows
Sets the number of table rows sampled to guide synthetic data generation.The value must be between 0 and 100, inclusive, when specified. A value of 0 indicates that no sample rows are used.
- Parameters:
sampleRows- sample-row value, from 0 through 100, ornullwhen unset- Returns:
- this builder instance
- Throws:
IllegalArgumentException- ifsampleRowsis less than 0 or greater than 100
-
tableStatistics
Sets whether table statistics should be used during synthetic data generation.- Parameters:
tableStatistics- whether table statistics should be used, ornullwhen unset- Returns:
- this builder instance
-
priority
Sets the priority used for synthetic data generation.The supported values are
HIGH,MEDIUM, andLOW. The comparison is case-insensitive; the value stored by the builder is normalized to upper case.- Parameters:
priority- priority value (HIGH,MEDIUM, orLOW), ornullwhen unset- Returns:
- this builder instance
- Throws:
IllegalArgumentException- ifpriorityis not one of the supported values
-
priority
Sets the priority used for synthetic data generation.- Parameters:
priority- priority value, ornullwhen unset- Returns:
- this builder instance
-
comments
Sets whether table comments should be used as context during synthetic data generation.- Parameters:
comments- whether comments should be used, ornullwhen unset- Returns:
- this builder instance
-
build
Builds the synthetic data parameter payload.SDK-level validation is applied when individual values are set. Database-specific and semantic validation remains delegated to
DBMS_CLOUD_AIand Oracle Database.- Returns:
- immutable
SyntheticDataParamsinstance built from the current builder state
-