public class HadoopServiceCore extends Object
| Modifier and Type | Field and Description |
|---|---|
protected eu.dnetlib.data.hadoop.config.ConfigurationEnumerator |
configurationEnumerator |
| Constructor and Description |
|---|
HadoopServiceCore() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
createHdfsDir(eu.dnetlib.data.hadoop.config.ClusterName clusterName,
String path,
boolean force) |
void |
createTable(eu.dnetlib.data.hadoop.config.ClusterName clusterName,
String table,
Set<String> columns) |
void |
createTable(eu.dnetlib.data.hadoop.config.ClusterName clusterName,
String table,
String tableConfiguration) |
void |
deleteColumnsFromHBase(eu.dnetlib.data.hadoop.config.ClusterName clusterName,
String tableName,
List<eu.dnetlib.data.hadoop.rmi.hbase.HBaseRowDescriptor> columns) |
void |
deleteFromHBase(eu.dnetlib.data.hadoop.config.ClusterName clusterName,
String tableName,
List<org.apache.hadoop.hbase.client.Delete> deletes) |
boolean |
deleteFromHdfs(eu.dnetlib.data.hadoop.config.ClusterName clusterName,
String path) |
eu.dnetlib.data.hadoop.rmi.hbase.HBaseRowDescriptor |
describeRow(eu.dnetlib.data.hadoop.config.ClusterName clusterName,
String tableName,
String rowKey) |
Map<String,eu.dnetlib.data.hadoop.rmi.hbase.HBaseRowDescriptor> |
describeRows(eu.dnetlib.data.hadoop.config.ClusterName clusterName,
String tableName,
List<String> rowKeys) |
List<String> |
describeTable(eu.dnetlib.data.hadoop.config.ClusterName clusterName,
String table) |
void |
doCreateTable(eu.dnetlib.data.hadoop.config.ClusterName clusterName,
String table,
Set<String> columns,
List<eu.dnetlib.data.hadoop.rmi.hbase.schema.HBaseTableRegionInfo> regions) |
void |
dropTable(eu.dnetlib.data.hadoop.config.ClusterName clusterName,
String table) |
void |
ensureTable(eu.dnetlib.data.hadoop.config.ClusterName clusterName,
String table,
Set<String> columns) |
boolean |
existHdfsPath(eu.dnetlib.data.hadoop.config.ClusterName clusterName,
String path) |
boolean |
existTable(eu.dnetlib.data.hadoop.config.ClusterName clusterName,
String table) |
HadoopClientMap |
getClients() |
org.apache.hadoop.conf.Configuration |
getClusterConiguration(eu.dnetlib.data.hadoop.config.ClusterName clusterName) |
String |
getHBaseTableDescriptor(eu.dnetlib.data.hadoop.config.ClusterName clusterName,
String tableName) |
int |
getMaxVersions() |
org.apache.hadoop.hbase.client.Result |
getRow(eu.dnetlib.data.hadoop.config.ClusterName clusterName,
String tableName,
byte[] id) |
List<org.apache.hadoop.hbase.client.Result> |
getRows(eu.dnetlib.data.hadoop.config.ClusterName clusterName,
String tableName,
org.apache.hadoop.hbase.client.Scan scan) |
List<String> |
listTables(eu.dnetlib.data.hadoop.config.ClusterName clusterName) |
void |
setMaxVersions(int maxVersions) |
void |
truncateTable(eu.dnetlib.data.hadoop.config.ClusterName clusterName,
String table) |
void |
writeOnHBase(eu.dnetlib.data.hadoop.config.ClusterName clusterName,
String tableName,
List<org.apache.hadoop.hbase.client.Put> puts) |
@Autowired protected eu.dnetlib.data.hadoop.config.ConfigurationEnumerator configurationEnumerator
public List<String> listTables(eu.dnetlib.data.hadoop.config.ClusterName clusterName) throws IOException, eu.dnetlib.data.hadoop.rmi.HadoopServiceException
IOExceptioneu.dnetlib.data.hadoop.rmi.HadoopServiceExceptionpublic String getHBaseTableDescriptor(eu.dnetlib.data.hadoop.config.ClusterName clusterName, String tableName) throws eu.dnetlib.data.hadoop.rmi.HadoopServiceException, IOException
eu.dnetlib.data.hadoop.rmi.HadoopServiceExceptionIOExceptionpublic List<String> describeTable(eu.dnetlib.data.hadoop.config.ClusterName clusterName, String table) throws IOException, eu.dnetlib.data.hadoop.rmi.HadoopServiceException
IOExceptioneu.dnetlib.data.hadoop.rmi.HadoopServiceExceptionpublic void truncateTable(eu.dnetlib.data.hadoop.config.ClusterName clusterName,
String table)
throws IOException,
eu.dnetlib.data.hadoop.rmi.HadoopServiceException
IOExceptioneu.dnetlib.data.hadoop.rmi.HadoopServiceExceptionpublic boolean existTable(eu.dnetlib.data.hadoop.config.ClusterName clusterName,
String table)
throws IOException,
eu.dnetlib.data.hadoop.rmi.HadoopServiceException
IOExceptioneu.dnetlib.data.hadoop.rmi.HadoopServiceExceptionpublic void dropTable(eu.dnetlib.data.hadoop.config.ClusterName clusterName,
String table)
throws IOException,
eu.dnetlib.data.hadoop.rmi.HadoopServiceException
IOExceptioneu.dnetlib.data.hadoop.rmi.HadoopServiceExceptionpublic void createTable(eu.dnetlib.data.hadoop.config.ClusterName clusterName,
String table,
String tableConfiguration)
throws IOException,
eu.dnetlib.data.hadoop.rmi.HadoopServiceException
IOExceptioneu.dnetlib.data.hadoop.rmi.HadoopServiceExceptionpublic void createTable(eu.dnetlib.data.hadoop.config.ClusterName clusterName,
String table,
Set<String> columns)
throws IOException,
eu.dnetlib.data.hadoop.rmi.HadoopServiceException
IOExceptioneu.dnetlib.data.hadoop.rmi.HadoopServiceExceptionpublic void doCreateTable(eu.dnetlib.data.hadoop.config.ClusterName clusterName,
String table,
Set<String> columns,
List<eu.dnetlib.data.hadoop.rmi.hbase.schema.HBaseTableRegionInfo> regions)
throws IOException,
eu.dnetlib.data.hadoop.rmi.HadoopServiceException
IOExceptioneu.dnetlib.data.hadoop.rmi.HadoopServiceExceptionpublic void ensureTable(eu.dnetlib.data.hadoop.config.ClusterName clusterName,
String table,
Set<String> columns)
throws IOException,
eu.dnetlib.data.hadoop.rmi.HadoopServiceException
IOExceptioneu.dnetlib.data.hadoop.rmi.HadoopServiceExceptionpublic void writeOnHBase(eu.dnetlib.data.hadoop.config.ClusterName clusterName,
String tableName,
List<org.apache.hadoop.hbase.client.Put> puts)
throws IOException
IOExceptionpublic void deleteFromHBase(eu.dnetlib.data.hadoop.config.ClusterName clusterName,
String tableName,
List<org.apache.hadoop.hbase.client.Delete> deletes)
throws IOException
IOExceptionpublic void deleteColumnsFromHBase(eu.dnetlib.data.hadoop.config.ClusterName clusterName,
String tableName,
List<eu.dnetlib.data.hadoop.rmi.hbase.HBaseRowDescriptor> columns)
throws IOException
IOExceptionpublic org.apache.hadoop.hbase.client.Result getRow(eu.dnetlib.data.hadoop.config.ClusterName clusterName,
String tableName,
byte[] id)
throws IOException
IOExceptionpublic Map<String,eu.dnetlib.data.hadoop.rmi.hbase.HBaseRowDescriptor> describeRows(eu.dnetlib.data.hadoop.config.ClusterName clusterName, String tableName, List<String> rowKeys) throws IOException
IOExceptionpublic eu.dnetlib.data.hadoop.rmi.hbase.HBaseRowDescriptor describeRow(eu.dnetlib.data.hadoop.config.ClusterName clusterName,
String tableName,
String rowKey)
throws IOException
IOExceptionpublic List<org.apache.hadoop.hbase.client.Result> getRows(eu.dnetlib.data.hadoop.config.ClusterName clusterName, String tableName, org.apache.hadoop.hbase.client.Scan scan) throws IOException
IOExceptionpublic boolean deleteFromHdfs(eu.dnetlib.data.hadoop.config.ClusterName clusterName,
String path)
throws eu.dnetlib.data.hadoop.rmi.HadoopServiceException
eu.dnetlib.data.hadoop.rmi.HadoopServiceExceptionpublic boolean createHdfsDir(eu.dnetlib.data.hadoop.config.ClusterName clusterName,
String path,
boolean force)
throws eu.dnetlib.data.hadoop.rmi.HadoopServiceException
eu.dnetlib.data.hadoop.rmi.HadoopServiceExceptionpublic boolean existHdfsPath(eu.dnetlib.data.hadoop.config.ClusterName clusterName,
String path)
throws eu.dnetlib.data.hadoop.rmi.HadoopServiceException
eu.dnetlib.data.hadoop.rmi.HadoopServiceExceptionpublic org.apache.hadoop.conf.Configuration getClusterConiguration(eu.dnetlib.data.hadoop.config.ClusterName clusterName)
public int getMaxVersions()
public void setMaxVersions(int maxVersions)
public HadoopClientMap getClients()
Copyright © 2017. All rights reserved.