When using an HTablePool and calling get() or scan() can I return the Table to the pool as soon as I have the Result of Scanner object?
i.e. is this valid?
HTablePool pool = myPool;
Get get = myGet;
HTable table = pool.getTable(myTableName);;
Result result = null;
try {
result = table.get(get);
} finally {
pool.putTable(table);
}
// use Result now table has been returned to pool.
r.getValue(Bytes.toBytes("COL"), Bytes.toBytes("ID"))
and likewise with a Scanner
Rgs
Joel
