|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kitesdk.data.filesystem.FileSystemDatasetRepository.Builder
public static class FileSystemDatasetRepository.Builder
A fluent builder to aid in the construction of FileSystemDatasetRepository
instances.
Constructor Summary | |
---|---|
FileSystemDatasetRepository.Builder()
|
Method Summary | |
---|---|
FileSystemDatasetRepository |
build()
Build an instance of the configured FileSystemDatasetRepository . |
FileSystemDatasetRepository.Builder |
configuration(Configuration configuration)
The Configuration used to find the FileSystem (optional). |
FileSystemDatasetRepository.Builder |
fileSystem(FileSystem fileSystem)
The FileSystem to store metadata and dataset files in (optional). |
FileSystemDatasetRepository.Builder |
metadataProvider(MetadataProvider metadataProvider)
The MetadataProvider for metadata storage (optional). |
FileSystemDatasetRepository.Builder |
rootDirectory(Path path)
The root directory for metadata and dataset files. |
FileSystemDatasetRepository.Builder |
rootDirectory(String uri)
The root directory for metadata and dataset files. |
FileSystemDatasetRepository.Builder |
rootDirectory(URI uri)
The root directory for metadata and dataset files. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileSystemDatasetRepository.Builder()
Method Detail |
---|
public FileSystemDatasetRepository.Builder rootDirectory(Path path)
path
- a Path to a FileSystem location
public FileSystemDatasetRepository.Builder rootDirectory(URI uri)
uri
- a URI to a FileSystem location
public FileSystemDatasetRepository.Builder rootDirectory(String uri) throws URISyntaxException
uri
- a String to parse as a URI
URISyntaxException
public FileSystemDatasetRepository.Builder fileSystem(FileSystem fileSystem)
FileSystem
to store metadata and dataset files in (optional).
The FileSystem for the root directory is used if this FileSystem is not
set.
public FileSystemDatasetRepository.Builder metadataProvider(MetadataProvider metadataProvider)
MetadataProvider
for metadata storage (optional). If not
specified, a FileSystemMetadataProvider
will be used.
public FileSystemDatasetRepository.Builder configuration(Configuration configuration)
Configuration
used to find the FileSystem
(optional).
If not specified, the default configuration will be used.
public FileSystemDatasetRepository build()
FileSystemDatasetRepository
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |