congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setScale (BigDecimal)
  • runOnUiThread (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • 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