/** * Create a ParallelPrecomputer. * * @param os an ObjectStoreInterMineImpl * @return a ParallelPrecomputer for the ObjectStore */ protected ParallelPrecomputer getPrecomputer(ObjectStoreInterMineImpl os) { return new ParallelPrecomputer(os, THREAD_COUNT); }
/** * Prepares the Job by performing an EXPLAIN on the query. * * @param pp the ParallelPrecomputer that will execute this job * @throws ObjectStoreException if an error occurs */ private void prepare(ParallelPrecomputer pp) throws ObjectStoreException { info = pp.getObjectStore().estimate(query); }
/** * Execute the job. * * @param pp the ParallelPrecomputer that is performing the operation * @param threadNo the number of the thread performing the operation, for logging * @throws ObjectStoreException if something goes wrong */ private void execute(ParallelPrecomputer pp, int threadNo) throws ObjectStoreException { LOG.info("Job with key " + key + " has expected time " + info.getComplete()); pp.precomputeQuery(key, query, indexes, allFields, category, threadNo); }
PRECOMPUTE_CATEGORY_TEMPLATE)); ParallelPrecomputer pp = new ParallelPrecomputer((ObjectStoreInterMineImpl) os, 4); try { pp.precompute(jobs); } catch (ObjectStoreException e) { throw new BuildException(e);
pp.setMinRows(minRows); pp.precompute(jobs); } catch (ObjectStoreException e) { throw new BuildException(e);
LOG.info("Threads doing: " + threads); executeJob(job, 0); if (!exceptions.isEmpty()) { throw new ObjectStoreException("Exception while executing in worker thread",
PRECOMPUTE_CATEGORY_TEMPLATE)); ParallelPrecomputer pp = new ParallelPrecomputer((ObjectStoreInterMineImpl) os, 4); try { pp.precompute(jobs); } catch (ObjectStoreException e) { throw new BuildException(e);
pp.setMinRows(minRows); pp.precompute(jobs); } catch (ObjectStoreException e) { throw new BuildException(e);
LOG.info("Threads doing: " + threads); executeJob(job, 0); if (!exceptions.isEmpty()) { throw new ObjectStoreException("Exception while executing in worker thread",
/** * Create a ParallelPrecomputer. * * @param os an ObjectStoreInterMineImpl * @return a ParallelPrecomputer for the ObjectStore */ protected ParallelPrecomputer getPrecomputer(ObjectStoreInterMineImpl os) { return new ParallelPrecomputer(os, THREAD_COUNT); }
/** * Prepares the Job by performing an EXPLAIN on the query. * * @param pp the ParallelPrecomputer that will execute this job * @throws ObjectStoreException if an error occurs */ private void prepare(ParallelPrecomputer pp) throws ObjectStoreException { info = pp.getObjectStore().estimate(query); }
/** * Execute the job. * * @param pp the ParallelPrecomputer that is performing the operation * @param threadNo the number of the thread performing the operation, for logging * @throws ObjectStoreException if something goes wrong */ private void execute(ParallelPrecomputer pp, int threadNo) throws ObjectStoreException { LOG.info("Job with key " + key + " has expected time " + info.getComplete()); pp.precomputeQuery(key, query, indexes, allFields, category, threadNo); }