Class CombinedWriter
java.lang.Object
org.apache.hadoop.hbase.regionserver.wal.CombinedWriterBase<WALProvider.Writer>
org.apache.hadoop.hbase.regionserver.wal.CombinedWriter
- All Implemented Interfaces:
Closeable,AutoCloseable,WALProvider.Writer,WALProvider.WriterBase
@Private
public final class CombinedWriter
extends CombinedWriterBase<WALProvider.Writer>
implements WALProvider.Writer
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.apache.hbase.thirdparty.com.google.common.collect.ImmutableList<ExecutorService>Fields inherited from class org.apache.hadoop.hbase.regionserver.wal.CombinedWriterBase
writers -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCombinedWriter(org.apache.hbase.thirdparty.com.google.common.collect.ImmutableList<WALProvider.Writer> writers) -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate voidapply(CombinedWriter.Action action) voidclose()static CombinedWritercreate(WALProvider.Writer writer, WALProvider.Writer... writers) voidsync(boolean forceSync) Methods inherited from class org.apache.hadoop.hbase.regionserver.wal.CombinedWriterBase
getLength, getSyncedLengthMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.wal.WALProvider.WriterBase
getLength, getSyncedLength
-
Field Details
-
executors
private final org.apache.hbase.thirdparty.com.google.common.collect.ImmutableList<ExecutorService> executors
-
-
Constructor Details
-
CombinedWriter
private CombinedWriter(org.apache.hbase.thirdparty.com.google.common.collect.ImmutableList<WALProvider.Writer> writers)
-
-
Method Details
-
apply
- Throws:
IOException
-
sync
- Specified by:
syncin interfaceWALProvider.Writer- Throws:
IOException
-
append
- Specified by:
appendin interfaceWALProvider.Writer- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classCombinedWriterBase<WALProvider.Writer>- Throws:
IOException
-
create
-