DatomicQueryResolveOffset

molecule.datalog.datomic.query.DatomicQueryResolveOffset
case class DatomicQueryResolveOffset[Tpl](elements: List[Element], optLimit: Option[Int], optOffset: Option[Int], dbView: Option[DbView], m2q: Model2DatomicQuery[Tpl] & DatomicQueryBase) extends DatomicQueryResolve[Tpl], FutureUtils, MoleculeLogging

Value parameters

dbView

Database with a time perspective (Datomic)

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.

optOffset

Positive offset from start when going forwards, negative offset from end when going backwards

Attributes

Source
DatomicQueryResolveOffset.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait FutureUtils
trait ModelUtils
class DatomicQueryResolve[Tpl]
trait Logging
trait Pagination[Tpl]
class Object
trait Matchable
class Any
Show 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 Object
trait Matchable
class Any

Value members

Concrete methods

def getListFromOffset_sync(implicit conn: DatomicConn_JVM): (List[Tpl], Int, Boolean)
def getListFromOffset_sync(altDb: Option[Database])(implicit conn: DatomicConn_JVM): (List[Tpl], Int, Boolean)
def subscribe(conn: DatomicConn_JVM, callback: List[Tpl] => Unit): Unit
def unsubscribe(conn: DatomicConn_JVM): Unit

Inherited methods

def await[T](body: => Future[T], atMost: Duration): T

Attributes

Inherited from:
FutureUtils
Source
FutureUtils.scala
protected def countValueAttrs(elements: List[Element]): Int

Attributes

Inherited from:
ModelUtils
Source
ModelUtils.scala
protected def decoder(tpe: String): String => Any

Attributes

Inherited from:
Pagination
Source
Pagination.scala
protected def decoder2(tpe: String): String => Any

Attributes

Inherited from:
Pagination
Source
Pagination.scala
def either[T](fut: Future[T])(implicit ec: ExecutionContext): Future[Either[MoleculeError, T]]

Attributes

Inherited from:
FutureUtils
Source
FutureUtils.scala
protected def encoder(tpe: String, kind: String): Any => String

Attributes

Inherited from:
Pagination
Source
Pagination.scala
def future[T](body: => T)(implicit ec: ExecutionContext): Future[T]

Attributes

Inherited from:
FutureUtils
Source
FutureUtils.scala
final def getAttrNames(elements: List[Element], attrs: Set[String]): Set[String]

Attributes

Inherited from:
ModelUtils
Source
ModelUtils.scala
protected def getCount(limit: Int, forward: Boolean, totalCount: Int): Int

Attributes

Inherited from:
Pagination
Source
Pagination.scala
protected def getFilterAttr(tpe: String, ns: String, attr: String, fn: Op, v: String): AttrOneTac

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
final protected def getInitialNonGenericNs(elements: List[Element]): String

Attributes

Inherited from:
ModelUtils
Source
ModelUtils.scala
final protected def getInitialNs(elements: List[Element]): String

Attributes

Inherited from:
ModelUtils
Source
ModelUtils.scala
protected def getRawData(conn: DatomicConn_JVM, altElements: List[Element], altDb: Option[Database]): Collection[List[AnyRef]]

Attributes

Inherited from:
DatomicQueryResolve
Source
DatomicQueryResolve.scala
protected def getRowHashes(tpls: List[Tpl]): List[String]

Attributes

Inherited from:
Pagination
Source
Pagination.scala
protected def getUniquePair(tpls: List[Tpl], uniqueIndex: Int, encode: Any => String): List[String]

Attributes

Inherited from:
Pagination
Source
Pagination.scala
protected def getUniqueValues(tpls0: List[Tpl], uniqueIndex: Int, encode: Any => String): List[String]

Attributes

Inherited from:
Pagination
Source
Pagination.scala
protected def initialCursor(conn: Conn, elements: List[Element], tpls: List[Tpl]): String

Attributes

Inherited from:
Pagination
Source
Pagination.scala
def isRefUpdate(elements: List[Element]): Boolean

Attributes

Inherited from:
ModelUtils
Source
ModelUtils.scala
protected def logger: Logger

The logger for this class.

The logger for this class.

Attributes

Inherited from:
Logging
Source
Logging.scala
protected def loggerName: String

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
protected def nextCursorNoUnique(tpls: List[Tpl], tokens: List[String]): String

Attributes

Inherited from:
Pagination
Source
Pagination.scala
protected def nextCursorSubUnique(tpls: List[Tpl], tokens: List[String]): String

Attributes

Inherited from:
Pagination
Source
Pagination.scala
protected def nextCursorUniques(tpls: List[Tpl], tokens: List[String]): String

Attributes

Inherited from:
Pagination
Source
Pagination.scala
protected def noKeywords(elements: List[Element], optProxy: Option[ConnProxy]): List[Element]

Attributes

Inherited from:
ModelUtils
Source
ModelUtils.scala
protected def offsetLimitCheck(optLimit: Option[Int], optOffset: Option[Int]): Unit

Attributes

Inherited from:
Pagination
Source
Pagination.scala
protected def offsetList(sortedRows: List[Tpl], fromUntil: Option[(Int, Int, Boolean)]): List[Tpl]

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: Boolean => List[AnyRef] => Any, nextCursor: (List[Tpl], List[String]) => String): (List[Tpl], String, Boolean)

Attributes

Inherited from:
DatomicQueryResolve
Source
DatomicQueryResolve.scala
def paginateRows(count: Int, sortedRows: List[List[AnyRef]], identifiers: List[Any], identify: List[AnyRef] => Any, row2tpl: List[AnyRef] => Tpl): (List[Tpl], Int)

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
protected def paginationCoords(optLimit: Option[Int], optOffset: Option[Int]): (Boolean, Boolean)

Attributes

Inherited from:
Pagination
Source
Pagination.scala
protected def postAdjustPullCasts(): Unit

Attributes

Inherited from:
DatomicQueryResolve
Source
DatomicQueryResolve.scala
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
protected def sortRows(rows: Collection[List[AnyRef]]): ArrayList[List[AnyRef]]

Attributes

Inherited from:
DatomicQueryResolve
Source
DatomicQueryResolve.scala
protected def tpeEncode(element: AttrOne): (String, Any => String)

Attributes

Inherited from:
Pagination
Source
Pagination.scala

Inherited fields

lazy val edgeValuesNotFound: String

Attributes

Inherited from:
Pagination
Source
Pagination.scala
val logFormatter: Formatter

Attributes

Inherited from:
MoleculeLogging
Source
MoleculeLogging.scala
val logLevel: Level

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