Object

fetch

Fetch

Related Doc: package fetch

Permalink

object Fetch extends FetchInterpreters with Serializable

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Fetch
  2. Serializable
  3. Serializable
  4. FetchInterpreters
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class FetchRunner[M[_]] extends AnyRef

    Permalink
  2. class FetchRunnerA[M[_]] extends AnyRef

    Permalink
  3. class FetchRunnerEnv[M[_]] extends AnyRef

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply[I, A](i: I)(implicit DS: DataSource[I, A]): Fetch[A]

    Permalink

    Given a value that has a related DataSource implementation, lift it to the Fetch monad.

    Given a value that has a related DataSource implementation, lift it to the Fetch monad. When executing the fetch the data source will be queried and the fetch will return its result.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def coreInterpreter[M[_]](implicit M: FetchMonadError[M]): ~>[FetchOp, [x]StateT[M, FetchEnv, x]]

    Permalink
    Definition Classes
    FetchInterpreters
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def error[A](e: Throwable): Fetch[A]

    Permalink

    Lift an exception to the Fetch monad.

  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. def interpreter[M[_]](implicit arg0: FetchMonadError[M]): ~>[FetchOp, [x]StateT[M, FetchEnv, x]]

    Permalink
    Definition Classes
    FetchInterpreters
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def join[A, B](fl: Fetch[A], fr: Fetch[B]): Fetch[(A, B)]

    Permalink

    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.

  17. def map2[A, B, C](f: (A, B) ⇒ C)(fa: Fetch[A], fb: Fetch[B]): Fetch[C]

    Permalink

    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.

  18. val maxBatchSizePhase: ~>[FetchOp, Fetch]

    Permalink
    Definition Classes
    FetchInterpreters
  19. def multiple[I, A](i: I, is: I*)(implicit DS: DataSource[I, A]): Fetch[List[A]]

    Permalink

    Given multiple values with a related DataSource lift them to the Fetch monad.

  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. val parallelJoinPhase: ~>[FetchOp, Fetch]

    Permalink
    Definition Classes
    FetchInterpreters
  24. def pure[A](a: A): Fetch[A]

    Permalink

    Lift a plain value to the Fetch monad.

  25. def run[M[_]]: FetchRunnerA[M]

    Permalink

    Run a Fetch with the given cache, the result in the monad M.

  26. def runEnv[M[_]]: FetchRunnerEnv[M]

    Permalink

    Run a Fetch with the given cache, returning the final environment in the monad M.

  27. def runFetch[M[_]]: FetchRunner[M]

    Permalink

    Run a Fetch with the given cache, returning a pair of the final environment and result in the monad M.

  28. def sequence[I, A](ids: List[Fetch[A]]): Fetch[List[A]]

    Permalink

    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.

  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  31. def traverse[A, B](ids: List[A])(f: (A) ⇒ Fetch[B]): Fetch[List[B]]

    Permalink

    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.

  32. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from FetchInterpreters

Inherited from AnyRef

Inherited from Any

Ungrouped