Tabnine Logo
MultiReader.getSequentialSubReaders
Code IndexAdd Tabnine to your IDE (free)

How to use
getSequentialSubReaders
method
in
org.apache.lucene.index.MultiReader

Best Java code snippets using org.apache.lucene.index.MultiReader.getSequentialSubReaders (Showing top 6 results out of 315)

origin: org.apache.lucene/lucene-core

@Override
public CacheHelper getReaderCacheHelper() {
 // MultiReader instances can be short-lived, which would make caching trappy
 // so we do not cache on them, unless they wrap a single reader in which
 // case we delegate
 if (getSequentialSubReaders().size() == 1) {
  return getSequentialSubReaders().get(0).getReaderCacheHelper();
 }
 return null;
}
origin: org.apache.lucene/lucene-core

 @Override
 protected synchronized void doClose() throws IOException {
  IOException ioe = null;
  for (final IndexReader r : getSequentialSubReaders()) {
   try {
    if (closeSubReaders) {
     r.close();
    } else {
     r.decRef();
    }
   } catch (IOException e) {
    if (ioe == null) ioe = e;
   }
  }
  // throw the first exception
  if (ioe != null) throw ioe;
 }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

@Override
public CacheHelper getReaderCacheHelper() {
 // MultiReader instances can be short-lived, which would make caching trappy
 // so we do not cache on them, unless they wrap a single reader in which
 // case we delegate
 if (getSequentialSubReaders().size() == 1) {
  return getSequentialSubReaders().get(0).getReaderCacheHelper();
 }
 return null;
}
origin: org.infinispan/infinispan-embedded-query

 @Override
 protected synchronized void doClose() throws IOException {
  IOException ioe = null;
  for (final IndexReader r : getSequentialSubReaders()) {
   try {
    if (closeSubReaders) {
     r.close();
    } else {
     r.decRef();
    }
   } catch (IOException e) {
    if (ioe == null) ioe = e;
   }
  }
  // throw the first exception
  if (ioe != null) throw ioe;
 }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

 @Override
 protected synchronized void doClose() throws IOException {
  IOException ioe = null;
  for (final IndexReader r : getSequentialSubReaders()) {
   try {
    if (closeSubReaders) {
     r.close();
    } else {
     r.decRef();
    }
   } catch (IOException e) {
    if (ioe == null) ioe = e;
   }
  }
  // throw the first exception
  if (ioe != null) throw ioe;
 }
}
origin: harbby/presto-connectors

 @Override
 protected synchronized void doClose() throws IOException {
  IOException ioe = null;
  for (final IndexReader r : getSequentialSubReaders()) {
   try {
    if (closeSubReaders) {
     r.close();
    } else {
     r.decRef();
    }
   } catch (IOException e) {
    if (ioe == null) ioe = e;
   }
  }
  // throw the first exception
  if (ioe != null) throw ioe;
 }
}
org.apache.lucene.indexMultiReadergetSequentialSubReaders

Popular methods of MultiReader

  • <init>
    Construct a MultiReader aggregating the named set of (sub)readers. Directory locking for delete, und
  • close
  • initialize
  • maxDoc
  • readerIndex
  • ensureOpen
  • fakeNorms
  • hasNorms
  • termDocs
  • addListener
  • doClose
  • getContext
  • doClose,
  • getContext,
  • numDocs,
  • read

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setContentView (Activity)
  • getResourceAsStream (ClassLoader)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Option (scala)
  • CodeWhisperer alternatives
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