mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-21 02:35:53 +10:00
[강운덕] [LUCYSUS-1744] spring 기반으로 변경.
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-commons/trunk@682 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
@@ -53,7 +53,7 @@ public class HBaseClient {
|
||||
return SingletonHolder.INSTANCE;
|
||||
}
|
||||
|
||||
private HBaseClient(int poolSize) {
|
||||
public HBaseClient(int poolSize) {
|
||||
Properties properties = readProperties();
|
||||
String host = properties.getProperty("hbase.client.host");
|
||||
String port = properties.getProperty("hbase.client.port");
|
||||
@@ -163,8 +163,8 @@ public class HBaseClient {
|
||||
}
|
||||
}
|
||||
|
||||
public void insert(String tablename, Put put) {
|
||||
HTable htable = (HTable) tablePool.getTable(tablename);
|
||||
public void insert(String tableName, Put put) {
|
||||
HTable htable = (HTable) tablePool.getTable(tableName);
|
||||
try {
|
||||
htable.put(put);
|
||||
} catch (IOException e) {
|
||||
@@ -174,8 +174,8 @@ public class HBaseClient {
|
||||
}
|
||||
}
|
||||
|
||||
public void insert(String tablename, List<Put> put) {
|
||||
HTable htable = (HTable) tablePool.getTable(tablename);
|
||||
public void insert(String tableName, List<Put> put) {
|
||||
HTable htable = (HTable) tablePool.getTable(tableName);
|
||||
try {
|
||||
htable.put(put);
|
||||
} catch (IOException e) {
|
||||
@@ -185,8 +185,8 @@ public class HBaseClient {
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(String tablename, Delete delete) {
|
||||
HTable htable = (HTable) tablePool.getTable(tablename);
|
||||
public void delete(String tableName, Delete delete) {
|
||||
HTable htable = (HTable) tablePool.getTable(tableName);
|
||||
try {
|
||||
htable.delete(delete);
|
||||
} catch (IOException e) {
|
||||
|
||||
Reference in New Issue
Block a user