@InterfaceAudience.Private class FSWALEntry extends WAL.Entry
FSHLog
implementation. Immutable.
A subclass of WAL.Entry
that carries extra info across the ring buffer such as
region sequence id (we want to use this later, just before we write the WAL to ensure region
edits maintain order). The extra info added here is not 'serialized' as part of the WALEdit
hence marked 'transient' to underline this fact. It also adds mechanism so we can wait on
the assign of the region sequence id. See #stampRegionSequenceId().Modifier and Type | Field and Description |
---|---|
private Set<byte[]> |
familyNames |
private HRegionInfo |
hri |
private HTableDescriptor |
htd |
private boolean |
inMemstore |
private long |
sequence |
Constructor and Description |
---|
FSWALEntry(long sequence,
WALKey key,
WALEdit edit,
HTableDescriptor htd,
HRegionInfo hri,
boolean inMemstore) |
Modifier and Type | Method and Description |
---|---|
(package private) Set<byte[]> |
getFamilyNames() |
(package private) HRegionInfo |
getHRegionInfo() |
(package private) HTableDescriptor |
getHTableDescriptor() |
(package private) long |
getSequence() |
(package private) boolean |
isInMemstore() |
(package private) long |
stampRegionSequenceId()
Here is where a WAL edit gets its sequenceid.
|
String |
toString() |
getEdit, getKey, setCompressionContext
private final transient long sequence
private final transient boolean inMemstore
private final transient HTableDescriptor htd
private final transient HRegionInfo hri
private final Set<byte[]> familyNames
FSWALEntry(long sequence, WALKey key, WALEdit edit, HTableDescriptor htd, HRegionInfo hri, boolean inMemstore)
boolean isInMemstore()
HTableDescriptor getHTableDescriptor()
HRegionInfo getHRegionInfo()
long getSequence()
long stampRegionSequenceId() throws IOException
IOException
Set<byte[]> getFamilyNames()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.