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

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

Best Java code snippets using org.apache.lucene.util.RefCount.get (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.utilRefCountget

Javadoc

Returns the current reference count.

Popular methods of RefCount

  • decRef
    Decrements the reference counting of this object. When reference counting hits 0, calls #release().
  • 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

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • startActivity (Activity)
  • setContentView (Activity)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Path (java.nio.file)
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • JComboBox (javax.swing)
  • 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