com.poscoict.glueframework.dao.hbase
Class GlueHbaseDao

java.lang.Object
  extended by com.poscoict.glueframework.dao.hbase.GlueHbaseDao
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

public class GlueHbaseDao
extends Object
implements org.springframework.beans.factory.InitializingBean

Hbase¿Í ¿¬µ¿Çϱâ À§ÇÑ Dao Class


Constructor Summary
GlueHbaseDao()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlueHbaseDao

public GlueHbaseDao()
Method Detail

setHbaseTemplate

public void setHbaseTemplate(org.springframework.data.hadoop.hbase.HbaseTemplate hbaseTemplate)

setDefaultCf

public void setDefaultCf(String defaultCf)

find

public List<Map<String,Object>> find(String tableName)
Default Ä÷³ Æйи®¿¡ ÇØ´çÇÏ´Â Àüü µ¥ÀÌÅ͸¦ Á¶È¸ÇÑ´Ù.

Parameters:
String - tableName Hbase¿¡¼­ Á¶È¸ ÇÒ µ¥ÀÌÅÍÀÇ Å×ÀÌºí ¸í

find

public List<Map<String,Object>> find(String tableName,
                                     String family)
Àüü µ¥ÀÌÅ͸¦ Á¶È¸ÇÑ´Ù.

Parameters:
String - tableName Hbase¿¡¼­ Á¶È¸ ÇÒ µ¥ÀÌÅÍÀÇ Å×ÀÌºí ¸í
String - family Hbase¿¡¼­ Á¶È¸ ÇÒ µ¥ÀÌÅÍÀÇ Ä÷³ Æйи®

find

public List<Map<String,Object>> find(String tableName,
                                     String family,
                                     org.apache.hadoop.hbase.client.Scan scan)
ÇØ´ç µ¥ÀÌÅ͸¦ Á¶È¸ÇÑ´Ù.

Parameters:
String - tableName Hbase¿¡¼­ Á¶È¸ ÇÒ µ¥ÀÌÅÍÀÇ Å×ÀÌºí ¸í
String - family Hbase¿¡¼­ Á¶È¸ ÇÒ µ¥ÀÌÅÍÀÇ Ä÷³ Æйи®
Scan - scan Hbase¿¡¼­ Á¶È¸ ÇÒ µ¥ÀÌÅÍÀÇ Á¶È¸ Á¶°ÇÀÌ Á¤ÀÇµÈ Scan °´Ã¼

save

public Map<String,Object> save(String tableName,
                               Map<String,Object> params)
ÇØ´ç µ¥ÀÌÅ͸¦ Default Ä÷³ Æйи®¿¡ ÀúÀåÇÑ´Ù.

Parameters:
String - tableName Hbase¿¡ ÀúÀåÇÒ µ¥ÀÌÅÍÀÇ Å×ÀÌºí ¸í
Map - params Hbase¿¡ ÀúÀåÇÒ µ¥ÀÌÅÍ

save

public Map<String,Object> save(String tableName,
                               String family,
                               Map<String,Object> params)
ÇØ´ç µ¥ÀÌÅ͸¦ ÀúÀåÇÑ´Ù.

Parameters:
String - tableName Hbase¿¡ ÀúÀåÇÒ µ¥ÀÌÅÍÀÇ Å×ÀÌºí ¸í
String - family Hbase¿¡ ÀúÀåÇÒ µ¥ÀÌÅÍÀÇ Ä÷³ Æйи®
Map - params Hbase¿¡ ÀúÀåÇÒ µ¥ÀÌÅÍ

delete

public String delete(String tableName,
                     String row_id)
ÇØ´ç µ¥ÀÌÅ͸¦ »èÁ¦ÇÑ´Ù.

Parameters:
String - row_id Hbase¿¡¼­ »èÁ¦ÇÒ µ¥ÀÌÅÍÀÇ Key

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception


Copyright © 2013–2017 POSCO ICT. All rights reserved.