PrimaryUnique
molecule.datalog.datomic.query.cursorStrategy.PrimaryUnique
case class PrimaryUnique[Tpl](elements: List[Element], optLimit: Option[Int], cursor: String, dbView: Option[DbView], m2q: Model2DatomicQuery[Tpl] & DatomicQueryBase) extends DatomicQueryResolve[Tpl], FutureUtils, Pagination[Tpl], ModelTransformations_, MoleculeLogging
Molecule has a unique attribute that is sorted first.
Then we can easily filter by its previous value in either direction.
Type parameters
- Tpl
-
Type of each row
Value parameters
- cursor
-
Base64 encoded cursor meta information
- elements
-
Molecule model
- optLimit
-
When going forward from start, use a positive number. And vice versa from end with a negative number. Can't be zero.
Attributes
- Source
- PrimaryUnique.scala
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ModelTransformations_trait FutureUtilstrait ModelUtilsclass DatomicQueryResolve[Tpl]trait MoleculeLoggingtrait Loggingtrait Pagination[Tpl]class Objecttrait Matchableclass AnyShow all
Members list
Type members
Inherited classlikes
implicit class futEither2fut[T](fut: Future[Either[MoleculeError, T]])(implicit ec: ExecutionContext)
Attributes
- Inherited from:
- FutureUtils
- Source
- FutureUtils.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Value members
Concrete methods
def getPage(tokens: List[String], limit: Int)(implicit conn: DatomicConn_JVM): (List[Tpl], String, Boolean)
Attributes
- Source
- PrimaryUnique.scala
Inherited methods
Attributes
- Inherited from:
- ModelTransformations_
- Source
- ModelTransformations_.scala
Attributes
- Inherited from:
- ModelTransformations_
- Source
- ModelTransformations_.scala
Attributes
- Inherited from:
- ModelTransformations_
- Source
- ModelTransformations_.scala
Attributes
- Inherited from:
- ModelTransformations_
- Source
- ModelTransformations_.scala
Attributes
- Inherited from:
- ModelTransformations_
- Source
- ModelTransformations_.scala
Attributes
- Inherited from:
- ModelTransformations_
- Source
- ModelTransformations_.scala
Attributes
- Inherited from:
- ModelTransformations_
- Source
- ModelTransformations_.scala
Attributes
- Inherited from:
- ModelTransformations_
- Source
- ModelTransformations_.scala
Attributes
- Inherited from:
- ModelTransformations_
- Source
- ModelTransformations_.scala
Attributes
- Inherited from:
- ModelTransformations_
- Source
- ModelTransformations_.scala
Attributes
- Inherited from:
- ModelTransformations_
- Source
- ModelTransformations_.scala
Attributes
- Inherited from:
- ModelTransformations_
- Source
- ModelTransformations_.scala
Attributes
- Inherited from:
- ModelTransformations_
- Source
- ModelTransformations_.scala
Attributes
- Inherited from:
- ModelTransformations_
- Source
- ModelTransformations_.scala
Attributes
- Inherited from:
- FutureUtils
- Source
- FutureUtils.scala
Attributes
- Inherited from:
- ModelTransformations_
- Source
- ModelTransformations_.scala
Attributes
- Inherited from:
- ModelUtils
- Source
- ModelUtils.scala
Attributes
- Inherited from:
- Pagination
- Source
- Pagination.scala
Attributes
- Inherited from:
- Pagination
- Source
- Pagination.scala
Attributes
- Inherited from:
- FutureUtils
- Source
- FutureUtils.scala
Attributes
- Inherited from:
- Pagination
- Source
- Pagination.scala
Attributes
- Inherited from:
- ModelTransformations_
- Source
- ModelTransformations_.scala
Attributes
- Inherited from:
- FutureUtils
- Source
- FutureUtils.scala
Attributes
- Inherited from:
- ModelUtils
- Source
- ModelUtils.scala
Attributes
- Inherited from:
- Pagination
- Source
- Pagination.scala
Attributes
- Inherited from:
- Pagination
- Source
- Pagination.scala
protected def getFromUntil(tc: Int, limit: Option[Int], offset: Option[Int]): Option[(Int, Int, Boolean)]
Attributes
- Inherited from:
- Pagination
- Source
- Pagination.scala
Attributes
- Inherited from:
- ModelUtils
- Source
- ModelUtils.scala
Attributes
- Inherited from:
- ModelUtils
- Source
- ModelUtils.scala
def getRawData(conn: DatomicConn_JVM, altElements: List[Element], altDb: Option[Database], validate: Boolean): Collection[List[AnyRef]]
Attributes
- Inherited from:
- DatomicQueryResolve
- Source
- DatomicQueryResolve.scala
Attributes
- Inherited from:
- ModelUtils
- Source
- ModelUtils.scala
Attributes
- Inherited from:
- Pagination
- Source
- Pagination.scala
The logger for this class.
Override this to change the name of the underlying logger.
Override this to change the name of the underlying logger.
Defaults to class name with package
Attributes
- Inherited from:
- Logging
- Source
- Logging.scala
Attributes
- Inherited from:
- Pagination
- Source
- Pagination.scala
Attributes
- Inherited from:
- Pagination
- Source
- Pagination.scala
Attributes
- Inherited from:
- Pagination
- Source
- Pagination.scala
Attributes
- Inherited from:
- ModelUtils
- Source
- ModelUtils.scala
Attributes
- Inherited from:
- ModelUtils
- Source
- ModelUtils.scala
Attributes
- Inherited from:
- ModelUtils
- Source
- ModelUtils.scala
Attributes
- Inherited from:
- ModelUtils
- Source
- ModelUtils.scala
Attributes
- Inherited from:
- ModelUtils
- Source
- ModelUtils.scala
Attributes
- Inherited from:
- Pagination
- Source
- Pagination.scala
Attributes
- Inherited from:
- Pagination
- Source
- Pagination.scala
protected def offsetRaw(sortedRows: ArrayList[List[AnyRef]], fromUntil: Option[(Int, Int, Boolean)]): List[List[AnyRef]]
Attributes
- Inherited from:
- DatomicQueryResolve
- Source
- DatomicQueryResolve.scala
def paginateFromIdentifiers(conn: DatomicConn_JVM, limit: Int, forward: Boolean, allTokens: List[String], attrTokens: List[String], identifiers: List[Any], identifyTpl: Tpl => Any, identifyRow: Unit => (List[AnyRef]) => Any, nextCursor: (List[Tpl], List[String]) => String): (List[Tpl], String, Boolean)
Attributes
- Inherited from:
- DatomicQueryResolve
- Source
- DatomicQueryResolve.scala
protected def paginateTpls(count: Int, tpls: List[Tpl], identifiers: List[Any], identify: Tpl => Any): (List[Tpl], Int)
Attributes
- Inherited from:
- Pagination
- Source
- Pagination.scala
Attributes
- Inherited from:
- Pagination
- Source
- Pagination.scala
Attributes
- Inherited from:
- DatomicQueryResolve
- Source
- DatomicQueryResolve.scala
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- ModelTransformations_
- Source
- ModelTransformations_.scala
Attributes
- Inherited from:
- DatomicQueryResolve
- Source
- DatomicQueryResolve.scala
Attributes
- Inherited from:
- ModelTransformations_
- Source
- ModelTransformations_.scala
Attributes
- Inherited from:
- ModelTransformations_
- Source
- ModelTransformations_.scala
Attributes
- Inherited from:
- ModelTransformations_
- Source
- ModelTransformations_.scala
Attributes
- Inherited from:
- Pagination
- Source
- Pagination.scala
Attributes
- Inherited from:
- ModelUtils
- Source
- ModelUtils.scala
Inherited fields
Attributes
- Inherited from:
- Pagination
- Source
- Pagination.scala
Attributes
- Inherited from:
- MoleculeLogging
- Source
- MoleculeLogging.scala
Attributes
- Inherited from:
- MoleculeLogging
- Source
- MoleculeLogging.scala
Implicits
Inherited implicits
final implicit def futEither2fut[T](fut: Future[Either[MoleculeError, T]])(implicit ec: ExecutionContext): futEither2fut[T]
Attributes
- Inherited from:
- FutureUtils
- Source
- FutureUtils.scala
In this article