/** * Release and reset */ @Override public void clear() { release(); this.currentRowBlock = new MemoryRowBlock(dataTypes, new FixedSizeLimitSpec(pageSize), true); this.rowBlocks.add(currentRowBlock); } }
/** * Release and reset */ @Override public void clear() { release(); this.currentRowBlock = new MemoryRowBlock(dataTypes, new FixedSizeLimitSpec(pageSize), true); this.rowBlocks.add(currentRowBlock); } }
@After public void teardown() { tuples.release(); }
debug(LOG, "Remove intermediate memory tuples: " + chunk.getMemoryTuples().usedMem()); chunk.getMemoryTuples().release(); } else if (chunk.getFragment().getInputSourceId().contains(INTERMEDIATE_FILE_PREFIX)) { localFS.delete(chunk.getFragment().getPath(), true);
@Override public void close() throws IOException { super.close(); if (result != null) { result.close(); } if (finalOutputFiles != null) { for (Chunk chunk : finalOutputFiles) { if (!chunk.isMemory()) { FileFragment frag = chunk.getFragment(); File tmpFile = new File(localFS.makeQualified(frag.getPath()).toUri()); if (frag.getStartKey() == 0 && frag.getLength() == tmpFile.length()) { localFS.delete(frag.getPath(), true); if(LOG.isDebugEnabled()) { debug(LOG, "Delete file: " + frag); } } } } } if(inMemoryTable != null) { inMemoryTable.release(); inMemoryTable = null; } if(executorService != null){ executorService.shutdown(); executorService = null; } plan = null; }
@Override public void close() throws IOException { super.close(); if (result != null) { result.close(); } if (finalOutputFiles != null) { for (Chunk chunk : finalOutputFiles) { if (!chunk.isMemory()) { FileFragment frag = chunk.getFragment(); File tmpFile = new File(localFS.makeQualified(frag.getPath()).toUri()); if (frag.getStartKey() == 0 && frag.getLength() == tmpFile.length()) { localFS.delete(frag.getPath(), true); if(LOG.isDebugEnabled()) { debug(LOG, "Delete file: " + frag); } } } } } if(inMemoryTable != null) { inMemoryTable.release(); inMemoryTable = null; } if(executorService != null){ executorService.shutdown(); executorService = null; } plan = null; }
debug(LOG, "Remove intermediate memory tuples: " + chunk.getMemoryTuples().usedMem()); chunk.getMemoryTuples().release(); } else if (chunk.getFragment().getTableName().contains(INTERMEDIATE_FILE_PREFIX)) { localFS.delete(chunk.getFragment().getPath(), true);
unSafeTupleList.release();