public final class FileSetDataset extends Object implements co.cask.cdap.api.dataset.lib.FileSet
| Constructor and Description |
|---|
FileSetDataset(co.cask.cdap.api.dataset.DatasetContext datasetContext,
CConfiguration cConf,
co.cask.cdap.api.dataset.DatasetSpecification spec,
LocationFactory absoluteLocationFactory,
NamespacedLocationFactory namespacedLocationFactory,
Map<String,String> runtimeArguments)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Location |
getBaseLocation() |
String |
getInputFormatClassName() |
Map<String,String> |
getInputFormatConfiguration() |
Map<String,String> |
getInputFormatConfiguration(Iterable<? extends Location> inputLocs) |
List<Location> |
getInputLocations() |
Location |
getLocation(String relativePath) |
String |
getOutputFormatClassName() |
Map<String,String> |
getOutputFormatConfiguration() |
Location |
getOutputLocation() |
Map<String,String> |
getRuntimeArguments() |
public FileSetDataset(co.cask.cdap.api.dataset.DatasetContext datasetContext,
CConfiguration cConf,
co.cask.cdap.api.dataset.DatasetSpecification spec,
LocationFactory absoluteLocationFactory,
NamespacedLocationFactory namespacedLocationFactory,
@Nonnull
Map<String,String> runtimeArguments)
throws IOException
datasetContext - the context for the datasetcConf - the CDAP configurationspec - the dataset specificationnamespacedLocationFactory - a factory for namespaced LocationruntimeArguments - the runtime argumentsIOExceptionpublic Location getBaseLocation()
getBaseLocation in interface co.cask.cdap.api.dataset.lib.FileSetpublic List<Location> getInputLocations()
getInputLocations in interface co.cask.cdap.api.dataset.lib.FileSetpublic Location getOutputLocation()
getOutputLocation in interface co.cask.cdap.api.dataset.lib.FileSetpublic Location getLocation(String relativePath)
getLocation in interface co.cask.cdap.api.dataset.lib.FileSetpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic String getInputFormatClassName()
getInputFormatClassName in interface co.cask.cdap.api.data.batch.InputFormatProviderpublic Map<String,String> getInputFormatConfiguration()
getInputFormatConfiguration in interface co.cask.cdap.api.data.batch.InputFormatProviderpublic Map<String,String> getInputFormatConfiguration(Iterable<? extends Location> inputLocs)
getInputFormatConfiguration in interface co.cask.cdap.api.dataset.lib.FileSetpublic String getOutputFormatClassName()
getOutputFormatClassName in interface co.cask.cdap.api.data.batch.OutputFormatProviderpublic Map<String,String> getOutputFormatConfiguration()
getOutputFormatConfiguration in interface co.cask.cdap.api.data.batch.OutputFormatProviderCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.