@Beta public interface BatchContext extends DatasetContext, TransformContext
| Modifier and Type | Method and Description |
|---|---|
void |
createDataset(String datasetName,
String typeName,
DatasetProperties properties)
Create a new dataset instance.
|
boolean |
datasetExists(String datasetName)
Check whether a dataset exists in the current namespace.
|
<T> T |
getHadoopJob()
Deprecated.
this method will be removed.
|
long |
getLogicalStartTime()
Returns the logical start time of the Batch Job.
|
Map<String,String> |
getRuntimeArguments()
Returns runtime arguments of the Batch Job.
|
void |
setRuntimeArgument(String key,
String value,
boolean overwrite)
Updates an entry in the runtime arguments.
|
discardDataset, getDataset, getDataset, getDataset, getDataset, releaseDatasetgetMetrics, getPluginProperties, getPluginProperties, getStageName, loadPluginClass, newPluginInstanceprovidevoid createDataset(String datasetName, String typeName, DatasetProperties properties) throws DatasetManagementException
datasetName - the name of the new datasettypeName - the type of the dataset to createproperties - the properties for the new datasetInstanceConflictException - if the dataset already existsDatasetManagementException - for any issues encountered in the dataset system,
or if the dataset type's create method fails.boolean datasetExists(String datasetName) throws DatasetManagementException
datasetName - the name of the datasetDatasetManagementException - for any issues encountered in the dataset systemlong getLogicalStartTime()
Map<String,String> getRuntimeArguments()
void setRuntimeArgument(String key, String value, boolean overwrite)
key - key to updatevalue - value to update tooverwrite - if true and if the key exists in the runtime arguments, it will get overwritten to
the given value; if false, the existing value of the key won't get updated.@Deprecated <T> T getHadoopJob()
Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.