Interface StorageProvider

  • All Known Implementing Classes:
    AstyanaxStorageProvider

    public interface StorageProvider
    Chunked storage provider based on the Astyanax com.netflix.astyanax.recipes.storage.ChunkedStorageProvider interface but with the addition of a timestamp field 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
      void deleteObject​(com.bazaarvoice.emodb.table.db.Table table, java.lang.String blobId)  
      long getCurrentTimestamp​(com.bazaarvoice.emodb.table.db.Table table)  
      int getDefaultChunkSize()  
      java.nio.ByteBuffer readChunk​(com.bazaarvoice.emodb.table.db.Table table, java.lang.String blobId, int chunkId, long timestamp)  
      void writeChunk​(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()