congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
DirectoryBuilderImpl.makeDefaultSegmentReadLocker
Code IndexAdd Tabnine to your IDE (free)

How to use
makeDefaultSegmentReadLocker
method
in
org.infinispan.lucene.impl.DirectoryBuilderImpl

Best Java code snippets using org.infinispan.lucene.impl.DirectoryBuilderImpl.makeDefaultSegmentReadLocker (Showing top 3 results out of 315)

origin: org.infinispan/infinispan-lucene-v3

@Override
public Directory create() {
 if (lockFactory == null) {
   lockFactory = makeDefaultLockFactory(distLocksCache, indexName);
 }
 if (srl == null) {
   srl = makeDefaultSegmentReadLocker(metadataCache, chunksCache, distLocksCache, indexName);
 }
 if (LuceneVersionDetector.VERSION == 3) {
   return new DirectoryLuceneV3(metadataCache, chunksCache, indexName, lockFactory, chunkSize, srl);
 }
 else {
   Class<?>[] ctorType = new Class[]{ Cache.class, Cache.class, String.class, LockFactory.class, int.class, SegmentReadLocker.class };
   Directory d;
   try {
    d = (Directory) DirectoryBuilderImpl.class.getClassLoader()
      .loadClass("org.infinispan.lucene.impl.DirectoryLuceneV4")
      .getConstructor(ctorType)
      .newInstance(metadataCache, chunksCache, indexName, lockFactory, chunkSize, srl);
   }
   catch (Exception e) {
    throw log.failedToCreateLucene4Directory(e);
   }
   return d;
 }
}
origin: org.infinispan/infinispan-lucene-directory

@Override
public Directory create() {
 if (lockFactory == null) {
   lockFactory = makeDefaultLockFactory();
 }
 if (srl == null) {
   srl = makeDefaultSegmentReadLocker(metadataCache, chunksCache, distLocksCache, indexName, affinitySegmentId);
 }
 if (deleteExecutor == null) {
   deleteExecutor = new WithinThreadExecutor();
 }
 return new DirectoryLucene(metadataCache, chunksCache, distLocksCache, indexName, lockFactory, chunkSize, srl, writeFileListAsync, deleteExecutor, affinitySegmentId);
}
origin: org.infinispan/infinispan-embedded-query

@Override
public Directory create() {
 if (lockFactory == null) {
   lockFactory = makeDefaultLockFactory();
 }
 if (srl == null) {
   srl = makeDefaultSegmentReadLocker(metadataCache, chunksCache, distLocksCache, indexName, affinitySegmentId);
 }
 if (deleteExecutor == null) {
   deleteExecutor = new WithinThreadExecutor();
 }
 return new DirectoryLucene(metadataCache, chunksCache, distLocksCache, indexName, lockFactory, chunkSize, srl, writeFileListAsync, deleteExecutor, affinitySegmentId);
}
org.infinispan.lucene.implDirectoryBuilderImplmakeDefaultSegmentReadLocker

Popular methods of DirectoryBuilderImpl

  • <init>
  • checkNotNull
  • checkValidConfiguration
  • makeDefaultLockFactory
  • validateMetadataCache
  • create

Popular in Java

  • Updating database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • runOnUiThread (Activity)
  • getExternalFilesDir (Context)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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