Packages

t

de.sciss.lucre

ConfluentLike

trait ConfluentLike[Tx <: lucre.confluent.Txn[Tx]] extends lucre.confluent.Sys

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ConfluentLike
  2. Sys
  3. Sys
  4. Base
  5. Closeable
  6. AutoCloseable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. abstract type D <: DurableLike.Txn[D]
    Definition Classes
    Sys
  2. abstract type I <: InMemoryLike.Txn[I]
    Definition Classes
    Sys
  3. type T = Tx

    The transaction type of the system.

    The transaction type of the system.

    Definition Classes
    ConfluentLikeSysSys

Abstract Value Members

  1. abstract def close(): Unit

    Closes the underlying database (if the system is durable).

    Closes the underlying database (if the system is durable). The STM cannot be used beyond this call. An in-memory system should have a no-op implementation.

    Definition Classes
    Base → Closeable → AutoCloseable
  2. abstract def cursorRoot[A, B](init: (T) => A)(result: (T) => (A) => B)(implicit format: TFormat[T, A]): (confluent.Ref[T, A], B)

    Initializes the data structure, by either reading an existing entry or generating the root entry with the init function.

    Initializes the data structure, by either reading an existing entry or generating the root entry with the init function. The method than allows the execution of another function within the same transaction, passing it the data structure root of type A. This is typically used to generate access mechanisms, such as extracting a cursor from the data structure, or instantiating a new cursor. The method then returns both the access point to the data structure and the result of the second function.

    A

    type of data structure

    B

    type of result from the second function. typically this is an stm.Cursor[S]

    init

    a function to initialize the data structure (if the database is fresh)

    result

    a function to process the data structure

    format

    a format to read or write the data structure

    returns

    the access to the data structure along with the result of the second function.

    Definition Classes
    Sys
  3. abstract def debugPrintIndex(index: Access[T])(implicit tx: T): String
    Definition Classes
    Sys
  4. abstract def durable: DurableLike[D]
    Definition Classes
    Sys
  5. abstract def durableTx(tx: T): D
    Definition Classes
    Sys
  6. abstract def inMemory: InMemoryLike[I]
    Definition Classes
    Sys
  7. abstract def newCursor(init: Access[T])(implicit tx: T): confluent.Cursor[T, D]
    Definition Classes
    Sys
  8. abstract def newCursor()(implicit tx: T): confluent.Cursor[T, D]
    Definition Classes
    Sys
  9. abstract def readCursor(in: DataInput)(implicit tx: T): confluent.Cursor[T, D]
    Definition Classes
    Sys
  10. abstract def readPath(in: DataInput): Access[T]
    Definition Classes
    Sys
  11. abstract def root[A](init: (T) => A)(implicit format: TFormat[T, A]): Source[T, A]

    Reads the root object representing the stored data structure, or provides a newly initialized one via the init argument, if no root has been stored yet.

    Reads the root object representing the stored data structure, or provides a newly initialized one via the init argument, if no root has been stored yet.

    Definition Classes
    Sys
  12. abstract def rootWithDurable[A, B](confluent: (T) => A)(durable: (D) => B)(implicit aFmt: TFormat[T, A], bFmt: TFormat[D, B]): (confluent.Source[T, A], B)

    Initializes the data structure both with a confluently persisted and an ephemeral-durable value.

    Initializes the data structure both with a confluently persisted and an ephemeral-durable value.

    A

    type of confluent data structure

    B

    type of ephemeral data structure

    confluent

    a function that provides the initial confluent data (if the database is fresh)

    durable

    a function that provides the initial ephemeral data (if the database is fresh)

    aFmt

    a format to read or write the confluent data structure

    bFmt

    a format to read or write the ephemeral data structure

    returns

    a tuple consisting of a handle to the confluent structure and the ephemeral datum. The ephemeral datum, although written to disk, does not require an stm.Source because D#Acc is Unit and does not need refresh.

    Definition Classes
    Sys

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  15. def toString(): String
    Definition Classes
    AnyRef → Any
  16. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  17. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  18. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from confluent.Sys

Inherited from Sys

Inherited from Base

Inherited from Closeable

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped