Package org.apache.gravitino.job
Class JobTemplateChange.SparkTemplateUpdate.Builder
java.lang.Object
org.apache.gravitino.job.JobTemplateChange.TemplateUpdate.BaseBuilder<JobTemplateChange.SparkTemplateUpdate.Builder,JobTemplateChange.SparkTemplateUpdate>
org.apache.gravitino.job.JobTemplateChange.SparkTemplateUpdate.Builder
- Enclosing class:
- JobTemplateChange.SparkTemplateUpdate
public static class JobTemplateChange.SparkTemplateUpdate.Builder
extends JobTemplateChange.TemplateUpdate.BaseBuilder<JobTemplateChange.SparkTemplateUpdate.Builder,JobTemplateChange.SparkTemplateUpdate>
Builder class for constructing SparkTemplateUpdate instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the SparkTemplateUpdate instance.self()Returns the builder instance itself for method chaining.withNewArchives(List<String> newArchives) Sets the new archives for the spark job template.withNewClassName(String newClassName) Sets the new class name for the spark job template.withNewConfigs(Map<String, String> newConfigs) Sets the new configs for the spark job template.withNewFiles(List<String> newFiles) Sets the new files for the spark job template.withNewJars(List<String> newJars) Sets the new jars for the spark job template.Methods inherited from class org.apache.gravitino.job.JobTemplateChange.TemplateUpdate.BaseBuilder
withNewArguments, withNewCustomFields, withNewEnvironments, withNewExecutable
-
Method Details
-
withNewClassName
Sets the new class name for the spark job template.- Parameters:
newClassName- The new class name to set.- Returns:
- The builder instance for chaining.
-
withNewJars
Sets the new jars for the spark job template.- Parameters:
newJars- The new jars to set.- Returns:
- The builder instance for chaining.
-
withNewFiles
Sets the new files for the spark job template.- Parameters:
newFiles- The new files to set.- Returns:
- The builder instance for chaining.
-
withNewArchives
Sets the new archives for the spark job template.- Parameters:
newArchives- The new archives to set.- Returns:
- The builder instance for chaining.
-
withNewConfigs
Sets the new configs for the spark job template.- Parameters:
newConfigs- The new configs to set.- Returns:
- The builder instance for chaining.
-
build
Builds the SparkTemplateUpdate instance.- Specified by:
buildin classJobTemplateChange.TemplateUpdate.BaseBuilder<JobTemplateChange.SparkTemplateUpdate.Builder,JobTemplateChange.SparkTemplateUpdate> - Returns:
- A new SparkTemplateUpdate instance.
-
self
Returns the builder instance itself for method chaining.- Specified by:
selfin classJobTemplateChange.TemplateUpdate.BaseBuilder<JobTemplateChange.SparkTemplateUpdate.Builder,JobTemplateChange.SparkTemplateUpdate> - Returns:
- The builder instance.
-