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
FieldsModifier and TypeFieldDescriptionUnmodifiable empty list of UUIDs.Fields inherited from interface org.apache.hadoop.hbase.regionserver.SequenceId
NO_SEQUENCE_ID -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExtendedAttribute(String attributeKey, byte[] attributeValue) Add a named String value to this WALKey to be persisted into the WALdefault longbyte[]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 longgetNonce()Returns The noncedefault longReturns The nonce grouplongReturn 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 namelongReturns the write timeProduces a string map for this key.Methods inherited from interface java.lang.Comparable
compareToMethods 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
-