Class CachedIndexOutput

java.lang.Object
org.apache.lucene.store.DataOutput
org.apache.lucene.store.IndexOutput
org.apache.solr.blockcache.ReusedBufferedIndexOutput
org.apache.solr.blockcache.CachedIndexOutput
All Implemented Interfaces:
Closeable, AutoCloseable

public class CachedIndexOutput extends ReusedBufferedIndexOutput
Cache the blocks as they are written. The cache file name is the name of the file until the file is closed, at which point the cache is updated to include the last modified date (which is unknown until that point).
WARNING: This API is experimental and might change in incompatible ways in the next release.
  • Constructor Details

    • CachedIndexOutput

      public CachedIndexOutput(BlockDirectory directory, org.apache.lucene.store.IndexOutput dest, int blockSize, String name, Cache cache, int bufferSize)
  • Method Details