InMemoryConfluentMap

trait InMemoryConfluentMap[T <: Txn[T], K]
Companion
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def get[A](key: K, tx: T)(implicit path: Access[T]): Option[A]

Finds the most recent value for an entity id with respect to version path.

Finds the most recent value for an entity id with respect to version path.

Type Params
A

the type of values stored with the entity

Value Params
key

the identifier for the object

path

the path through which the object has been accessed (the version at which it is read)

tx

the transaction within which the access is performed

Returns

None if no value was found, otherwise a Some of that value.

def getWithSuffix[A](key: K, tx: T)(implicit path: Access[T]): Option[(Access[T], A)]

Finds the most recent value for an entity id with respect to version path. If a value is found, it is return along with a suffix suitable for identifier path actualisation.

Finds the most recent value for an entity id with respect to version path. If a value is found, it is return along with a suffix suitable for identifier path actualisation.

Type Params
A

the type of values stored with the entity

Value Params
key

the identifier for the object

path

the path through which the object has been accessed (the version at which it is read)

tx

the transaction within which the access is performed

Returns

None if no value was found, otherwise a Some of the tuple consisting of the suffix and the value. The suffix is the access path minus the prefix at which the value was found. However, the suffix overlaps the prefix in that it begins with the tree entering/exiting tuple at which the value was found.

def put[A](key: K, value: A, tx: T)(implicit path: Access[T]): Unit
def remove(key: K, tx: T)(implicit path: Access[LazyRef(...)]): Boolean