Package com.bazaarvoice.emodb.blob.db
Interface MetadataProvider
-
- All Known Implementing Classes:
AstyanaxStorageProvider
public interface MetadataProviderThe interface Metadata provider.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longcountMetadata(com.bazaarvoice.emodb.table.db.Table table)Count metadata.voiddeleteMetadata(com.bazaarvoice.emodb.table.db.Table table, java.lang.String blobId)Delete metadata.StorageSummaryreadMetadata(com.bazaarvoice.emodb.table.db.Table table, java.lang.String blobId)Read metadata storage summary.java.util.Iterator<java.util.Map.Entry<java.lang.String,StorageSummary>>scanMetadata(com.bazaarvoice.emodb.table.db.Table table, java.lang.String fromBlobIdExclusive, com.bazaarvoice.emodb.common.api.impl.LimitCounter limit)Scan metadata iterator.voidwriteMetadata(com.bazaarvoice.emodb.table.db.Table table, java.lang.String blobId, StorageSummary summary)Write metadata.
-
-
-
Method Detail
-
scanMetadata
java.util.Iterator<java.util.Map.Entry<java.lang.String,StorageSummary>> scanMetadata(com.bazaarvoice.emodb.table.db.Table table, @Nullable java.lang.String fromBlobIdExclusive, com.bazaarvoice.emodb.common.api.impl.LimitCounter limit)
Scan metadata iterator.- Parameters:
table- the tablefromBlobIdExclusive- the from blob id exclusivelimit- the limit- Returns:
- the iterator
-
readMetadata
StorageSummary readMetadata(com.bazaarvoice.emodb.table.db.Table table, java.lang.String blobId)
Read metadata storage summary.- Parameters:
table- the tableblobId- the blob id- Returns:
- the storage summary
-
writeMetadata
void writeMetadata(com.bazaarvoice.emodb.table.db.Table table, java.lang.String blobId, StorageSummary summary)Write metadata.- Parameters:
table- the tableblobId- the blob idsummary- the summary
-
deleteMetadata
void deleteMetadata(com.bazaarvoice.emodb.table.db.Table table, java.lang.String blobId)Delete metadata.- Parameters:
table- the tableblobId- the blob id
-
countMetadata
long countMetadata(com.bazaarvoice.emodb.table.db.Table table)
Count metadata.- Parameters:
table- the table
-
-