Tabnine Logo
DirectoryExtensions.getMetadataCache
Code IndexAdd Tabnine to your IDE (free)

How to use
getMetadataCache
method
in
org.infinispan.lucene.impl.DirectoryExtensions

Best Java code snippets using org.infinispan.lucene.impl.DirectoryExtensions.getMetadataCache (Showing top 1 results out of 315)

origin: org.infinispan/infinispan-query

private void verifyUsesInfinispanDirectory(NRTIndexManager nrti, int expectedChunkSize, EmbeddedCacheManager embeddedCacheManager) throws IllegalArgumentException, IllegalAccessException, SecurityException, NoSuchFieldException {
 DirectoryProvider directoryProvider = nrti.getDirectoryProvider();
 Assert.assertTrue(directoryProvider instanceof InfinispanDirectoryProvider);
 InfinispanDirectoryProvider ispn = (InfinispanDirectoryProvider)directoryProvider;
 Directory infinispanDirectory = ispn.getDirectory();
 DirectoryExtensions extended = (DirectoryExtensions)infinispanDirectory;
 Assert.assertEquals(expectedChunkSize, extended.getChunkSize());
 Assert.assertEquals(extended.getMetadataCache().getName(), "LuceneIndexesMetadataOWR");
 Assert.assertEquals(extended.getDataCache().getName(), "LuceneIndexesDataOWR");
 //And finally check we're running it in the same CacheManager:
 Assert.assertTrue(extended.getDataCache().getCacheManager() == embeddedCacheManager);
}
org.infinispan.lucene.implDirectoryExtensionsgetMetadataCache

Popular methods of DirectoryExtensions

  • forceUnlock
  • getChunkSize
  • getDataCache
  • getIndexName
  • renameFile

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • requestLocationUpdates (LocationManager)
  • getSupportFragmentManager (FragmentActivity)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Top 12 Jupyter Notebook extensions
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