public abstract class Output extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Output.DatasetOutput
|
static class |
Output.OutputFormatProviderOutput
An implementation of
Output , which defines an OutputFormatProvider as an
output. |
Modifier and Type | Method and Description |
---|---|
Output |
alias(String alias)
Sets an alias to be used as the output name.
|
Output |
fromNamespace(String namespace)
Sets the namespace of the output.
|
String |
getAlias() |
String |
getName() |
String |
getNamespace() |
static Output |
of(String outputName,
OutputFormatProvider outputFormatProvider)
Returns an Output defined by an OutputFormatProvider.
|
static Output |
ofDataset(String datasetName)
Returns an Output defined by a dataset.
|
static Output |
ofDataset(String datasetName,
Map<String,String> arguments)
Returns an Output defined by a dataset.
|
protected Output(String name)
public String getName()
public Output fromNamespace(String namespace)
namespace
- the namespace of the outputpublic String getAlias()
public Output alias(String alias)
alias
- the alias to be set for this Outputpublic static Output ofDataset(String datasetName)
datasetName
- the name of the output datasetpublic static Output ofDataset(String datasetName, Map<String,String> arguments)
datasetName
- the name of the output datasetarguments
- the arguments to use when instantiating the datasetpublic static Output of(String outputName, OutputFormatProvider outputFormatProvider)
outputName
- the name of the outputoutputFormatProvider
- an instance of an OutputFormatProvider. It can not be an
instance of a DatasetOutputCommitter
.Copyright © 2023 Cask Data, Inc. Licensed under the Apache License, Version 2.0.