May
29th,
2018
How to remove all records in table? Here is the solution:
public void cleanUp(String table) {
Iterator<Record> i = Gkvs.Client.scan(table)
.includeKey(true)
.includeValue(false)
.sync();
while(i.hasNext()) {
try {
Gkvs.Client.remove(i.next().key().get()).sync();
}
catch(GkvsException e) {
e.printStackTrace();
}
}
}