org.kitesdk.data.hcatalog
Class HCatalogDatasetRepository.Builder

java.lang.Object
  extended by org.kitesdk.data.hcatalog.HCatalogDatasetRepository.Builder
Enclosing class:
HCatalogDatasetRepository

public static class HCatalogDatasetRepository.Builder
extends Object

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

Since:
0.3.0

Constructor Summary
HCatalogDatasetRepository.Builder()
           
 
Method Summary
 DatasetRepository build()
          Build an instance of the configured HCatalogDatasetRepository.
 HCatalogDatasetRepository.Builder configuration(Configuration configuration)
          The Configuration used to find the FileSystem.
 HCatalogDatasetRepository.Builder rootDirectory(Path path)
          The root directory for dataset files.
 HCatalogDatasetRepository.Builder rootDirectory(String uri)
          The root directory for metadata and dataset files.
 HCatalogDatasetRepository.Builder rootDirectory(URI uri)
          The root directory for dataset files.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HCatalogDatasetRepository.Builder

public HCatalogDatasetRepository.Builder()
Method Detail

rootDirectory

public HCatalogDatasetRepository.Builder rootDirectory(Path path)
The root directory for dataset files.


rootDirectory

public HCatalogDatasetRepository.Builder rootDirectory(URI uri)
The root directory for dataset files.


rootDirectory

public HCatalogDatasetRepository.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

configuration

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


build

public DatasetRepository build()
Build an instance of the configured HCatalogDatasetRepository.

Since:
0.9.0


Copyright © 2013–2014. All rights reserved.