Package com.github.ambry.named
Class NamedBlobRecord
- java.lang.Object
-
- com.github.ambry.named.NamedBlobRecord
-
public class NamedBlobRecord extends java.lang.Object
Represents a metadata record in aNamedBlobDb
implementation.
-
-
Constructor Summary
Constructors Constructor Description NamedBlobRecord(java.lang.String accountName, java.lang.String containerName, java.lang.String blobName, java.lang.String blobId, long expirationTimeMs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getAccountName()
java.lang.String
getBlobId()
java.lang.String
getBlobName()
java.lang.String
getContainerName()
long
getExpirationTimeMs()
-
-
-
Constructor Detail
-
NamedBlobRecord
public NamedBlobRecord(java.lang.String accountName, java.lang.String containerName, java.lang.String blobName, java.lang.String blobId, long expirationTimeMs)
- Parameters:
accountName
- the account name.containerName
- the container name.blobName
- the blob name within the container.blobId
- the blob ID for the blob content in ambry storage.expirationTimeMs
- the expiration time in milliseconds since epoch, or -1 if the blob should be permanent.
-
-
Method Detail
-
getAccountName
public java.lang.String getAccountName()
- Returns:
- the account name.
-
getContainerName
public java.lang.String getContainerName()
- Returns:
- the container name.
-
getBlobName
public java.lang.String getBlobName()
- Returns:
- the blob name within the container.
-
getBlobId
public java.lang.String getBlobId()
- Returns:
- the blob ID for the blob content in ambry storage.
-
getExpirationTimeMs
public long getExpirationTimeMs()
- Returns:
- the expiration time in milliseconds since epoch, or -1 if the blob should be permanent.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
-