trait Access[S <: Sys[S]] extends Writable with PathLike
- Alphabetic
- By Inheritance
- Access
- PathLike
- Writable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
+:(head: Long): Access[S]
Prepends a single element.
-
abstract
def
:+(last: Long): Access[S]
Appends a single element.
-
abstract
def
addTerm(term: Long)(implicit tx: S.Tx): Access[S]
Replaces the terminal version with the given
term.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). - abstract def drop(num: Int): Access[S]
- abstract def head: Long
-
abstract
def
index: Access[S]
Drops the last element.
-
abstract
def
info(implicit tx: S.Tx): VersionInfo
Retrieves the version information associated with the access path.
- abstract def isEmpty: Boolean
- abstract def last: Long
- abstract def mkString(prefix: String, sep: String, suffix: String): String
- abstract def nonEmpty: Boolean
- abstract def seminal: Access[S]
-
abstract
def
size: Int
- Definition Classes
- PathLike
-
abstract
def
splitIndex: (Access[S], Long)
Splits off last term, returning index (init) and that last term.
-
abstract
def
sum: Long
- Definition Classes
- PathLike
-
abstract
def
sumUntil(n: Int): Long
- Definition Classes
- PathLike
-
abstract
def
tail: Access[S]
Drops the head element.
- abstract def take(num: Int): Access[S]
-
abstract
def
takeUntil(timeStamp: Long)(implicit tx: S.Tx): Access[S]
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
infoon the returned path results in aVersionInfoobject whosetimeStampfield is less than or equal to thetimeStampargument of this method. The only exception is if thetimeStampargument 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.
- timeStamp
the query time (in terms of
System.currentTimeMillis)
- abstract def term: Long
-
abstract
def
write(out: DataOutput): Unit
- Definition Classes
- Writable
Concrete 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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- 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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )