public class HDFSFactory extends Object implements Factory<org.apache.hadoop.fs.FileSystem>
| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID
|
| Constructor and Description |
|---|
HDFSFactory()
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.hadoop.fs.FileSystem |
get()
Get an existing Hadoop DistributedFileSystem instance.
|
static org.apache.hadoop.fs.FileSystem |
newInstance()
Produce a new Hadoop DistributedFileSystem instance.
|
org.apache.hadoop.fs.FileSystem |
produce()
Produce a new Hadoop DistributedFileSystem instance.
|
private static final long serialVersionUID
@Nonnull public org.apache.hadoop.fs.FileSystem produce() throws IOException
produce in
interface Factory<org.apache.hadoop.fs.FileSystem>
IOException - on failure creating a new instance.
public static org.apache.hadoop.fs.FileSystem newInstance()
throws IOException
IOException - on failure creating a new
instance.
public static org.apache.hadoop.fs.FileSystem get()
throws IOException
IOException - on failure creating a new
instance.