static void filter(Table table, String filterStr) throws Exception { List<HMap> list = table.readAll(Filter.parse(filterStr)); System.out.println(JsonWriter.writeToString(JsonUtils.ctx(), list)); }
static void readAll(Table table) throws Exception { Filter filter = Filter.parse("*"); List<HMap> list = table.readAll(filter); System.out.println(JsonWriter.writeToString(JsonUtils.ctx(), list)); }