Tabnine Logo
RefCount.decRef
Code IndexAdd Tabnine to your IDE (free)

How to use
decRef
method
in
org.apache.lucene.util.RefCount

Best Java code snippets using org.apache.lucene.util.RefCount.decRef (Showing top 4 results out of 315)

origin: org.apache.lucene/lucene-core

 /**
  * 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();
  });
 }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

 /**
  * 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();
  });
 }
}
origin: harbby/presto-connectors

 /**
  * 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);
  }
 }
}
origin: org.infinispan/infinispan-embedded-query

 /**
  * 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);
  }
 }
}
org.apache.lucene.utilRefCountdecRef

Javadoc

Decrements the reference counting of this object. When reference counting hits 0, calls #release().

Popular methods of RefCount

  • get
  • incRef
    Increments the reference count. Calls to this method must be matched with calls to #decRef().
  • release
    Called when reference counting hits 0. By default this method does nothing, but extensions can overr

Popular in Java

  • Creating JSON documents from java classes using gson
  • addToBackStack (FragmentTransaction)
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (Timer)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now