public class LoadFuncHelper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FILE_EXTENSION_LOADERS |
| Constructor and Description |
|---|
LoadFuncHelper(org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.fs.Path |
determineFirstFile(java.lang.String location)
If location is a directory the first file found is returned
|
FuncSpec |
determineFunction(java.lang.String location)
If location is a directory the first file found in the directory is used.
The file extension of the file will be searched against the file.extension.loaders mappings. |
FuncSpec |
determineFunction(java.lang.String location,
org.apache.hadoop.fs.Path path)
The file extension of the file will be searched against the
file.extension.loaders mappings.
|
public static final java.lang.String FILE_EXTENSION_LOADERS
public LoadFuncHelper(org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException
java.io.IOExceptionpublic org.apache.hadoop.fs.Path determineFirstFile(java.lang.String location)
throws java.io.IOException
location - java.io.IOException - if no file is found a FrontendException is thrownpublic FuncSpec determineFunction(java.lang.String location) throws java.io.IOException
location - java.io.IOExceptionpublic FuncSpec determineFunction(java.lang.String location, org.apache.hadoop.fs.Path path) throws java.io.IOException
path - location - java.io.IOExceptionCopyright © 2007-2012 The Apache Software Foundation