Package com.github.ambry.store
Class StoreKey
- java.lang.Object
-
- com.github.ambry.store.StoreKey
-
-
Constructor Summary
Constructors Constructor Description StoreKey()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract java.lang.String
getID()
Get the key in String formabstract java.lang.String
getLongForm()
Get a long form of the key for printing.abstract byte[]
getUuidBytesArray()
The byte version of UUID for this keyabstract boolean
isAccountContainerMatch(short accountId, short containerId)
abstract short
sizeInBytes()
The size of the serialized version of the keyabstract byte[]
toBytes()
The byte version of this key
-
-
-
Method Detail
-
toBytes
public abstract byte[] toBytes()
The byte version of this key- Returns:
- A byte buffer that represents the key
-
getUuidBytesArray
public abstract byte[] getUuidBytesArray()
The byte version of UUID for this key- Returns:
- A byte buffer that represents the UUID of this key
-
sizeInBytes
public abstract short sizeInBytes()
The size of the serialized version of the key- Returns:
- The size of the key
-
getID
public abstract java.lang.String getID()
Get the key in String form- Returns:
- the key in String form
-
isAccountContainerMatch
public abstract boolean isAccountContainerMatch(short accountId, short containerId)
- Returns:
- true if accountId and containerId in key match given accountId and containerId from store.
-
getLongForm
public abstract java.lang.String getLongForm()
Get a long form of the key for printing.- Returns:
- the long form of the key
-
-