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
FieldsModifier and TypeFieldDescriptionprivate booleanprivate longprivate org.apache.hadoop.fs.Pathprivate longprivate intprivate intstatic final WALEntryBatchprivate long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid(package private) static WALEntryBatchendOfFile(org.apache.hadoop.fs.Path lastWalPath) (package private) static longlongReturns the heap size of this batchReturns the last sequenceid for each region if the table has serial-replication scopeorg.apache.hadoop.fs.PathReturns the path of the last WAL that was read.longReturns the position in the last WAL that was read.intintReturns the number of HFiles in this batchintReturns total number of operations in this batchintReturns the number of distinct row keys in this batchlongReturns the WAL Entries.Returns the WAL Entries.voidincrementHeapSize(long increment) voidincrementNbHFiles(int increment) voidincrementNbRowKeys(int increment) longincrementUsedBufferSize(WAL.Entry entry) booleanvoidsetEndOfFile(boolean endOfFile) voidsetLastSeqId(String region, long sequenceId) voidsetLastWalPath(org.apache.hadoop.fs.Path lastWalPath) voidsetLastWalPosition(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
-