Packages

object LocalQueryable extends FallBackLookups

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LocalQueryable
  2. FallBackLookups
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. case class RecentAnswer[Q, W, ID](answers: Seq[AnswerFromPost[_, Q, W, ID]])(implicit h: PostHistory[W, ID]) extends LocalQueryable[Q, W, ID] with Product with Serializable

    Look up an answer in the history of a post, assuming an implicit history provider

Value Members

  1. def answerAsSome[Q, W, ID](implicit qw: Postable[Q, W, ID], ph: PostHistory[W, ID]): LatestAnswer[Some[Q], W, ID]

    query for Some[A] using query for A by looking up history.

    query for Some[A] using query for A by looking up history. Meant to be starting point for several options.

    qw

    query for A

    ph

    post history

    returns

    queryable for Some[A]

  2. implicit def collatedQuery[P, W, ID](implicit pq: LocalQueryable[P, W, ID]): LocalQueryable[Collated[P], W, ID]
  3. implicit def hNilQueryable[W, ID]: LocalQueryable[HNil, W, ID]

    Querying for HNil

    Querying for HNil

    returns

    trivial query response

  4. implicit def hconsQueryable[U, V <: HList, W, ID](implicit qu: LocalQueryable[U, W, ID], qv: LocalQueryable[V, W, ID]): LocalQueryable[::[U, V], W, ID]

    query a conjunction of two queryable types

    query a conjunction of two queryable types

    qu

    queryability of the first

    qv

    queryability of the second

    returns

    implemented queryability putting these together

  5. implicit def localize[U, W, ID](implicit q: Queryable[U, W]): LocalQueryable[U, W, ID]

    use a global query for local querying, ignoring position

    use a global query for local querying, ignoring position

    q

    global queryability

    returns

    local query implementation

  6. def lookupAnswer[P, W, ID](implicit pw: Postable[P, W, ID]): AnswerFromPost[P, P, W, ID]
  7. implicit def lookupLatest[Q, W, ID](implicit qw: Postable[Q, W, ID], ph: PostHistory[W, ID], tag: scala.reflect.api.JavaUniverse.TypeTag[Q]): LocalQueryable[Q, W, ID]

    default implementation of lookup for stuff that can be posted given a post-history implementation, where we look fot the latest post.

    default implementation of lookup for stuff that can be posted given a post-history implementation, where we look fot the latest post.

    qw

    postability of Q

    ph

    post history

    returns

    implementation of query lookup

    Definition Classes
    FallBackLookups
  8. implicit def previousQuery[P, W, ID](implicit ph: PostHistory[W, ID], pw: Postable[P, W, ID]): LocalQueryable[PreviousPosts[P], W, ID]
  9. def query[Q, W](web: W, predicate: (Q) => Boolean)(implicit q: Queryable[Q, W]): Future[Q]

    Query for an object

    Query for an object

    web

    the web which we query

    predicate

    property the object must satisfy

    q

    queryability

    returns

    future result of typeQ

  10. def queryAt[Q, W, ID](web: W, id: ID, predicate: (Q) => Boolean)(implicit q: LocalQueryable[Q, W, ID]): Future[Vector[Q]]

    Query for an object at a position, for example the latest before that position

    Query for an object at a position, for example the latest before that position

    web

    the web which we query

    id

    the position where we query

    predicate

    property the object must satisfy

    q

    queryability

    returns

    future result of typeQ

  11. implicit def queryOptLatest[Q, W, ID](implicit qo: QueryOptions[Q, W, ID], ph: PostHistory[W, ID]): LocalQueryable[Q, W, ID]
  12. implicit def somePostQuery[P, W, ID](implicit pw: Postable[P, W, ID], ph: PostHistory[W, ID]): LocalQueryable[SomePost[P], W, ID]

    Lookup for the wrapped type SomePost, which returns all posts independent of relative position in history.

    Lookup for the wrapped type SomePost, which returns all posts independent of relative position in history.

    pw

    postability of P

    ph

    post history

    returns

    implementation of query lookup

    Definition Classes
    FallBackLookups
  13. implicit def unitQueryable[W, ID]: LocalQueryable[Unit, W, ID]

    Querying for Unit

    Querying for Unit

    returns

    trivial query response