org.kitesdk.data.filesystem
Class FileSystemDatasetRepository.Builder

java.lang.Object
  extended by org.kitesdk.data.filesystem.FileSystemDatasetRepository.Builder
Enclosing class:
FileSystemDatasetRepository

public static class FileSystemDatasetRepository.Builder
extends Object

A fluent builder to aid in the construction of FileSystemDatasetRepository instances.

Since:
0.2.0

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

FileSystemDatasetRepository.Builder

public FileSystemDatasetRepository.Builder()
Method Detail

rootDirectory

public FileSystemDatasetRepository.Builder rootDirectory(Path path)
The root directory for metadata and dataset files.

Parameters:
path - a Path to a FileSystem location
Returns:
this Builder for method chaining.

rootDirectory

public FileSystemDatasetRepository.Builder rootDirectory(URI uri)
The root directory for metadata and dataset files.

Parameters:
uri - a URI to a FileSystem location
Returns:
this Builder for method chaining.

rootDirectory

public FileSystemDatasetRepository.Builder rootDirectory(String uri)
                                                  throws URISyntaxException
The root directory for metadata and dataset files.

Parameters:
uri - a String to parse as a URI
Returns:
this Builder for method chaining.
Throws:
URISyntaxException
Since:
0.8.0

fileSystem

public FileSystemDatasetRepository.Builder fileSystem(FileSystem fileSystem)
The FileSystem to store metadata and dataset files in (optional). The FileSystem for the root directory is used if this FileSystem is not set.


metadataProvider

public FileSystemDatasetRepository.Builder metadataProvider(MetadataProvider metadataProvider)
The MetadataProvider for metadata storage (optional). If not specified, a FileSystemMetadataProvider will be used.


configuration

public FileSystemDatasetRepository.Builder configuration(Configuration configuration)
The Configuration used to find the FileSystem (optional). If not specified, the default configuration will be used.

Since:
0.3.0

build

public FileSystemDatasetRepository build()
Build an instance of the configured FileSystemDatasetRepository.

Since:
0.9.0


Copyright © 2013–2014. All rights reserved.