Package org.apache.hadoop.hbase.wal
Interface WALKey
- All Superinterfaces:
Comparable<WALKey>
,SequenceId
- All Known Implementing Classes:
WALKeyImpl
@LimitedPrivate({"Replication","Coprocesssor"})
public interface WALKey
extends SequenceId, Comparable<WALKey>
Key for WAL Entry.
-
Field Summary
Modifier and TypeFieldDescriptionUnmodifiable empty list of UUIDs.Fields inherited from interface org.apache.hadoop.hbase.regionserver.SequenceId
NO_SEQUENCE_ID
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addExtendedAttribute
(String attributeKey, byte[] attributeValue) Add a named String value to this WALKey to be persisted into the WALdefault long
byte[]
Returns encoded region namedefault byte[]
getExtendedAttribute
(String attributeKey) Return a named String value injected into the WALKey during processing, such as by a coprocessorReturns a map of all extended attributes injected into this WAL key.default long
getNonce()
Returns The noncedefault long
Returns The nonce grouplong
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.Returns table namelong
Returns the write timeProduces a string map for this key.Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface org.apache.hadoop.hbase.regionserver.SequenceId
getSequenceId
-
Field Details
-
EMPTY_UUIDS
Unmodifiable empty list of UUIDs.
-
-
Method Details
-
estimatedSerializedSizeOf
-
getEncodedRegionName
byte[] getEncodedRegionName()Returns encoded region name -
getTableName
Returns table name -
getWriteTime
long getWriteTime()Returns the write time -
getNonceGroup
Returns The nonce group -
getNonce
Returns The nonce -
getOriginatingClusterId
-
getOrigLogSeqNum
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.- Returns:
- original sequence number of the WALEdit
-
addExtendedAttribute
Add a named String value to this WALKey to be persisted into the WAL- Parameters:
attributeKey
- Name of the attributeattributeValue
- Value of the attribute
-
getExtendedAttribute
Return a named String value injected into the WALKey during processing, such as by a coprocessor- Parameters:
attributeKey
- The key of a key / value pair
-
getExtendedAttributes
Returns a map of all extended attributes injected into this WAL key. -
toStringMap
Produces a string map for this key. Useful for programmatic use and manipulation of the data stored in an WALKeyImpl, for example, printing as JSON.- Returns:
- a Map containing data from this key
-