class ScanAll extends VoltProcedure {

  private final SQLStmt getBddStmt = new SQLStmt(
      "SELECT value, key FROM Store WHERE keyspace = ? AND key >= ? ORDER BY key, keyspace LIMIT ?");
  
  private final SQLStmt getUnbddStmt = new SQLStmt(
      "SELECT value, key FROM Store WHERE keyspace = ? ORDER BY key, keyspace LIMIT ?");

  public VoltTable[] run(byte[] keyspace, byte[] rangeMin, int count) throws Exception {<FILL_FUNCTION_BODY>}
}

    if (rangeMin != null) {
      voltQueueSQL(getBddStmt, keyspace, new String(rangeMin, "UTF-8"), count);
    } else {
      voltQueueSQL(getUnbddStmt, keyspace, count);
    }
    return voltExecuteSQL(true);
  
<no_super_class>