Class HdfsClientImpl
java.lang.Object
eu.dnetlib.data.mdstore.manager.utils.HdfsClientImpl
- All Implemented Interfaces:
HdfsClient
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeletePath(String path) static booleanisMdStoreOrVersionDir(org.apache.hadoop.fs.FileStatus fileStatus) static booleanisParquetFile(org.apache.hadoop.fs.FileStatus fileStatus) listContent(String path) readParquetFiles(String path, long limit) voidsetHadoopCluster(String hadoopCluster) voidsetHadoopUser(String hadoopUser) voidsetHdfsBasePath(String hdfsBasePath)
-
Constructor Details
-
HdfsClientImpl
public HdfsClientImpl()
-
-
Method Details
-
deletePath
- Specified by:
deletePathin interfaceHdfsClient- Throws:
MDStoreManagerException
-
listHadoopDirs
- Specified by:
listHadoopDirsin interfaceHdfsClient
-
listContent
- Specified by:
listContentin interfaceHdfsClient
-
readParquetFiles
public List<Map<String,String>> readParquetFiles(String path, long limit) throws MDStoreManagerException - Specified by:
readParquetFilesin interfaceHdfsClient- Throws:
MDStoreManagerException
-
isParquetFile
public static boolean isParquetFile(org.apache.hadoop.fs.FileStatus fileStatus) -
isMdStoreOrVersionDir
public static boolean isMdStoreOrVersionDir(org.apache.hadoop.fs.FileStatus fileStatus) -
getHadoopCluster
- Specified by:
getHadoopClusterin interfaceHdfsClient
-
setHadoopCluster
-
getHadoopUser
- Specified by:
getHadoopUserin interfaceHdfsClient
-
setHadoopUser
-
getHdfsBasePath
- Specified by:
getHdfsBasePathin interfaceHdfsClient
-
setHdfsBasePath
-