adaltas / node-hbase

Asynchronous HBase client for NodeJs using REST

Home Page:https://hbase.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use startTime and endTime

JoaoPauloFP opened this issue · comments

Hello, I'm trying filter only rows between 1470937869725 and 1470937869735 timestamp.

var hbase = require('hbase');
var client = new hbase.Client({host: '127.0.0.1', port: 8080});
var myScanner = client.table('MyTable').scan({startTime: 1470937869725, endTime: 1470937869735}, function(err, rows){
console.log(rows);
});

But all events are retrieved (not just those in the interval).

What am I doing wrong?

It seems right. You can get inspiration from the scan test