/** * Compress and write the current block to the OutputStream */ protected void writeCompressedBlock() throws IOException { if (_position == 0) { return; } Future<LZFChunk> lzfFuture = compressExecutor.submit(new CompressTask(_outputBuffer, 0, _position, blockManager)); writeExecutor.execute(new WriteTask(out, lzfFuture, this)); _outputBuffer = blockManager.getBlockFromPool(); _position = 0; checkWriteException(); }
/** * Compress and write the current block to the OutputStream */ protected void writeCompressedBlock() throws IOException { if (_position == 0) { return; } Future<LZFChunk> lzfFuture = compressExecutor.submit(new CompressTask(_outputBuffer, 0, _position, blockManager)); writeExecutor.execute(new WriteTask(out, lzfFuture, this)); _outputBuffer = blockManager.getBlockFromPool(); _position = 0; checkWriteException(); }
/** * Compress and write the current block to the OutputStream */ protected void writeCompressedBlock() throws IOException { if (_position == 0) { return; } Future<LZFChunk> lzfFuture = compressExecutor.submit(new CompressTask(_outputBuffer, 0, _position, blockManager)); writeExecutor.execute(new WriteTask(out, lzfFuture, this)); _outputBuffer = blockManager.getBlockFromPool(); _position = 0; checkWriteException(); }
Collection<CompressTask> cleanupTasks = new ArrayList<CompressTask>(maxThreads); for (int i = 0; i < maxThreads; ++i) { cleanupTasks.add(new CompressTask(null, -1, -1, null));
Collection<CompressTask> cleanupTasks = new ArrayList<CompressTask>(maxThreads); for (int i = 0; i < maxThreads; ++i) { cleanupTasks.add(new CompressTask(null, -1, -1, null));
Collection<CompressTask> cleanupTasks = new ArrayList<CompressTask>(maxThreads); for (int i = 0; i < maxThreads; ++i) { cleanupTasks.add(new CompressTask(null, -1, -1, null));