object DataSource
- Alphabetic
- By Inheritance
- DataSource
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
trait
Batched[-R, -A] extends DataSource[R, A]
A data source that executes requests that can be performed in parallel in batches but does not further optimize batches of requests that must be performed sequentially.
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
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): 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: (Chunk[A]) ⇒ Chunk[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
fromFunctionBatchedOption[A, B](name: String)(f: (Chunk[A]) ⇒ Chunk[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
fromFunctionBatchedOptionZIO[R, E, A, B](name: String)(f: (Chunk[A]) ⇒ ZIO[R, E, Chunk[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: (Chunk[A]) ⇒ Chunk[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
fromFunctionBatchedWithZIO[R, E, A, B](name: String)(f: (Chunk[A]) ⇒ ZIO[R, E, Chunk[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
fromFunctionBatchedZIO[R, E, A, B](name: String)(f: (Chunk[A]) ⇒ ZIO[R, E, Chunk[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
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
fromFunctionOptionZIO[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.
-
def
fromFunctionZIO[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.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
make[R, A](name: String)(f: (Chunk[Chunk[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
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
val
never: DataSource[Any, Any]
A data source that never executes requests.
-
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( ... )
-
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()
- object Batched