public static class WALSplitter.EntryBuffers extends Object
Modifier and Type | Field and Description |
---|---|
(package private) Map<byte[],WALSplitter.RegionEntryBuffer> |
buffers |
(package private) WALSplitter.PipelineController |
controller |
(package private) Set<byte[]> |
currentlyWriting |
(package private) long |
maxHeapUsage |
(package private) boolean |
splitWriterCreationBounded |
(package private) long |
totalBuffered |
Constructor and Description |
---|
EntryBuffers(WALSplitter.PipelineController controller,
long maxHeapUsage) |
EntryBuffers(WALSplitter.PipelineController controller,
long maxHeapUsage,
boolean splitWriterCreationBounded) |
Modifier and Type | Method and Description |
---|---|
void |
appendEntry(WAL.Entry entry)
Append a log entry into the corresponding region buffer.
|
(package private) void |
doneWriting(WALSplitter.RegionEntryBuffer buffer) |
(package private) WALSplitter.RegionEntryBuffer |
getChunkToWrite() |
(package private) boolean |
isRegionCurrentlyWriting(byte[] region) |
void |
waitUntilDrained() |
WALSplitter.PipelineController controller
Map<byte[],WALSplitter.RegionEntryBuffer> buffers
Set<byte[]> currentlyWriting
long totalBuffered
long maxHeapUsage
boolean splitWriterCreationBounded
public EntryBuffers(WALSplitter.PipelineController controller, long maxHeapUsage)
public EntryBuffers(WALSplitter.PipelineController controller, long maxHeapUsage, boolean splitWriterCreationBounded)
public void appendEntry(WAL.Entry entry) throws InterruptedException, IOException
InterruptedException
IOException
WALSplitter.RegionEntryBuffer getChunkToWrite()
void doneWriting(WALSplitter.RegionEntryBuffer buffer)
boolean isRegionCurrentlyWriting(byte[] region)
public void waitUntilDrained()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.