i have inserted rows table in accumulo. rows newly created , rows updated.
how can find count of rows inserted or updated accumulo table in java?
def obj= jsonobject["obj"] for(entry in obj) { string = entry["a"]; string b = entry["b"]; string c = entry["c"]; string d = entry["d"]; string e = entry["e"]; columnvisibility cv = new columnvisibility(d); mutation m = new mutation(a); m.put(b, c, cv, e) bw.addmutation(m); count++; }
this being done , count considered number of entries written table. if there new entry/rows inserted , others updated, count can't considered new entries entered table
as of accumulo 1.6.x (the latest, of post), there no public api getting count of either rows or individual entries in table. if maintaining counts built-in feature, add bit of overhead, , difficult implement, given server-side iterators change these counts during compactions.
so, best accumulo provides estimates of number of entries in table (only entries, not rows).
if row-counting needed, functionality must added @ application layer. may available on user mailing list.