@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.
|
SettableArguments |
getArguments()
Returns settable pipeline arguments.
|
discardDataset, getDataset, getDataset, getDataset, getDataset, releaseDataset
getFailureCollector, getInputSchema, getInputSchemas, getInputStages, getLogicalStartTime, getMetrics, getNamespace, getOutputPortSchemas, getOutputSchema, getPipelineName, getPluginProperties, getPluginProperties, getStageName, loadPluginClass, newPluginInstance
getServiceURL, getServiceURL, getServiceURL, openConnection
getMetadata, getMetadata
addProperties, addTags, addTags, removeMetadata, removeProperties, removeProperties, removeTags, removeTags
record
provide
void 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 systemSettableArguments getArguments()
getArguments
in interface StageContext
Copyright © 2021 Cask Data, Inc. Licensed under the Apache License, Version 2.0.