public static class DatasetKeyInputFormat.ConfigBuilder extends Object
Modifier and Type | Method and Description |
---|---|
DatasetKeyInputFormat.ConfigBuilder |
readFrom(String uri)
Adds configuration for
DatasetKeyInputFormat to read from the
given dataset or view URI string. |
DatasetKeyInputFormat.ConfigBuilder |
readFrom(URI uri)
Adds configuration for
DatasetKeyInputFormat to read from the
given dataset or view URI. |
DatasetKeyInputFormat.ConfigBuilder |
readFrom(View<?> view)
|
<E> DatasetKeyInputFormat.ConfigBuilder |
withType(Class<E> type)
Sets the entity Class that the input Dataset should produce.
|
public DatasetKeyInputFormat.ConfigBuilder readFrom(URI uri)
DatasetKeyInputFormat
to read from the
given dataset or view URI.
URI formats are defined by Dataset
implementations, but must
begin with "dataset:" or "view:". For more information, see
Datasets
.
uri
- a dataset or view URIpublic DatasetKeyInputFormat.ConfigBuilder readFrom(View<?> view)
view
- a dataset or viewpublic DatasetKeyInputFormat.ConfigBuilder readFrom(String uri)
DatasetKeyInputFormat
to read from the
given dataset or view URI string.
URI formats are defined by Dataset
implementations, but must
begin with "dataset:" or "view:". For more information, see
Datasets
.
uri
- a dataset or view URI stringpublic <E> DatasetKeyInputFormat.ConfigBuilder withType(Class<E> type)
This Class is used to configure the input Dataset
. If this class
cannot be found during job setup, the job will fail and throw a
TypeNotFoundException
.
type
- the entity Class that will be producedCopyright © 2013–2014. All rights reserved.