Interface MetadataProvider

  • All Known Implementing Classes:
    AstyanaxStorageProvider

    public interface MetadataProvider
    The interface Metadata provider.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      long countMetadata​(com.bazaarvoice.emodb.table.db.Table table)
      Count metadata.
      void deleteMetadata​(com.bazaarvoice.emodb.table.db.Table table, java.lang.String blobId)
      Delete metadata.
      StorageSummary readMetadata​(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.
      void writeMetadata​(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 table
        fromBlobIdExclusive - the from blob id exclusive
        limit - 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 table
        blobId - 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 table
        blobId - the blob id
        summary - the summary
      • deleteMetadata

        void deleteMetadata​(com.bazaarvoice.emodb.table.db.Table table,
                            java.lang.String blobId)
        Delete metadata.
        Parameters:
        table - the table
        blobId - the blob id
      • countMetadata

        long countMetadata​(com.bazaarvoice.emodb.table.db.Table table)
        Count metadata.
        Parameters:
        table - the table