public class HDFSAnalyticsFileSystem extends Object implements org.wso2.carbon.analytics.datasource.core.fs.AnalyticsFileSystem
AnalyticsFileSystem - implementation.| Modifier and Type | Class and Description |
|---|---|
class |
HDFSAnalyticsFileSystem.HDFSDataInput
HDFS Implementation of
AnalyticsFileSystem.DataInput |
static class |
HDFSAnalyticsFileSystem.HDFSOutputStream |
static class |
HDFSAnalyticsFileSystem.HDFSRuntimeException |
org.wso2.carbon.analytics.datasource.core.fs.AnalyticsFileSystem.DataInput| Constructor and Description |
|---|
HDFSAnalyticsFileSystem() |
HDFSAnalyticsFileSystem(org.apache.hadoop.fs.FileSystem fs) |
| Modifier and Type | Method and Description |
|---|---|
org.wso2.carbon.analytics.datasource.core.fs.AnalyticsFileSystem.DataInput |
createInput(String source) |
OutputStream |
createOutput(String source) |
void |
delete(String source) |
void |
destroy() |
boolean |
exists(String source) |
void |
init(Map<String,String> properties) |
long |
length(String source) |
List<String> |
list(String source) |
void |
mkdir(String source) |
void |
renameFileInDirectory(String dirPath,
String nameFrom,
String nameTo) |
void |
sync(String source) |
public HDFSAnalyticsFileSystem(org.apache.hadoop.fs.FileSystem fs)
throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsExceptionpublic HDFSAnalyticsFileSystem()
public void init(Map<String,String> properties) throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
init in interface org.wso2.carbon.analytics.datasource.core.fs.AnalyticsFileSystemorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsExceptionpublic boolean exists(String source) throws IOException
exists in interface org.wso2.carbon.analytics.datasource.core.fs.AnalyticsFileSystemIOExceptionpublic List<String> list(String source) throws IOException
list in interface org.wso2.carbon.analytics.datasource.core.fs.AnalyticsFileSystemIOExceptionpublic void delete(String source) throws IOException
delete in interface org.wso2.carbon.analytics.datasource.core.fs.AnalyticsFileSystemIOExceptionpublic void mkdir(String source) throws IOException
mkdir in interface org.wso2.carbon.analytics.datasource.core.fs.AnalyticsFileSystemIOExceptionpublic org.wso2.carbon.analytics.datasource.core.fs.AnalyticsFileSystem.DataInput createInput(String source) throws IOException
createInput in interface org.wso2.carbon.analytics.datasource.core.fs.AnalyticsFileSystemIOExceptionpublic OutputStream createOutput(String source) throws IOException
createOutput in interface org.wso2.carbon.analytics.datasource.core.fs.AnalyticsFileSystemIOExceptionpublic void sync(String source) throws IOException
sync in interface org.wso2.carbon.analytics.datasource.core.fs.AnalyticsFileSystemIOExceptionpublic long length(String source) throws IOException
length in interface org.wso2.carbon.analytics.datasource.core.fs.AnalyticsFileSystemIOExceptionpublic void destroy()
throws IOException
destroy in interface org.wso2.carbon.analytics.datasource.core.fs.AnalyticsFileSystemIOExceptionpublic void renameFileInDirectory(String dirPath, String nameFrom, String nameTo) throws IOException
renameFileInDirectory in interface org.wso2.carbon.analytics.datasource.core.fs.AnalyticsFileSystemIOExceptionCopyright © 2015 WSO2. All rights reserved.