class StoreOps[F[_], 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
- All
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[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
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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
-
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
-
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]
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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
-
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 putContent[A](url: Url[A], content: String): F[Unit]
-
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]
-
def
removeAll[A](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[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
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated