node.js - How to delete records in Accumulo based on an rowkey via Accumulo proxy client -


i'm using accumulo 1.6 , want delete records giving rowkey via accumulo proxy client in nodejs.

but proxy client throw "start row must less end row" when trying put same rowkey deleterows api

var rowid = "1"; var proxyclient = getaccumuloproxyclient(); proxyclient.deleterows(getlogin(), table_name, rowid, rowid, callback); 

update: let's there table looks like:

rowid | columnfamily | columnqualifier 1        name           john 1        age            25 1        department     sales 2        name           lisa 2        age            25   2        department     sales 

what parameters should pass deleterows function if want delete of rows of rowid equals 1? tried pass 1 start , end, complain

"org.apache.accumulo.core.client.accumuloexception: start row must less end row" 

then tried pass start = 1 , end = 1\0 make sure start less end, nothing happend, no error threw, no rows deleted. think caused start exclude , end include deleterows. i'm confused how delete 1 record(which rows has same rowid).

for case using (char - 1 start row solved problem:

var startrowid = rowid.substring(0, rowid.length - 1) + string.fromcharcode(rowid.charcodeat(rowid.length - 1) - 1); proxyclient.deleterows(getlogin(), table_name, startrowid, rowid, callback); 

Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -