public class DataSourceParameter extends Object
Constructor and Description |
---|
DataSourceParameter() |
Modifier and Type | Method and Description |
---|---|
List<DataSourceInfo> |
getAllDataSourceInfo()
Returns the all available Direct I/O data sources.
|
org.apache.hadoop.conf.Configuration |
getConfiguration()
Returns the Hadoop configuration.
|
Optional<DataSourceInfo> |
getDataSourceInfo()
Returns the data source information.
|
DataSourceInfo |
getDataSourceInfo(BasePath path)
Returns the data source information for the path.
|
org.apache.hadoop.fs.FileSystem |
getHadoopFileSystem(org.apache.hadoop.fs.Path path)
Returns the Hadoop file system for the path.
|
DirectDataSourceRepository |
getRepository()
Returns the repository.
|
DirectIoPath |
resolve(String path)
Resolves the given path.
|
org.apache.hadoop.fs.Path |
resolveAsHadoopPath(String path)
Resolves the given path as Hadoop file system path.
|
public org.apache.hadoop.conf.Configuration getConfiguration()
public DirectDataSourceRepository getRepository()
public Optional<DataSourceInfo> getDataSourceInfo()
empty
if it is not specified.public DataSourceInfo getDataSourceInfo(BasePath path)
path
- the target pathpublic List<DataSourceInfo> getAllDataSourceInfo()
public DirectIoPath resolve(String path)
path
- the path stringpublic org.apache.hadoop.fs.Path resolveAsHadoopPath(String path)
path
- the Direct I/O path stringpublic org.apache.hadoop.fs.FileSystem getHadoopFileSystem(org.apache.hadoop.fs.Path path)
path
- the target pathCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.