Skip to content

licc168/springBoot-hbase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#SpringBootHbase

HbaseService基础类封装

封装了一个简易的Hbase-ORM框架

  • 接口
  <T> List<T> findByExample(Map<String, CompareOp[]> filter, Object t ,Class<T> classz);
  <T> List<T> findByExample(Scan scan,Class<T> classz);
  <T> void save(T t,Class<T> classz);
  • 使用范列
    /**构造查询条件**/
    
    SCnMadeInChina sCnMadeInChinaQuery = new SCnMadeInChina();
    sCnMadeInChinaQuery.setAppendTime("1513158597822");
    Map<String , CompareOp[]> filterParam =  new HashMap<>();
    filterParam.put("appendTime", new CompareOp[]{CompareOp.GREATER_OR_EQUAL});
    
    //查询
    List<SCnMadeInChina> madeInChinaList = hbaseService.findByExample(filterParam,sCnMadeInChinaQuery,SCnMadeInChina.class);

About

封装了一个简易的hbase-orm框架

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages