Package com.bazaarvoice.emodb.blob.db
Interface StorageProvider
-
- All Known Implementing Classes:
AstyanaxStorageProvider
public interface StorageProviderChunked storage provider based on the Astyanaxcom.netflix.astyanax.recipes.storage.ChunkedStorageProviderinterface but with the addition of atimestampfield so that the metadata and all chunks may be written with the same timestamp.See https://github.com/Netflix/astyanax/wiki/Chunked-Object-Store
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeleteObject(com.bazaarvoice.emodb.table.db.Table table, java.lang.String blobId)longgetCurrentTimestamp(com.bazaarvoice.emodb.table.db.Table table)intgetDefaultChunkSize()java.nio.ByteBufferreadChunk(com.bazaarvoice.emodb.table.db.Table table, java.lang.String blobId, int chunkId, long timestamp)voidwriteChunk(com.bazaarvoice.emodb.table.db.Table table, java.lang.String blobId, int chunkId, java.nio.ByteBuffer data, long timestamp)
-
-
-
Method Detail
-
getCurrentTimestamp
long getCurrentTimestamp(com.bazaarvoice.emodb.table.db.Table table)
-
writeChunk
void writeChunk(com.bazaarvoice.emodb.table.db.Table table, java.lang.String blobId, int chunkId, java.nio.ByteBuffer data, long timestamp)
-
readChunk
java.nio.ByteBuffer readChunk(com.bazaarvoice.emodb.table.db.Table table, java.lang.String blobId, int chunkId, long timestamp)
-
deleteObject
void deleteObject(com.bazaarvoice.emodb.table.db.Table table, java.lang.String blobId)
-
getDefaultChunkSize
int getDefaultChunkSize()
-
-