Packages

c

blobstore

StoreOps

class StoreOps[F[_], B] extends AnyRef

This object contains shared implementations of functions that requires additional capabilities from the effect type

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StoreOps
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StoreOps(store: Store[F, B])(implicit arg0: Files[F], arg1: Concurrent[F])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def bufferedPut[A](url: Url[A], overwrite: Boolean, chunkSize: Int): Pipe[F, Byte, Unit]

    Put sink that buffers all incoming bytes to local filesystem, computes buffered data size, then puts bytes to store.

    Put sink that buffers all incoming bytes to local filesystem, computes buffered data size, then puts bytes to store. Useful when uploading data to stores that require content size like S3Store.

    url

    Path to write to

    returns

    Sink[F, Byte] buffered sink

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. def getContents[A](url: Url[A], chunkSize: Int, decoder: Pipe[F, Byte, String]): F[String]

    Decode get bytes from path into a string using decoder and return concatenated string.

    Decode get bytes from path into a string using decoder and return concatenated string.

    USE WITH CARE, this loads all file contents into memory.

    url

    Path to get

    decoder

    Pipe[F, Byte, String]

    returns

    F[String] with file contents

  11. def getContents[A](url: Url[A], chunkSize: Int = 4096): F[String]

    getContents with default UTF8 decoder

    getContents with default UTF8 decoder

    url

    Url to get

    returns

    F[String] with file contents

  12. def getToNio[A](src: Url[A], dst: Path, chunkSize: Int): F[Unit]

    get src path and write to local file system

    get src path and write to local file system

    src

    Path to get

    dst

    local file to write contents to

    returns

    F[Unit]

  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def listAll[A](url: Url[A], recursive: Boolean = false): F[List[Url[B]]]

    Collect all list results in the same order as the original list Stream

    Collect all list results in the same order as the original list Stream

    url

    Url to list

    returns

    F\[List\[Url\]\] with all items in the result

  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. def putContent[A](url: Url[A], content: String): F[Unit]
  20. def putFromNio[A](src: Path, dst: Url[A], overwrite: Boolean): F[Unit]

    Write contents of src file into dst Path

    Write contents of src file into dst Path

    src

    java.nio.file.Path

    dst

    Path to write to

    returns

    F[Unit]

  21. def removeAll[A](url: Url[A])(implicit ev: <:<[B, FsObject]): F[Int]

    Remove all files from a store recursively, given a path

  22. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. def transferTo[BB, A, C](dstStore: Store[F, BB], srcUrl: Url[A], dstUrl: Url[C]): F[Int]

    Copy value of the given path in this store to the destination store.

    Copy value of the given path in this store to the destination store.

    This method will list item at srcUrl and copy it to dstUrl in dstStore. If srcUrl points to a directory, it will copy files inside recursively.

    dstStore

    destination store

    srcUrl

    url to transfer from (can be a path to a file or directory)

    dstUrl

    url to transfer to (if srcUrl points to a directory, interpreted as a prefix)

    returns

    F[Int] number of files transferred

  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped