hxy2015/yii2-hbase
Composer 安装命令:
composer require hxy2015/yii2-hbase
包简介
Hbase integration for the Yii framework
README 文档
README
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist hxy2015/yii2-hbase
or add
"hxy2015/yii2-hbase": "~1.0"
to the require section of your composer.json.
Configuration
To use this extension, you have to configure the Connection class in your application configuration:
return [ //.... 'components' => [ 'hbase' => [ 'class' => 'hxy2015\hbase\Connection', 'host' => 'localhost', 'port' => '8080', ], ] ];
Usage
存储数据
Yii::get('hbase')->tables()->table('user')->row('12')->put('base_info:name', 'huangxiaohu');
查询数据
# 取某一列族数据 Yii::$app->get('hbase')->tables()->table('user')->row('12')->get('base_info'); # 取某一列数据 Yii::$app->get('hbase')->tables()->table('user')->row('12')->get('base_info:name');
统计信息
- 总下载量: 78
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2017-09-03