/** * Create temporary tables for the bag in the BagConstraints of the given Query. * Entries are placed in the bagConstraintTables Map, which is a * WeakHashMap from BagConstraint -> table name. When the BagConstraint is garbage- * collected, or when the JVM exits, the table associated with the table name is dropped from * the database. * * @param c a Connection to use * @param q the Query * @throws ObjectStoreException if an error occurs */ private void createTempBagTablesForQuery(Connection c, Query q) throws ObjectStoreException { if (getMinBagTableSize() != -1) { // We have a strong reference to the Query, and therefore all the BagConstraints. We can // count on the bagConstraintTables Map to be sane. createTempBagTables(c, q); flushOldTempBagTables(c); } }
/** * Create temporary tables for the bag in the BagConstraints of the given Query. * Entries are placed in the bagConstraintTables Map, which is a * WeakHashMap from BagConstraint -> table name. When the BagConstraint is garbage- * collected, or when the JVM exits, the table associated with the table name is dropped from * the database. * * @param c a Connection to use * @param q the Query * @throws ObjectStoreException if an error occurs */ private void createTempBagTablesForQuery(Connection c, Query q) throws ObjectStoreException { if (getMinBagTableSize() != -1) { // We have a strong reference to the Query, and therefore all the BagConstraints. We can // count on the bagConstraintTables Map to be sane. createTempBagTables(c, q); flushOldTempBagTables(c); } }
((ObjectStoreInterMineImpl) os).createTempBagTables(con, q); ((ObjectStoreInterMineImpl) os).minBagTableSize = minBagSize;
int tableNumber = getUniqueInteger(c); if (getMinBagTableSize() != -1) { createTempBagTables(c, q); flushOldTempBagTables(c);
int tableNumber = getUniqueInteger(c); if (getMinBagTableSize() != -1) { createTempBagTables(c, q); flushOldTempBagTables(c);
try { if (getMinBagTableSize() != -1) { createTempBagTables(c, q); flushOldTempBagTables(c);
try { if (getMinBagTableSize() != -1) { createTempBagTables(c, q); flushOldTempBagTables(c);
createTempBagTables(c, q); flushOldTempBagTables(c);
createTempBagTables(c, q); flushOldTempBagTables(c);