/** * Decrement the reference count of the given {@link DocValuesProducer} * generations. */ synchronized void decRef(List<Long> dvProducersGens) throws IOException { IOUtils.applyToAll(dvProducersGens, gen -> { RefCount<DocValuesProducer> dvp = genDVProducers.get(gen); assert dvp != null : "gen=" + gen; dvp.decRef(); }); } }
/** * Decrement the reference count of the given {@link DocValuesProducer} * generations. */ synchronized void decRef(List<Long> dvProducersGens) throws IOException { IOUtils.applyToAll(dvProducersGens, gen -> { RefCount<DocValuesProducer> dvp = genDVProducers.get(gen); assert dvp != null : "gen=" + gen; dvp.decRef(); }); } }
/** * Decrement the reference count of the given {@link DocValuesProducer} * generations. */ synchronized void decRef(List<Long> dvProducersGens) throws IOException { Throwable t = null; for (Long gen : dvProducersGens) { RefCount<DocValuesProducer> dvp = genDVProducers.get(gen); assert dvp != null : "gen=" + gen; try { dvp.decRef(); } catch (Throwable th) { if (t != null) { t = th; } } } if (t != null) { IOUtils.reThrow(t); } } }
/** * Decrement the reference count of the given {@link DocValuesProducer} * generations. */ synchronized void decRef(List<Long> dvProducersGens) throws IOException { Throwable t = null; for (Long gen : dvProducersGens) { RefCount<DocValuesProducer> dvp = genDVProducers.get(gen); assert dvp != null : "gen=" + gen; try { dvp.decRef(); } catch (Throwable th) { if (t != null) { t = th; } } } if (t != null) { IOUtils.reThrow(t); } } }