Class FileSystemCreator
- java.lang.Object
-
- org.openstreetmap.atlas.generator.tools.filesystem.FileSystemCreator
-
public class FileSystemCreator extends java.lang.ObjectUtility class that helps create aFileSystemusing some Spark/Hadoop configuration key-values.
-
-
Constructor Summary
Constructors Constructor Description FileSystemCreator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.hadoop.fs.FileSystemget(java.lang.String path, java.util.Map<java.lang.String,java.lang.String> configuration)Create aFileSystemfrom an agnostic configuration maporg.apache.hadoop.fs.FileSystemget(java.lang.String path, org.apache.hadoop.conf.Configuration configuration)Create aFileSystemfrom a HadoopConfigurationorg.apache.hadoop.fs.FileSystemget(java.lang.String path, org.apache.spark.SparkConf configuration)Create aFileSystemfrom aSparkConfstatic java.util.Map<java.lang.String,java.lang.String>resourceFileSystemScheme()
-
-
-
Method Detail
-
resourceFileSystemScheme
public static final java.util.Map<java.lang.String,java.lang.String> resourceFileSystemScheme()
- Returns:
- The configuration needed to get a
ResourceFileSystemsetup.
-
get
public org.apache.hadoop.fs.FileSystem get(java.lang.String path, org.apache.hadoop.conf.Configuration configuration)Create aFileSystemfrom a HadoopConfiguration- Parameters:
path- The path that defines theFileSystemconfiguration- TheConfiguration- Returns:
- The corresponding
FileSystem
-
get
public org.apache.hadoop.fs.FileSystem get(java.lang.String path, java.util.Map<java.lang.String,java.lang.String> configuration)Create aFileSystemfrom an agnostic configuration map- Parameters:
path- The path that defines theFileSystemconfiguration- The agnostic configuration map- Returns:
- The corresponding
FileSystem
-
get
public org.apache.hadoop.fs.FileSystem get(java.lang.String path, org.apache.spark.SparkConf configuration)Create aFileSystemfrom aSparkConf- Parameters:
path- The path that defines theFileSystemconfiguration- TheSparkConf- Returns:
- The corresponding
FileSystem
-
-