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 SummaryFieldsModifier and TypeFieldDescriptionUnmodifiable empty list of UUIDs.Fields inherited from interface org.apache.hadoop.hbase.regionserver.SequenceIdNO_SEQUENCE_ID
- 
Method SummaryModifier 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.ComparablecompareToMethods inherited from interface org.apache.hadoop.hbase.regionserver.SequenceIdgetSequenceId
- 
Field Details- 
EMPTY_UUIDSUnmodifiable empty list of UUIDs.
 
- 
- 
Method Details- 
estimatedSerializedSizeOf
- 
getEncodedRegionNamebyte[] getEncodedRegionName()Returns encoded region name
- 
getTableNameReturns table name
- 
getWriteTimelong getWriteTime()Returns the write time
- 
getNonceGroupReturns The nonce group
- 
getNonceReturns The nonce
- 
getOriginatingClusterId
- 
getOrigLogSeqNumlong 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
 
- 
addExtendedAttributeAdd a named String value to this WALKey to be persisted into the WAL- Parameters:
- attributeKey- Name of the attribute
- attributeValue- Value of the attribute
 
- 
getExtendedAttributeReturn a named String value injected into the WALKey during processing, such as by a coprocessor- Parameters:
- attributeKey- The key of a key / value pair
 
- 
getExtendedAttributesReturns a map of all extended attributes injected into this WAL key.
- 
toStringMapProduces 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
 
 
-