public abstract class Input extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Input.DatasetInput
|
static class |
Input.InputFormatProviderInput
An implementation of
Input , which defines an InputFormatProvider as an input. |
Modifier and Type | Method and Description |
---|---|
Input |
alias(String alias)
Sets an alias to be used as the input name.
|
Input |
fromNamespace(String namespace)
Sets the namespace of the input.
|
String |
getAlias() |
String |
getName() |
String |
getNamespace() |
static Input |
of(String inputName,
InputFormatProvider inputFormatProvider)
Returns an Input defined by an InputFormatProvider.
|
static Input |
ofDataset(String datasetName)
Returns an Input defined by a dataset.
|
static Input |
ofDataset(String datasetName,
Iterable<? extends Split> splits)
Returns an Input defined by a dataset.
|
static Input |
ofDataset(String datasetName,
Map<String,String> arguments)
Returns an Input defined by a dataset.
|
static Input |
ofDataset(String datasetName,
Map<String,String> arguments,
Iterable<? extends Split> splits)
Returns an Input defined by a dataset.
|
public String getName()
public Input fromNamespace(String namespace)
namespace
- the namespace of the inputpublic String getAlias()
public Input alias(String alias)
alias
- the alias to be set for this Inputpublic static Input ofDataset(String datasetName)
datasetName
- the name of the input datasetpublic static Input ofDataset(String datasetName, Map<String,String> arguments)
datasetName
- the name of the input datasetarguments
- the arguments to use when instantiating the datasetpublic static Input ofDataset(String datasetName, @Nullable Iterable<? extends Split> splits)
datasetName
- the name of the input datasetsplits
- the data selection splits. If null, will use the splits defined by the dataset. If the dataset
type is not BatchReadable
, splits will be ignoredpublic static Input ofDataset(String datasetName, Map<String,String> arguments, @Nullable Iterable<? extends Split> splits)
datasetName
- the name of the input datasetarguments
- the arguments to use when instantiating the datasetsplits
- the data selection splits. If null, will use the splits defined by the dataset. If the dataset
type is not BatchReadable
, splits will be ignoredpublic static Input of(String inputName, InputFormatProvider inputFormatProvider)
inputName
- the name of the inputCopyright © 2022 Cask Data, Inc. Licensed under the Apache License, Version 2.0.