Class BufferedIndexOutput

All Implemented Interfaces:
Closeable, AutoCloseable
Direct Known Subclasses:
FSDirectory.FSIndexOutput

public abstract class BufferedIndexOutput extends IndexOutput
Base implementation class for buffered IndexOutput.
  • Field Details

    • DEFAULT_BUFFER_SIZE

      public static final int DEFAULT_BUFFER_SIZE
      The default buffer size in bytes (16384).
      See Also:
  • Constructor Details

    • BufferedIndexOutput

      public BufferedIndexOutput()
      Creates a new BufferedIndexOutput with the default buffer size (16384 bytes see DEFAULT_BUFFER_SIZE)
    • BufferedIndexOutput

      public BufferedIndexOutput(int bufferSize)
      Creates a new BufferedIndexOutput with the given buffer size.
      Parameters:
      bufferSize - the buffer size in bytes used to buffer writes internally.
      Throws:
      IllegalArgumentException - if the given buffer size is less or equal to 0
  • Method Details