@Override public void close() throws Exception { AutoCloseables.close(pkgInputStream, sheetInputStream); } }
/** * decorator method to call multiple Partitioners close() */ public void close() throws Exception { AutoCloseables.close(partitioners); }
@Override public void close() throws Exception { AutoCloseables.close(pool); } }
@Override public void close() throws Exception { if(!closed){ closed = true; AutoCloseables.close(operators); } }
@Override public void close() throws Exception { AutoCloseables.close(outgoing, incoming, inner, mutator); } }
@Override public void close() throws Exception { // System.out.println("HA1######################## Nano Processing is " + stats.getProcessingNanos()); // System.out.println("\tPeak Mem: " + context.getAllocator().getPeakMemoryAllocation()); AutoCloseables.close(aggregator, outgoing); }
@Override public void close() throws Exception { Collections.reverse(operatorContexts); AutoCloseables.close(operatorContexts); }
@Override public void close() { try{ AutoCloseables.close(heapSv4, hyperBatch, finalSv4); }catch(Exception ex){ throw Throwables.propagate(ex); } }
@Override public void close() throws Exception { try { AutoCloseables.close(dictionaries.values()); } finally { dictionaries.clear(); } }
@Override public void close() throws Exception { if (closed) { logger.warn("Attempted to close Operator context for {}, but context is already closed", popConfig != null ? popConfig.getClass().getName() : "<unknown>"); return; } try{ AutoCloseables.close(manager, allocator); }finally{ closed = true; } }
@Override public void close() throws Exception { AutoCloseables.close(Iterables.concat(this.diskRuns, Collections.singleton(diskRunMerger), Collections.singleton(compressSpilledBatchAllocator), Collections.singleton(this.spillManager), Collections.singleton(copierAllocator))); }
@Override public void close() throws Exception { List<AutoCloseable> autoCloseables = new ArrayList<>(); autoCloseables.add(outgoing); autoCloseables.add(leftIterator); autoCloseables.add(rightIterator); AutoCloseables.close(autoCloseables); }
@Override public void close() throws Exception { List<AutoCloseable> closeables = new ArrayList<>(); closeables.add(outgoingContainer); closeables.addAll(Arrays.asList(nodes)); AutoCloseables.close(closeables); }
@Override @SuppressWarnings("unchecked") public synchronized void close(){ try{ AutoCloseables.close( (List<AutoCloseable>) (Object) recordBatches.getBatches()); }catch(Exception ex){ Throwables.propagate(ex); } }
@Override public void close() throws Exception { synchronized (dataObjectsToRelease) { logger.debug("Releasing loaded results for job {}", jobId.getId()); closed = true; AutoCloseables.close(dataObjectsToRelease); } } }
@Override public void close() throws Exception { try (TimedBlock b = Timer.time("close")) { // closes all registered services in reverse order AutoCloseables.close(registry, bootstrapRegistry); } // Notify that daemon has been closed closed.countDown(); }
@AfterClass public static void shutdown() throws Exception { AutoCloseables.close(tempBuf, allocator); } }
@Override public void close() throws Exception { AutoCloseables.close(output, splitter); context.getStats().addLongStat(Metric.JAVA_EXECUTE_TIME, javaCodeGenWatch.elapsed(TimeUnit.MILLISECONDS)); context.getStats().addLongStat(Metric.GANDIVA_EXECUTE_TIME, gandivaCodeGenWatch.elapsed(TimeUnit.MILLISECONDS)); javaCodeGenWatch.reset(); gandivaCodeGenWatch.reset(); }
@AfterClass public static void cleanup() throws Exception { // set it to default testNoResult("alter session set \"store.parquet.enable_dictionary_encoding_binary_type\"=false"); BaseTestQuery.testNoResult("alter session set \"planner.enable_global_dictionary\"=true"); fs.delete(tableDirPath1, true); fs.delete(tableDirPath2, true); AutoCloseables.close(testAllocator, testRootAllocator); }
@Override public void sendData(RpcOutcomeListener<Ack> listener, QueryWritableBatch result) { try{ AutoCloseables.close((AutoCloseable[]) result.getBuffers()); listener.success(Acks.OK, null); }catch(Exception ex){ listener.failed(new RpcException(ex)); } }