trait GetAsyncRaw extends AnyRef
Asynchronous data getter methods on molecules returning raw untyped Datomic data.
Returns a Future
with raw untyped java.util.Collection[java.util.List[Object]]
directly from Datomic and is
therefore the fastest (but untyped) way of retrieving data. Can be useful where typed data is
not needed.
val rawDataFuture: Future[java.util.Colleciton[java.util.List[Object]] = Person.name.age.getAsyncRaw for { rawData <- rawDataFuture } yield { rawData.toString === """[["Ben" 42]["Liz" 37]]""" }
Each asynchronous getter in this package simply wraps the result of its equivalent synchronous getter (in the
get
package) in a Future. getAsyncRawAsOf
thus wraps the result of getRawAsOf
in a Future and so on.
- Self Type
- GetAsyncRaw with MoleculeBase with GetRaw
- Source
- GetAsyncRaw.scala
- Grouped
- Alphabetic
- By Inheritance
- GetAsyncRaw
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def getAsyncRaw(n: Int)(implicit conn: Conn): Future[Collection[List[AnyRef]]]
Get
Future
withjava.util.Collection
of n untyped rows matching molecule.Get
Future
withjava.util.Collection
of n untyped rows matching molecule.Person.name.age.getRaw(1).toString === """[["Ben" 42]]"""
For more info and code examples see equivalent synchronous getRaw method.- n
Number of rows
- conn
Implicit Conn value in scope
- returns
java.util.Collection[java.util.List[AnyRef]]
- def getAsyncRaw(implicit conn: Conn): Future[Collection[List[AnyRef]]]
Get
Future
withjava.util.Collection
of all untyped rows matching molecule.Get
Future
withjava.util.Collection
of all untyped rows matching molecule.Person.name.age.getRaw.toString === """`[["Ben" 42], ["Liz" 37]]"""
For more info and code examples see equivalent synchronous getRaw method.- conn
Implicit Conn value in scope
- returns
java.util.Collection[java.util.List[AnyRef]]
- def getAsyncRawAsOf(date: Date, n: Int)(implicit conn: Conn): Future[Collection[List[AnyRef]]]
Get
Future
withjava.util.Collection
of n untyped rows matching molecule as of date.Get
Future
withjava.util.Collection
of n untyped rows matching molecule as of date.
Call getRawAsOf when data doesn't need to be type-casted. Datomic's raw data is returned as-is.
Get data at a human point in time (a java.util.Date).
For more info and code examples see equivalent synchronous getRawAsOf method.- date
java.util.Date
- n
Int Number of rows returned
- conn
Implicit Conn value in scope
- returns
java.util.Collection[java.util.List[AnyRef]]
- See also
Manual on
asof
/since
- def getAsyncRawAsOf(date: Date)(implicit conn: Conn): Future[Collection[List[AnyRef]]]
Get
Future
withjava.util.Collection
of all untyped rows matching molecule as of date.Get
Future
withjava.util.Collection
of all untyped rows matching molecule as of date.
Call getRawAsOf when data doesn't need to be type-casted. Datomic's raw data is returned as-is.
Get data at a human point in time (a java.util.Date).
For more info and code examples see equivalent synchronous getRawAsOf method.- date
java.util.Date
- conn
Implicit Conn value in scope
- returns
java.util.Collection[java.util.List[AnyRef]]
- See also
Manual on
asof
/since
- def getAsyncRawAsOf(tx: TxReport, n: Int)(implicit conn: Conn): Future[Collection[List[AnyRef]]]
Get
Future
withjava.util.Collection
of n untyped rows matching molecule as of tx.Get
Future
withjava.util.Collection
of n untyped rows matching molecule as of tx.
CallgetRawAsOf
when data doesn't need to be type-casted. Datomic's raw data is returned as-is.
Datomic's internalasOf
method can take a transaction entity id as argument to retrieve a database value as of that transaction (including).
Instead of supplying the transaction entity id, in Molecule we supply a TxReport that contains the transaction entity id (which is used as argument to Datomic internally). This is more convenient when using Molecule since we get a TxReport from transaction operations likeget
,update
,retract
etc.
For more info and code examples see equivalent synchronous getRawAsOf method.- tx
TxReport (returned from all molecule transaction operations)
- n
Int Number of rows returned
- conn
Implicit Conn value in scope
- returns
java.util.Collection[java.util.List[AnyRef]]
- See also
Manual on
asof
/since
- def getAsyncRawAsOf(tx: TxReport)(implicit conn: Conn): Future[Collection[List[AnyRef]]]
Get
Future
withjava.util.Collection
of all untyped rows matching molecule as of tx.Get
Future
withjava.util.Collection
of all untyped rows matching molecule as of tx.Call
getRawAsOf
when data doesn't need to be type-casted. Datomic's raw data is returned as-is.
Datomic's internalasOf
method can take a transaction entity id as argument to retrieve a database value as of that transaction (including).
Instead of supplying the transaction entity id, in Molecule we supply a TxReport that contains the transaction entity id (which is used as argument to Datomic internally). This is more convenient when using Molecule since we get a TxReport from transaction operations likeget
,update
,retract
etc.
For more info and code examples see equivalent synchronous getRawAsOf method.- tx
TxReport (returned from all molecule transaction operations)
- conn
Implicit Conn value in scope
- returns
java.util.Collection[java.util.List[AnyRef]]
- See also
Manual on
asof
/since
- def getAsyncRawAsOf(t: Long, n: Int)(implicit conn: Conn): Future[Collection[List[AnyRef]]]
Get
Future
withjava.util.Collection
of n untyped rows matching molecule as of transaction timet
.Get
Future
withjava.util.Collection
of n untyped rows matching molecule as of transaction timet
.
CallgetRawAsOf
when data doesn't need to be type-casted. Datomic's raw data is returned as-is.
Transaction timet
is an auto-incremented transaction number assigned internally by Datomic.
t
can for instance be retrieved in a getHistory call for an attribute and then be used to get data as of that point in time (including that transaction).
t
can for instance be retrieved in a getHistory call for an attribute and then be used to get data as of that point in time (including that transaction).
For more info and code examples see equivalent synchronous getRawAsOf method.- t
Transaction time t
- n
Int Number of rows returned
- conn
Implicit Conn value in scope
- returns
java.util.Collection[java.util.List[AnyRef]]
- See also
Manual on
asof
/since
- def getAsyncRawAsOf(t: Long)(implicit conn: Conn): Future[Collection[List[AnyRef]]]
Get
Future
withjava.util.Collection
of all untyped rows matching molecule as of transaction timet
.Get
Future
withjava.util.Collection
of all untyped rows matching molecule as of transaction timet
.
CallgetRawAsOf
when data doesn't need to be type-casted. Datomic's raw data is returned as-is.
Transaction timet
is an auto-incremented transaction number assigned internally by Datomic.
t
can for instance be retrieved in a getHistory call for an attribute and then be used to get data as of that point in time (including that transaction).
For more info and code examples see equivalent synchronous getRawAsOf method.- t
Transaction time t
- conn
Implicit Conn value in scope
- returns
java.util.Collection[java.util.List[AnyRef]]
- See also
Manual on
asof
/since
- def getAsyncRawSince(date: Date, n: Int)(implicit conn: Conn): Future[Collection[List[AnyRef]]]
Get
Future
withjava.util.Collection
of n untyped rows matching molecule since date.Get
Future
withjava.util.Collection
of n untyped rows matching molecule since date.
CallgetRawSince
when data doesn't need to be type-casted. Datomic's raw data is returned as-is.
Get data added/retracted since a human point in time (a java.util.Date).
For more info and code examples see equivalent synchronous getRawSince method.- date
java.util.Date
- n
Int Number of rows returned
- conn
Implicit Conn value in scope
- returns
java.util.Collection[java.util.List[AnyRef]]
- See also
Manual on
asof
/since
- def getAsyncRawSince(date: Date)(implicit conn: Conn): Future[Collection[List[AnyRef]]]
Get
Future
withjava.util.Collection
of all untyped rows matching molecule since date.Get
Future
withjava.util.Collection
of all untyped rows matching molecule since date.
CallgetRawSince
when data doesn't need to be type-casted. Datomic's raw data is returned as-is.
Get data added/retracted since a human point in time (a java.util.Date).
For more info and code examples see equivalent synchronous getRawSince method.- date
java.util.Date
- conn
Implicit Conn value in scope
- returns
java.util.Collection[java.util.List[AnyRef]]
- See also
Manual on
asof
/since
- def getAsyncRawSince(tx: TxReport, n: Int)(implicit conn: Conn): Future[Collection[List[AnyRef]]]
Get
Future
withjava.util.Collection
of n untyped rows matching molecule since tx.Get
Future
withjava.util.Collection
of n untyped rows matching molecule since tx.
CallgetRawSince
when data doesn't need to be type-casted. Datomic's raw data is returned as-is.
Datomic's internalsince
method can take a transaction entity id as argument to retrieve a database value since that transaction (excluding).
Instead of supplying the transaction entity id, in Molecule we supply a TxReport that contains the transaction entity id (which is used as argument to Datomic internally). This is more convenient when using Molecule since we get a TxReport from transaction operations likeget
,update
,retract
etc.
For more info and code examples see equivalent synchronous getRawSince method.- tx
TxReport (returned from all molecule transaction operations)
- n
Int Number of rows returned
- conn
Implicit Conn value in scope
- returns
java.util.Collection[java.util.List[AnyRef]]
- See also
Manual on
asof
/since
- def getAsyncRawSince(tx: TxReport)(implicit conn: Conn): Future[Collection[List[AnyRef]]]
Get
Future
withjava.util.Collection
of all untyped rows matching molecule since tx.Get
Future
withjava.util.Collection
of all untyped rows matching molecule since tx.
CallgetRawSince
when data doesn't need to be type-casted. Datomic's raw data is returned as-is.
Datomic's internalsince
method can take a transaction entity id as argument to retrieve a database value since that transaction (excluding).
Instead of supplying the transaction entity id, in Molecule we supply a TxReport that contains the transaction entity id (which is used as argument to Datomic internally). This is more convenient when using Molecule since we get a TxReport from transaction operations likeget
,update
,retract
etc.
For more info and code examples see equivalent synchronous getRawSince method.- tx
TxReport (returned from all molecule transaction operations)
- conn
Implicit Conn value in scope
- returns
java.util.Collection[java.util.List[AnyRef]]
- See also
Manual on
asof
/since
- def getAsyncRawSince(t: Long, n: Int)(implicit conn: Conn): Future[Collection[List[AnyRef]]]
Get
Future
withjava.util.Collection
of n untyped rows matching molecule since transaction timet
.Get
Future
withjava.util.Collection
of n untyped rows matching molecule since transaction timet
.
CallgetRawSince
when data doesn't need to be type-casted. Datomic's raw data is returned as-is.
Transaction timet
is an auto-incremented transaction number assigned internally by Datomic.
t
can for instance be retrieved callingt
on the tx report returned from transactional operations and then be used to get data since that point in time (excluding that transaction).
For more info and code examples see equivalent synchronous getRawSince method.- t
Transaction time t
- n
Int Number of rows returned
- conn
Implicit Conn value in scope
- returns
java.util.Collection[java.util.List[AnyRef]]
- See also
Manual on
asof
/since
- def getAsyncRawSince(t: Long)(implicit conn: Conn): Future[Collection[List[AnyRef]]]
Get
Future
withjava.util.Collection
of all untyped rows matching molecule since transaction timet
.Get
Future
withjava.util.Collection
of all untyped rows matching molecule since transaction timet
.
CallgetRawSince
when data doesn't need to be type-casted. Datomic's raw data is returned as-is.
Transaction timet
is an auto-incremented transaction number assigned internally by Datomic.
t
can for instance be retrieved callingt
on the tx report returned from transactional operations and then be used to get data since that point in time (excluding that transaction).
For more info and code examples see equivalent synchronous getRawSince method.- t
Transaction time t
- conn
Implicit Conn value in scope
- returns
java.util.Collection[java.util.List[AnyRef]]
- See also
Manual on
asof
/since
- def getAsyncRawWith(txData: List[_], n: Int)(implicit conn: Conn): Future[Collection[List[AnyRef]]]
Get
Future
withjava.util.Collection
of n untyped rows matching molecule with applied raw transaction data.Get
Future
withjava.util.Collection
of n untyped rows matching molecule with applied raw transaction data.
Apply raw transaction data to in-memory "branch" of db without affecting db.
For more info and code examples see equivalent synchronous getRawWith method.- txData
Raw transaction data as java.util.List[Object]
- n
Int Number of rows returned
- conn
Implicit Conn value in scope
- returns
java.util.Collection[java.util.List[AnyRef]]
- See also
Manual on
with
- def getAsyncRawWith(txData: List[_])(implicit conn: Conn): Future[Collection[List[AnyRef]]]
Get
Future
withjava.util.Collection
of all untyped rows matching molecule with applied raw transaction data.Get
Future
withjava.util.Collection
of all untyped rows matching molecule with applied raw transaction data.
Apply raw transaction data to in-memory "branch" of db without affecting db.
For more info and code examples see equivalent synchronous getRawWith method.- txData
Raw transaction data as java.util.List[Object]
- conn
Implicit Conn value in scope
- returns
java.util.Collection[java.util.List[AnyRef]]
- See also
Manual on
with
- def getAsyncRawWith(n: Int, txMolecules: Seq[Seq[Statement]]*)(implicit conn: Conn): Future[Collection[List[AnyRef]]]
Get
Future
withjava.util.Collection
of n untyped rows matching molecule with applied molecule transaction data.Get
Future
withjava.util.Collection
of n untyped rows matching molecule with applied molecule transaction data.
Apply one or more molecule transactions to in-memory "branch" of db without affecting db.
For more info and code examples see equivalent synchronous getRawWith method.
Multiple transactions can be applied to test more complex what-if scenarios!- n
Int Number of rows returned
- txMolecules
Transaction statements from applied Molecules with test data
- conn
Implicit Conn value in scope
- returns
java.util.Collection[java.util.List[AnyRef]]
- Note
Note how the
n
parameter has to come before thetxMolecules
vararg.- See also
Manual on
with
- def getAsyncRawWith(txMolecules: Seq[Seq[Statement]]*)(implicit conn: Conn): Future[Collection[List[AnyRef]]]
Get
Future
withjava.util.Collection
of all untyped rows matching molecule with applied molecule transaction data.Get
Future
withjava.util.Collection
of all untyped rows matching molecule with applied molecule transaction data.
Apply one or more molecule transactions to in-memory "branch" of db without affecting db.
For more info and code examples see equivalent synchronous getRawWith method.
Multiple transactions can be applied to test more complex what-if scenarios!- txMolecules
Transaction statements from applied Molecules with test data
- conn
Implicit Conn value in scope
- returns
java.util.Collection[java.util.List[AnyRef]]
- See also
Manual on
with
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()
Documentation/API for the Molecule library - a meta DSL for the Datomic database.
Manual | scalamolecule.org | Github | Forum