class
ConvertedReadableStore[K1, -K2, V1, +V2] extends AbstractReadableStore[K2, V2]
Instance Constructors
-
new
ConvertedReadableStore(rs: ReadableStore[K1, V1])(kfn: (K2) ⇒ K1)(vfn: (V1) ⇒ Future[V2])
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
def
close(): Unit
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
def
get(k2: K2): Future[Option[V2]]
-
final
def
getClass(): java.lang.Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
def
multiGet[K3 <: K2](s: Set[K3]): Map[K3, Future[Option[V2]]]
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from Closeable
Inherited from AnyRef
Inherited from Any
Convert the keys/values of a store.
Value conversion returns a Future because V1 => V2 may fail, and we are going to convert to a future anyway (so, a Try is kind of a Future that is not async). Thus we might as well add the flexibility of accepting a V1 => Future[V2], though in practice Future.value/exception will generally be used.