@Beta public final class SparkSpecification extends AbstractProgramSpecification implements PropertyProvider
Spark
programsConstructor and Description |
---|
SparkSpecification(String className,
String name,
String description,
String mainClassName,
Set<String> datasets,
Map<String,String> properties,
Resources clientResources,
Resources driverResources,
Resources executorResources,
List<SparkHttpServiceHandlerSpecification> handlers,
Map<String,Plugin> plugins) |
Modifier and Type | Method and Description |
---|---|
Resources |
getClientResources() |
Set<String> |
getDatasets()
Returns the set of static datasets used by the Spark program.
|
Resources |
getDriverResources() |
Resources |
getExecutorResources() |
List<SparkHttpServiceHandlerSpecification> |
getHandlers() |
String |
getMainClassName()
Get the main class name for the Spark program.
|
Map<String,String> |
getProperties()
Returns an immutable Map of all properties.
|
String |
getProperty(String key)
Return the property value of a given key.
|
getClassName, getDescription, getName, getPlugins
public SparkSpecification(String className, String name, String description, @Nullable String mainClassName, Set<String> datasets, Map<String,String> properties, @Nullable Resources clientResources, @Nullable Resources driverResources, @Nullable Resources executorResources, List<SparkHttpServiceHandlerSpecification> handlers, Map<String,Plugin> plugins)
@Nullable public String getMainClassName()
null
if it was not setpublic Map<String,String> getProperties()
PropertyProvider
getProperties
in interface PropertyProvider
public Set<String> getDatasets()
public String getProperty(String key)
PropertyProvider
getProperty
in interface PropertyProvider
key
- for getting specific property value.null
if not such key exists.@Nullable public Resources getClientResources()
null
if not specified.@Nullable public Resources getDriverResources()
null
if not specified.@Nullable public Resources getExecutorResources()
null
if not
specified.public List<SparkHttpServiceHandlerSpecification> getHandlers()
List
of SparkHttpServiceHandlerSpecification
defined for the Spark
program.Copyright © 2024 Cask Data, Inc. Licensed under the Apache License, Version 2.0.