/** {@inheritDoc} */ @Override public void destroyObject(final PooledFijiTableReader obj) throws Exception { obj.mInnerReader.close(); }
/** * Returns a Fiji row object given the table, entity_id and data request. * * @param table is the table containing the row. * @param eid is the entity id of the row to return. * @param request contains information about what to return. * @return a Fiji row object conforming to the parameters of the request. * * @throws IOException if the retrieve fails. */ public static FijiRowData getFijiRowData(FijiTable table, EntityId eid, FijiDataRequest request) throws IOException { FijiRowData returnRow = null; final FijiTableReader reader = table.openTableReader(); try { returnRow = reader.get(eid, request); } finally { reader.close(); } return returnRow; }
/** * Get the saved information for all JobIDs. * * @return A FijiRowScanner containing details for all the JobIDs. * @throws IOException If there is an IO error retrieving the data. */ public FijiRowScanner getJobScanner() throws IOException { FijiDataRequest wdr = FijiDataRequest.create("info"); FijiTableReader wtr = mFijiTable.openTableReader(); try { return wtr.getScanner(wdr); } finally { wtr.close(); } }
return lookup(reader, request, entityId, mapTypeFamilies, groupTypeColumns); } finally { reader.close();
data = reader.get(mFijiTable.getEntityId(jobId), request); } finally { reader.close();