object Fetch extends FetchInterpreters with Serializable
- Alphabetic
- By Inheritance
- Fetch
- Serializable
- Serializable
- FetchInterpreters
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- class FetchRunner [M[_]] extends AnyRef
- class FetchRunnerA [M[_]] extends AnyRef
- class FetchRunnerEnv [M[_]] extends AnyRef
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[I, A](i: I)(implicit DS: DataSource[I, A]): Fetch[A]
Given a value that has a related
DataSource
implementation, lift it to theFetch
monad.Given a value that has a related
DataSource
implementation, lift it to theFetch
monad. When executing the fetch the data source will be queried and the fetch will return its result. -
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
coreInterpreter[M[_]](implicit M: FetchMonadError[M]): ~>[FetchOp, [x]StateT[M, FetchEnv, x]]
- Definition Classes
- FetchInterpreters
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
error[A](e: Throwable): Fetch[A]
Lift an exception to the Fetch monad.
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
interpreter[M[_]](implicit arg0: FetchMonadError[M]): ~>[FetchOp, [x]StateT[M, FetchEnv, x]]
- Definition Classes
- FetchInterpreters
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
join[A, B](fl: Fetch[A], fr: Fetch[B]): Fetch[(A, B)]
Join two fetches from any data sources and return a Fetch that returns a tuple with the two results.
Join two fetches from any data sources and return a Fetch that returns a tuple with the two results. It implies concurrent execution of fetches.
-
def
map2[A, B, C](f: (A, B) ⇒ C)(fa: Fetch[A], fb: Fetch[B]): Fetch[C]
Apply the given function to the result of the two fetches.
Apply the given function to the result of the two fetches. It implies concurrent execution of fetches.
-
val
maxBatchSizePhase: ~>[FetchOp, Fetch]
- Definition Classes
- FetchInterpreters
-
def
multiple[I, A](i: I, is: I*)(implicit DS: DataSource[I, A]): Fetch[List[A]]
Given multiple values with a related
DataSource
lift them to theFetch
monad. -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
val
parallelJoinPhase: ~>[FetchOp, Fetch]
- Definition Classes
- FetchInterpreters
-
def
pure[A](a: A): Fetch[A]
Lift a plain value to the Fetch monad.
-
def
run[M[_]]: FetchRunnerA[M]
Run a
Fetch
with the given cache, the result in the monadM
. -
def
runEnv[M[_]]: FetchRunnerEnv[M]
Run a
Fetch
with the given cache, returning the final environment in the monadM
. -
def
runFetch[M[_]]: FetchRunner[M]
Run a
Fetch
with the given cache, returning a pair of the final environment and result in the monadM
. -
def
sequence[I, A](ids: List[Fetch[A]]): Fetch[List[A]]
Transform a list of fetches into a fetch of a list.
Transform a list of fetches into a fetch of a list. It implies concurrent execution of fetches.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
traverse[A, B](ids: List[A])(f: (A) ⇒ Fetch[B]): Fetch[List[B]]
Apply a fetch-returning function to every element in a list and return a Fetch of the list of results.
Apply a fetch-returning function to every element in a list and return a Fetch of the list of results. It implies concurrent execution of fetches.
-
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( ... )