Access

trait Access[T <: Txn[T]] extends Writable with PathLike
Companion
object
trait PathLike
trait Writable
class Object
trait Matchable
class Any

Value members

Abstract methods

def !(implicit tx: T): Access[LazyRef(...)]
def +:(head: Long): Access[T]

Prepends a single element.

Prepends a single element.

def :+(last: Long): Access[T]

Appends a single element.

Appends a single element.

def addTerm(term: Long)(implicit tx: T): Access[T]

Replaces the terminal version with the given term. If the new term is on the same tree level as the old term, the term is replaced, otherwise a new tree is entered (the new term is appended twice).

Replaces the terminal version with the given term. If the new term is on the same tree level as the old term, the term is replaced, otherwise a new tree is entered (the new term is appended twice).

def drop(num: Int): Access[T]
def index: Access[T]

Drops the last element.

Drops the last element.

def info(implicit tx: T): VersionInfo

Retrieves the version information associated with the access path.

Retrieves the version information associated with the access path.

def mkString(prefix: String, sep: String, suffix: String): String
def seminal: Access[T]
def splitIndex: (Access[T], Long)

Splits off last term, returning index (init) and that last term.

Splits off last term, returning index (init) and that last term.

def tail: Access[T]

Drops the head element.

Drops the head element.

def take(num: Int): Access[T]
def takeUntil(timeStamp: Long)(implicit tx: T): Access[T]

Truncates the path to a prefix corresponding to the most recent transaction along the path which has occurred not after a given point in (system) time.

Truncates the path to a prefix corresponding to the most recent transaction along the path which has occurred not after a given point in (system) time.

In other words, calling info on the returned path results in a VersionInfo object whose timeStamp field is less than or equal to the timeStamp argument of this method. The only exception is if the timeStamp argument is smaller than the root version of system; in that case, the root path is returned instead of an empty path.

'''Note:''' This assumes that incremental versions correspond with incremental time stamps. This is not enforced and if this is not the case, the behaviour is undefined. Furthermore, if it is allowed that multiple successive versions have the same time stamp. In that case, it is undefined which of these versions is returned.

Value Params
timeStamp

the query time (in terms of System.currentTimeMillis)

def term: Long

Inherited methods

def head: Long
Inherited from
PathLike
def isEmpty: Boolean
Inherited from
PathLike
def last: Long
Inherited from
PathLike
def nonEmpty: Boolean
Inherited from
PathLike
def size: Int
Inherited from
PathLike
def sum: Long
Inherited from
PathLike
def sumUntil(n: Int): Long
Inherited from
PathLike
def write(out: DataOutput): Unit
Inherited from
Writable