Class WriterOverAsyncWriter

java.lang.Object
org.apache.hadoop.hbase.regionserver.wal.WriterOverAsyncWriter
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.hadoop.hbase.wal.WALProvider.Writer, org.apache.hadoop.hbase.wal.WALProvider.WriterBase

class WriterOverAsyncWriter extends Object implements org.apache.hadoop.hbase.wal.WALProvider.Writer
  • Field Details

    • asyncWriter

      private final org.apache.hadoop.hbase.wal.WALProvider.AsyncWriter asyncWriter
  • Constructor Details

    • WriterOverAsyncWriter

      public WriterOverAsyncWriter(org.apache.hadoop.hbase.wal.WALProvider.AsyncWriter asyncWriter)
  • Method Details

    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException
    • getLength

      public long getLength()
      Specified by:
      getLength in interface org.apache.hadoop.hbase.wal.WALProvider.WriterBase
    • getSyncedLength

      public long getSyncedLength()
      Specified by:
      getSyncedLength in interface org.apache.hadoop.hbase.wal.WALProvider.WriterBase
    • append

      public void append(org.apache.hadoop.hbase.wal.WAL.Entry entry) throws IOException
      Specified by:
      append in interface org.apache.hadoop.hbase.wal.WALProvider.Writer
      Throws:
      IOException
    • sync

      public void sync(boolean forceSync) throws IOException
      Specified by:
      sync in interface org.apache.hadoop.hbase.wal.WALProvider.Writer
      Throws:
      IOException