object LocalQueryable extends FallBackLookups
- Alphabetic
- By Inheritance
- LocalQueryable
- FallBackLookups
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- 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
- 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 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 forAby looking up history.query for
Some[A]using query forAby looking up history. Meant to be starting point for several options.- qw
query for
A- ph
post history
- returns
queryable for
Some[A]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- implicit def collatedQuery[P, W, ID](implicit pq: LocalQueryable[P, W, ID]): LocalQueryable[Collated[P], W, ID]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- implicit def hNilQueryable[W, ID]: LocalQueryable[HNil, W, ID]
Querying for HNil
Querying for HNil
- returns
trivial query response
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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
- def lookupAnswer[P, W, ID](implicit pw: Postable[P, W, ID]): AnswerFromPost[P, P, W, ID]
- 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
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- implicit def previousQuery[P, W, ID](implicit ph: PostHistory[W, ID], pw: Postable[P, W, ID]): LocalQueryable[PreviousPosts[P], W, ID]
- 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 type
Q
- 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 type
Q
- implicit def queryOptLatest[Q, W, ID](implicit qo: QueryOptions[Q, W, ID], ph: PostHistory[W, ID]): LocalQueryable[Q, W, ID]
- 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
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- implicit def unitQueryable[W, ID]: LocalQueryable[Unit, W, ID]
Querying for Unit
Querying for Unit
- returns
trivial query response
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated