Class WALEntryBatch
java.lang.Object
org.apache.hadoop.hbase.replication.regionserver.WALEntryBatch
Holds a batch of WAL entries to replicate, along with some statistics
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private long
private org.apache.hadoop.fs.Path
private long
private int
private int
static final WALEntryBatch
private long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
(package private) static WALEntryBatch
endOfFile
(org.apache.hadoop.fs.Path lastWalPath) (package private) static long
long
Returns the heap size of this batchReturns the last sequenceid for each region if the table has serial-replication scopeorg.apache.hadoop.fs.Path
Returns the path of the last WAL that was read.long
Returns the position in the last WAL that was read.int
int
Returns the number of HFiles in this batchint
Returns total number of operations in this batchint
Returns the number of distinct row keys in this batchlong
Returns the WAL Entries.Returns the WAL Entries.void
incrementHeapSize
(long increment) void
incrementNbHFiles
(int increment) void
incrementNbRowKeys
(int increment) long
incrementUsedBufferSize
(WAL.Entry entry) boolean
void
setEndOfFile
(boolean endOfFile) void
setLastSeqId
(String region, long sequenceId) void
setLastWalPath
(org.apache.hadoop.fs.Path lastWalPath) void
setLastWalPosition
(long lastWalPosition) toString()
-
Field Details
-
NO_MORE_DATA
-
walEntriesWithSize
-
lastWalPath
-
lastWalPosition
-
nbRowKeys
-
nbHFiles
-
heapSize
-
lastSeqIds
-
endOfFile
-
usedBufferSize
-
-
Constructor Details
-
WALEntryBatch
WALEntryBatch(int maxNbEntries, org.apache.hadoop.fs.Path lastWalPath) - Parameters:
lastWalPath
- Path of the WAL the last entry in this batch was read from
-
-
Method Details
-
endOfFile
-
addEntry
-
getWalEntries
Returns the WAL Entries. -
getWalEntriesWithSize
Returns the WAL Entries. -
getLastWalPath
Returns the path of the last WAL that was read. -
setLastWalPath
-
getLastWalPosition
Returns the position in the last WAL that was read. -
setLastWalPosition
-
getNbEntries
-
getNbRowKeys
Returns the number of distinct row keys in this batch -
getNbHFiles
Returns the number of HFiles in this batch -
getNbOperations
Returns total number of operations in this batch -
getHeapSize
Returns the heap size of this batch -
getLastSeqIds
Returns the last sequenceid for each region if the table has serial-replication scope -
isEndOfFile
-
setEndOfFile
-
incrementNbRowKeys
-
incrementNbHFiles
-
incrementHeapSize
-
setLastSeqId
-
incrementUsedBufferSize
-
getUsedBufferSize
-
toString
-
getEntrySizeExcludeBulkLoad
-