Package com.enonic.xp.blob

## Interface BlobStore

-     public interface BlobStore

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `BlobRecord` | `addRecord​(Segment segment, BlobRecord record)` |
    `BlobRecord` | `addRecord​(Segment segment, ByteSource in)` |
    `void` | `deleteSegment​(Segment segment)` |
    `BlobRecord` | `getRecord​(Segment segment, BlobKey key)` |
    `Stream<BlobRecord>` | `list​(Segment segment)` |
    `Stream<Segment>` | `listSegments()` |
    `void` | `removeRecord​(Segment segment, BlobKey key)` |

- - ### Method Detail

    - #### getRecord

          BlobRecord getRecord​(Segment segment,
                               BlobKey key)
                        throws BlobStoreException

      Throws:
        `BlobStoreException`

    - #### addRecord

          BlobRecord addRecord​(Segment segment,
                               ByteSource in)
                        throws BlobStoreException

      Throws:
        `BlobStoreException`

    - #### addRecord

          BlobRecord addRecord​(Segment segment,
                               BlobRecord record)
                        throws BlobStoreException

      Throws:
        `BlobStoreException`

    - #### removeRecord

          void removeRecord​(Segment segment,
                            BlobKey key)
                     throws BlobStoreException

      Throws:
        `BlobStoreException`

    - #### list

          Stream<BlobRecord> list​(Segment segment)

    - #### listSegments

          Stream<Segment> listSegments()

    - #### deleteSegment

          void deleteSegment​(Segment segment)