Package org.apache.hadoop.hbase.wal
Class BoundedEntryBuffers
java.lang.Object
org.apache.hadoop.hbase.wal.EntryBuffers
org.apache.hadoop.hbase.wal.BoundedEntryBuffers
Used for
BoundedRecoveredEditsOutputSink
. The core part of limiting opening writers is it
doesn't return chunk only if the heap size is over maxHeapUsage. Thus it doesn't need to create a
writer for each region during splitting. The returned EntryBuffers.RegionEntryBuffer
will
be write to recovered edits file and close the writer immediately. See
BoundedRecoveredEditsOutputSink.append(EntryBuffers.RegionEntryBuffer)
for more details.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.wal.EntryBuffers
EntryBuffers.RegionEntryBuffer
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.wal.EntryBuffers
buffers, maxHeapUsage, totalBuffered
-
Constructor Summary
ConstructorDescriptionBoundedEntryBuffers
(WALSplitter.PipelineController controller, long maxHeapUsage) -
Method Summary
Modifier and TypeMethodDescription(package private) EntryBuffers.RegionEntryBuffer
Returns RegionEntryBuffer a buffer of edits to be written.Methods inherited from class org.apache.hadoop.hbase.wal.EntryBuffers
appendEntry, doneWriting, isRegionCurrentlyWriting
-
Constructor Details
-
BoundedEntryBuffers
-
-
Method Details
-
getChunkToWrite
Description copied from class:EntryBuffers
Returns RegionEntryBuffer a buffer of edits to be written.- Overrides:
getChunkToWrite
in classEntryBuffers
-