object DataSource
- Alphabetic
- By Inheritance
- DataSource
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- def apply[R, A](name: String)(f: (Iterable[A]) => ZIO[R, Nothing, CompletedRequestMap]): DataSource[R, A]
Constructs a data source from a function taking a collection of requests and returning a
CompletedRequestMap
. - final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fromFunction[A, B](name: String)(f: (A) => B)(implicit ev: <:<[A, Request[Nothing, B]]): DataSource[Any, A]
Constructs a data source from a pure function.
- def fromFunctionBatched[A, B](name: String)(f: (Iterable[A]) => Iterable[B])(implicit ev: <:<[A, Request[Nothing, B]]): DataSource[Any, A]
Constructs a data source from a pure function that takes a list of requests and returns a list of results of the same size.
Constructs a data source from a pure function that takes a list of requests and returns a list of results of the same size. Each item in the result list must correspond to the item at the same index in the request list.
- def fromFunctionBatchedM[R, E, A, B](name: String)(f: (Iterable[A]) => ZIO[R, E, Iterable[B]])(implicit ev: <:<[A, Request[E, B]]): DataSource[R, A]
Constructs a data source from an effectual function that takes a list of requests and returns a list of results of the same size.
Constructs a data source from an effectual function that takes a list of requests and returns a list of results of the same size. Each item in the result list must correspond to the item at the same index in the request list.
- def fromFunctionBatchedOption[A, B](name: String)(f: (Iterable[A]) => Iterable[Option[B]])(implicit ev: <:<[A, Request[Nothing, B]]): DataSource[Any, A]
Constructs a data source from a pure function that takes a list of requests and returns a list of optional results of the same size.
Constructs a data source from a pure function that takes a list of requests and returns a list of optional results of the same size. Each item in the result list must correspond to the item at the same index in the request list.
- def fromFunctionBatchedOptionM[R, E, A, B](name: String)(f: (Iterable[A]) => ZIO[R, E, Iterable[Option[B]]])(implicit ev: <:<[A, Request[E, B]]): DataSource[R, A]
Constructs a data source from an effectual function that takes a list of requests and returns a list of optional results of the same size.
Constructs a data source from an effectual function that takes a list of requests and returns a list of optional results of the same size. Each item in the result list must correspond to the item at the same index in the request list.
- def fromFunctionBatchedWith[A, B](name: String)(f: (Iterable[A]) => Iterable[B], g: (B) => Request[Nothing, B])(implicit ev: <:<[A, Request[Nothing, B]]): DataSource[Any, A]
Constructs a data source from a function that takes a list of requests and returns a list of results of the same size.
Constructs a data source from a function that takes a list of requests and returns a list of results of the same size. Uses the specified function to associate each result with the corresponding effect, allowing the function to return the list of results in a different order than the list of requests.
- def fromFunctionBatchedWithM[R, E, A, B](name: String)(f: (Iterable[A]) => ZIO[R, E, Iterable[B]], g: (B) => Request[E, B])(implicit ev: <:<[A, Request[E, B]]): DataSource[R, A]
Constructs a data source from an effectual function that takes a list of requests and returns a list of results of the same size.
Constructs a data source from an effectual function that takes a list of requests and returns a list of results of the same size. Uses the specified function to associate each result with the corresponding effect, allowing the function to return the list of results in a different order than the list of requests.
- def fromFunctionM[R, E, A, B](name: String)(f: (A) => ZIO[R, E, B])(implicit ev: <:<[A, Request[E, B]]): DataSource[R, A]
Constructs a data source from an effectual function.
- def fromFunctionOption[A, B](name: String)(f: (A) => Option[B])(implicit ev: <:<[A, Request[Nothing, B]]): DataSource[Any, A]
Constructs a data source from a pure function that may not provide results for all requests received.
- def fromFunctionOptionM[R, E, A, B](name: String)(f: (A) => ZIO[R, E, Option[B]])(implicit ev: <:<[A, Request[E, B]]): DataSource[R, A]
Constructs a data source from an effectual function that may not provide results for all requests received.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()