Package org.apache.hadoop.hbase.wal
Class IOTestProvider.IOTestWriter
java.lang.Object
org.apache.hadoop.hbase.regionserver.wal.AbstractProtobufLogWriter
org.apache.hadoop.hbase.regionserver.wal.ProtobufLogWriter
org.apache.hadoop.hbase.wal.IOTestProvider.IOTestWriter
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.hadoop.hbase.wal.FSHLogProvider.Writer
,org.apache.hadoop.hbase.wal.WALProvider.Writer
,org.apache.hadoop.hbase.wal.WALProvider.WriterBase
- Enclosing class:
- IOTestProvider
private static class IOTestProvider.IOTestWriter
extends org.apache.hadoop.hbase.regionserver.wal.ProtobufLogWriter
Presumes init will be called by a single thread prior to any access of other methods.
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.regionserver.wal.ProtobufLogWriter
output
Fields inherited from class org.apache.hadoop.hbase.regionserver.wal.AbstractProtobufLogWriter
cellEncoder, compressionContext, compressor, conf, encryptor, length, trailer, trailerWarnSize, trailerWritten
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
append
(org.apache.hadoop.hbase.wal.WAL.Entry entry) void
init
(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf, boolean overwritable, long blocksize, org.apache.hadoop.hbase.io.asyncfs.monitor.StreamSlowMonitor monitor) void
sync
(boolean forceSync) Methods inherited from class org.apache.hadoop.hbase.regionserver.wal.ProtobufLogWriter
close, closeOutputIfNecessary, getOutputStreamForCellEncoder, getStream, getSyncedLength, initOutput, writeMagicAndWALHeader, writeWALTrailerAndMagic
Methods inherited from class org.apache.hadoop.hbase.regionserver.wal.AbstractProtobufLogWriter
getLength, writeWALTrailer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.hadoop.hbase.wal.WALProvider.WriterBase
getLength
-
Field Details
-
doAppends
-
doSyncs
-
-
Constructor Details
-
IOTestWriter
private IOTestWriter()
-
-
Method Details
-
init
public void init(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf, boolean overwritable, long blocksize, org.apache.hadoop.hbase.io.asyncfs.monitor.StreamSlowMonitor monitor) throws IOException, org.apache.hadoop.hbase.util.CommonFSUtils.StreamLacksCapabilityException - Specified by:
init
in interfaceorg.apache.hadoop.hbase.wal.FSHLogProvider.Writer
- Overrides:
init
in classorg.apache.hadoop.hbase.regionserver.wal.AbstractProtobufLogWriter
- Throws:
IOException
org.apache.hadoop.hbase.util.CommonFSUtils.StreamLacksCapabilityException
-
append
- Specified by:
append
in interfaceorg.apache.hadoop.hbase.wal.WALProvider.Writer
- Overrides:
append
in classorg.apache.hadoop.hbase.regionserver.wal.ProtobufLogWriter
- Throws:
IOException
-
sync
- Specified by:
sync
in interfaceorg.apache.hadoop.hbase.wal.WALProvider.Writer
- Overrides:
sync
in classorg.apache.hadoop.hbase.regionserver.wal.ProtobufLogWriter
- Throws:
IOException
-