@InterfaceAudience.Private public final class CombinedWriter extends CombinedWriterBase<WALProvider.Writer> implements WALProvider.Writer
Modifier and Type | Class and Description |
---|---|
private static interface |
CombinedWriter.Action |
Modifier and Type | Field and Description |
---|---|
private org.apache.hbase.thirdparty.com.google.common.collect.ImmutableList<ExecutorService> |
executors |
writers
Modifier | Constructor and Description |
---|---|
private |
CombinedWriter(org.apache.hbase.thirdparty.com.google.common.collect.ImmutableList<WALProvider.Writer> writers) |
Modifier and Type | Method and Description |
---|---|
void |
append(WAL.Entry entry) |
private void |
apply(CombinedWriter.Action action) |
void |
close() |
static CombinedWriter |
create(WALProvider.Writer writer,
WALProvider.Writer... writers) |
void |
sync(boolean forceSync) |
getLength, getSyncedLength
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLength, getSyncedLength
private final org.apache.hbase.thirdparty.com.google.common.collect.ImmutableList<ExecutorService> executors
private CombinedWriter(org.apache.hbase.thirdparty.com.google.common.collect.ImmutableList<WALProvider.Writer> writers)
private void apply(CombinedWriter.Action action) throws IOException
IOException
public void sync(boolean forceSync) throws IOException
sync
in interface WALProvider.Writer
IOException
public void append(WAL.Entry entry) throws IOException
append
in interface WALProvider.Writer
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class CombinedWriterBase<WALProvider.Writer>
IOException
public static CombinedWriter create(WALProvider.Writer writer, WALProvider.Writer... writers)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.