@InterfaceAudience.LimitedPrivate(value={"Replication","Coprocesssor"}) public interface WALKey extends SequenceId, Comparable<WALKey>
Modifier and Type | Field and Description |
---|---|
static List<UUID> |
EMPTY_UUIDS
Unmodifiable empty list of UUIDs.
|
NO_SEQUENCE_ID
Modifier and Type | Method and Description |
---|---|
void |
addExtendedAttribute(String attributeKey,
byte[] attributeValue)
Add a named String value to this WALKey to be persisted into the WAL
|
default long |
estimatedSerializedSizeOf() |
byte[] |
getEncodedRegionName() |
default byte[] |
getExtendedAttribute(String attributeKey)
Return a named String value injected into the WALKey during processing, such as by a
coprocessor
|
default Map<String,byte[]> |
getExtendedAttributes()
Returns a map of all extended attributes injected into this WAL key.
|
default long |
getNonce() |
default long |
getNonceGroup() |
UUID |
getOriginatingClusterId() |
long |
getOrigLogSeqNum()
Return a positive long if current WALKeyImpl is created from a replay edit; a replay edit is an
edit that came in when replaying WALs of a crashed server.
|
TableName |
getTableName() |
long |
getWriteTime() |
default Map<String,Object> |
toStringMap()
Produces a string map for this key.
|
getSequenceId
compareTo
static final List<UUID> EMPTY_UUIDS
default long estimatedSerializedSizeOf()
byte[] getEncodedRegionName()
TableName getTableName()
long getWriteTime()
default long getNonceGroup()
default long getNonce()
UUID getOriginatingClusterId()
long getOrigLogSeqNum()
void addExtendedAttribute(String attributeKey, byte[] attributeValue)
attributeKey
- Name of the attributeattributeValue
- Value of the attributedefault byte[] getExtendedAttribute(String attributeKey)
attributeKey
- The key of a key / value pairdefault Map<String,byte[]> getExtendedAttributes()
default Map<String,Object> toStringMap()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.