Class ByteSizeDirectory

java.lang.Object
org.apache.lucene.store.Directory
org.apache.lucene.store.FilterDirectory
org.elasticsearch.index.store.ByteSizeDirectory
All Implemented Interfaces:
Closeable, AutoCloseable

public abstract class ByteSizeDirectory extends org.apache.lucene.store.FilterDirectory
  • Field Summary

    Fields inherited from class org.apache.lucene.store.FilterDirectory

    in
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ByteSizeDirectory(org.apache.lucene.store.Directory in)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract long
     
    abstract long
     
    protected static long
    estimateSizeInBytes(org.apache.lucene.store.Directory directory)
     

    Methods inherited from class org.apache.lucene.store.FilterDirectory

    close, createOutput, createTempOutput, deleteFile, ensureOpen, fileLength, getDelegate, getPendingDeletions, listAll, obtainLock, openInput, rename, sync, syncMetaData, toString, unwrap

    Methods inherited from class org.apache.lucene.store.Directory

    copyFrom, getTempFileName, openChecksumInput

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ByteSizeDirectory

      protected ByteSizeDirectory(org.apache.lucene.store.Directory in)
  • Method Details

    • estimateSizeInBytes

      protected static long estimateSizeInBytes(org.apache.lucene.store.Directory directory) throws IOException
      Throws:
      IOException
    • estimateSizeInBytes

      public abstract long estimateSizeInBytes() throws IOException
      Returns:
      the size of the directory
      Throws:
      IOException - if an I/O error occurs
    • estimateDataSetSizeInBytes

      public abstract long estimateDataSetSizeInBytes() throws IOException
      Returns:
      the size of the total data set of the directory (which can differ from {estimateSizeInBytes()})
      Throws:
      IOException - if an I/O error occurs