class StoreOps[F[_], A <: Authority, B] extends AnyRef
This object contains shared implementations of functions that requires additional capabilities from the effect type
- Alphabetic
- By Inheritance
- StoreOps
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def bufferedPut(url: Url[A], overwrite: Boolean, chunkSize: Int, blocker: Blocker): 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
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def get(src: Url[A], dst: Path, chunkSize: Int, blocker: Blocker): 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]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getContents(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
- def getContents(url: Url[A], chunkSize: Int = 4096): F[String]
getContents with default UTF8 decoder
getContents with default UTF8 decoder
- url
Path to get
- returns
F[String] with file contents
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def listAll(url: Url[A]): F[List[Path[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
Path to list
- returns
F\[List\[Path\]\] with all items in the result
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def put(src: Path, dst: Url[A], overwrite: Boolean, blocker: Blocker): 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]
- def removeAll(url: Url[A])(implicit ev: <:<[B, FsObject]): F[Int]
Remove all files from a store recursively, given a path
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def transferTo[AA <: Authority, BB](dstStore: Store[F, AA, BB], srcUrl: Url[A], dstUrl: Url[AA]): 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 is especially useful when transferring content into S3Store that requires to know content size before starting content upload.
This method will list items from srcPath, get the file size and put into dstStore with the given size. If listing contents result in nested directories it will copy files inside dirs recursively.
- dstStore
destination store
- srcUrl
path to transfer from (can be a path to a file or dir)
- dstUrl
path to transfer to (can be a path to a file or dir, if you are transferring multiple files, make sure that dstPath.isDir == true, otherwise all files will override destination.
- returns
Stream[F, Int] number of files transfered
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated