public class GlueHbaseDao extends Object implements InitializingBean
Constructor and Description |
---|
GlueHbaseDao() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
String |
delete(String tableName,
String row_id)
ÇØ´ç µ¥ÀÌÅ͸¦ »èÁ¦ÇÑ´Ù.
|
List<Map<String,Object>> |
find(String tableName)
Default Ä÷³ Æйи®¿¡ ÇØ´çÇÏ´Â Àüü µ¥ÀÌÅ͸¦ Á¶È¸ÇÑ´Ù.
|
List<Map<String,Object>> |
find(String tableName,
String family)
Àüü µ¥ÀÌÅ͸¦ Á¶È¸ÇÑ´Ù.
|
List<Map<String,Object>> |
find(String tableName,
String family,
org.apache.hadoop.hbase.client.Scan scan)
ÇØ´ç µ¥ÀÌÅ͸¦ Á¶È¸ÇÑ´Ù.
|
Map<String,Object> |
save(String tableName,
Map<String,Object> params)
ÇØ´ç µ¥ÀÌÅ͸¦ Default Ä÷³ Æйи®¿¡ ÀúÀåÇÑ´Ù.
|
Map<String,Object> |
save(String tableName,
String family,
Map<String,Object> params)
ÇØ´ç µ¥ÀÌÅ͸¦ ÀúÀåÇÑ´Ù.
|
void |
setDefaultCf(String defaultCf) |
void |
setHbaseTemplate(org.springframework.data.hadoop.hbase.HbaseTemplate hbaseTemplate) |
public void setHbaseTemplate(org.springframework.data.hadoop.hbase.HbaseTemplate hbaseTemplate)
public void setDefaultCf(String defaultCf)
public List<Map<String,Object>> find(String tableName)
String
- tableName Hbase¿¡¼ Á¶È¸ ÇÒ µ¥ÀÌÅÍÀÇ Å×ÀÌºí ¸ípublic List<Map<String,Object>> find(String tableName, String family)
String
- tableName Hbase¿¡¼ Á¶È¸ ÇÒ µ¥ÀÌÅÍÀÇ Å×ÀÌºí ¸íString
- family Hbase¿¡¼ Á¶È¸ ÇÒ µ¥ÀÌÅÍÀÇ Ä÷³ Æйи®public List<Map<String,Object>> find(String tableName, String family, org.apache.hadoop.hbase.client.Scan scan)
String
- tableName Hbase¿¡¼ Á¶È¸ ÇÒ µ¥ÀÌÅÍÀÇ Å×ÀÌºí ¸íString
- family Hbase¿¡¼ Á¶È¸ ÇÒ µ¥ÀÌÅÍÀÇ Ä÷³ Æйи®Scan
- scan Hbase¿¡¼ Á¶È¸ ÇÒ µ¥ÀÌÅÍÀÇ Á¶È¸ Á¶°ÇÀÌ Á¤ÀÇµÈ Scan °´Ã¼public Map<String,Object> save(String tableName, Map<String,Object> params)
String
- tableName Hbase¿¡ ÀúÀåÇÒ µ¥ÀÌÅÍÀÇ Å×ÀÌºí ¸íMap
- params Hbase¿¡ ÀúÀåÇÒ µ¥ÀÌÅÍpublic Map<String,Object> save(String tableName, String family, Map<String,Object> params)
String
- tableName Hbase¿¡ ÀúÀåÇÒ µ¥ÀÌÅÍÀÇ Å×ÀÌºí ¸íString
- family Hbase¿¡ ÀúÀåÇÒ µ¥ÀÌÅÍÀÇ Ä÷³ Æйи®Map
- params Hbase¿¡ ÀúÀåÇÒ µ¥ÀÌÅÍpublic String delete(String tableName, String row_id)
String
- row_id Hbase¿¡¼ »èÁ¦ÇÒ µ¥ÀÌÅÍÀÇ Keypublic void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
Copyright © 2013–2016 POSCO ICT. All rights reserved.