MinioChunkedBinaryStore

binny.minio.MinioChunkedBinaryStore
See theMinioChunkedBinaryStore companion object
final class MinioChunkedBinaryStore[F[_]](val config: MinioConfig, val client: MinioAsyncClient, logger: Logger[F])(implicit evidence$1: Async[F]) extends ChunkedBinaryStore[F]

Attributes

Companion
object
Graph
Supertypes
trait ChunkedBinaryStore[F]
trait BinaryStore[F]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def computeAttr(id: BinaryId, hint: Hint): ComputeAttr[F]

Retrieves a selected set of attributes of a binary.

Retrieves a selected set of attributes of a binary.

Attributes

def delete(id: BinaryId): F[Unit]

Deletes all data associated to the given id.

Deletes all data associated to the given id.

Attributes

def exists(id: BinaryId): F[Boolean]

Check if a file exists. Same as findBinary().isDefined, but usually more efficiently implemented.

Check if a file exists. Same as findBinary().isDefined, but usually more efficiently implemented.

Attributes

def findBinary(id: BinaryId, range: ByteRange): OptionT[F, Binary[F]]

Finds a binary by its id. The range argument controls which part to return.

Finds a binary by its id. The range argument controls which part to return.

Attributes

def insert: (F, Byte) => BinaryId

Insert the given bytes creating a new id.

Insert the given bytes creating a new id.

Attributes

def insertChunk(id: BinaryId, chunkDef: ChunkDef, hint: Hint, data: ByteVector): F[InsertChunkResult]

Inserts the given chunk. This method allows to store chunks out of order. It is required to specify the total amount of chunks; thus the total length of the file must be known up front.

Inserts the given chunk. This method allows to store chunks out of order. It is required to specify the total amount of chunks; thus the total length of the file must be known up front.

The first chunk starts at index 0. Every chunk must be indexed consecutively (0, 1, 2, …).

The maximum chunk size is constant and defined by the implementation. All chunks must not exceed this length. If the complete file consists of multiple chunks, then only the last one may have less than this size.

Attributes

def insertWith(id: BinaryId): (F, Byte) => Nothing

Insert the given bytes to the given id. If some file already exists by this id, the behavior depends on the implementation.

Insert the given bytes to the given id. If some file already exists by this id, the behavior depends on the implementation.

Attributes

def listIds(prefix: Option[String], chunkSize: Int): Stream[F, BinaryId]

Returns a set of ids currently available in this store.

Returns a set of ids currently available in this store.

Attributes

Concrete fields