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

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

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

origin: org.apache.lucene/lucene-core

/** Returns the {@link DocValuesProducer} for the given generation. */
synchronized DocValuesProducer getDocValuesProducer(long gen, SegmentCommitInfo si, Directory dir, FieldInfos infos) throws IOException {
 RefCount<DocValuesProducer> dvp = genDVProducers.get(gen);
 if (dvp == null) {
  dvp = newDocValuesProducer(si, dir, gen, infos);
  assert dvp != null;
  genDVProducers.put(gen, dvp);
 } else {
  dvp.incRef();
 }
 return dvp.get();
}

origin: org.infinispan/infinispan-embedded-query

/** Returns the {@link DocValuesProducer} for the given generation. */
synchronized DocValuesProducer getDocValuesProducer(long gen, SegmentCommitInfo si, Directory dir, FieldInfos infos) throws IOException {
 RefCount<DocValuesProducer> dvp = genDVProducers.get(gen);
 if (dvp == null) {
  dvp = newDocValuesProducer(si, dir, gen, infos);
  assert dvp != null;
  genDVProducers.put(gen, dvp);
 } else {
  dvp.incRef();
 }
 return dvp.get();
}

origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

/** Returns the {@link DocValuesProducer} for the given generation. */
synchronized DocValuesProducer getDocValuesProducer(long gen, SegmentCommitInfo si, Directory dir, FieldInfos infos) throws IOException {
 RefCount<DocValuesProducer> dvp = genDVProducers.get(gen);
 if (dvp == null) {
  dvp = newDocValuesProducer(si, dir, gen, infos);
  assert dvp != null;
  genDVProducers.put(gen, dvp);
 } else {
  dvp.incRef();
 }
 return dvp.get();
}

origin: harbby/presto-connectors

/** Returns the {@link DocValuesProducer} for the given generation. */
synchronized DocValuesProducer getDocValuesProducer(long gen, SegmentCommitInfo si, Directory dir, FieldInfos infos) throws IOException {
 RefCount<DocValuesProducer> dvp = genDVProducers.get(gen);
 if (dvp == null) {
  dvp = newDocValuesProducer(si, dir, gen, infos);
  assert dvp != null;
  genDVProducers.put(gen, dvp);
 } else {
  dvp.incRef();
 }
 return dvp.get();
}

org.apache.lucene.utilRefCountincRef

Javadoc

Increments the reference count. Calls to this method must be matched with calls to #decRef().

Popular methods of RefCount

  • decRef
    Decrements the reference counting of this object. When reference counting hits 0, calls #release().
  • get
  • release
    Called when reference counting hits 0. By default this method does nothing, but extensions can overr

Popular in Java

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • getSystemService (Context)
  • onCreateOptionsMenu (Activity)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top Sublime Text plugins
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