Comparing version 0.0.1-alpha.7 to 0.0.1-alpha.8
@@ -133,2 +133,12 @@ const Bluebird = require('bluebird') | ||
/** | ||
* Delete a row | ||
* | ||
* @param {string} rowKey | ||
*/ | ||
static async destroy (rowKey) { | ||
const del = new HBase.Delete(rowKey) | ||
return this.client.deleteAsync(this.tableName, del) | ||
} | ||
/** | ||
* Scan | ||
@@ -135,0 +145,0 @@ * |
{ | ||
"name": "hequelize", | ||
"version": "0.0.1-alpha.7", | ||
"version": "0.0.1-alpha.8", | ||
"description": "Simple HBase ORM based on hbase-rpc-client", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
const Hequelize = require('../lib/Hequelize') | ||
const hbase = new Hequelize({ | ||
zookeeperHosts: 'localhost:2181' | ||
zookeeperHosts: 'localhost:2181', | ||
rpcTimeout: 60000, | ||
callTimeout: 60000, | ||
tcpNoDelay: true | ||
}) | ||
@@ -5,0 +8,0 @@ |
@@ -1,2 +0,1 @@ | ||
// const _ = require('lodash') | ||
const test = require('ava') | ||
@@ -44,1 +43,23 @@ const uuid = require('uuid/v4') | ||
}) | ||
// let big30MText = '' | ||
// for (let i = 0; i < 30 * 1024 * 1024; i++) { | ||
// big30MText += 'a' | ||
// } | ||
// test('Get data more than 64M correctly', async t => { | ||
// const key1 = uuid() | ||
// const key2 = uuid() | ||
// const key3 = uuid() | ||
// await hb.Test.put(key1, { 'cf1:string': big30MText }) | ||
// await hb.Test.put(key2, { 'cf1:string': big30MText }) | ||
// await hb.Test.put(key3, { 'cf1:string': big30MText }) | ||
// const ret = await hb.Test.mget([key1, key2, key3], { columns: ['cf1:string'] }) | ||
// t.true(ret.length === 3) | ||
// console.log(ret[0]['cf1:string'].length) | ||
// // t.true(ret[0]['cf1:string'].length === 30 * 1024 * 1024) | ||
// }) |
18387
13
600