Liking cljdoc? Tell your friends :D

asami.durable.common

A common namespace for protocols and constants that are referenced from multiple files and/or between Clojure and ClojureScript files.

A common namespace for protocols and constants that are referenced
from multiple files and/or between Clojure and ClojureScript files.
raw docstring

Closeableclj/sprotocol

closeclj/s

(close this)

Closes and invalidates all associated resources

Closes and invalidates all associated resources

delete!clj/s

(delete! this)

Remove any persistent resources

Remove any persistent resources
source

DataStorageclj/sprotocol

atclj/s

(at pool t)

Retrieve the data at a particular transaction.

Retrieve the data at a particular transaction.

find-idclj/s

(find-id pool object)

Retrieves an ID for an object

Retrieves an ID for an object

find-objectclj/s

(find-object pool id)

Retrieves an object by ID

Retrieves an object by ID

write!clj/s

(write! pool object)

Retrieves an ID for an object, writing it if necessary. Returns a pair of the ID and the next version of the store. Idempotent.

Retrieves an ID for an object, writing it if necessary. Returns a pair of the ID and the next version of the store. Idempotent.
source

FlatRecordsclj/sprotocol

append!clj/s

(append! this v)

Writes a vector of long values. Returns an ID

Writes a vector of long values. Returns an ID

get-recordclj/s

(get-record this id)

Reads a record of long values from storage, based on an ID

Reads a record of long values from storage, based on an ID

next-idclj/s

(next-id this)

Returns the next ID that this store will return

Returns the next ID that this store will return
source

FlatStoreclj/sprotocol

get-objectclj/s

(get-object this id)

Reads and object from storage, based on an ID

Reads and object from storage, based on an ID

write-object!clj/s

(write-object! this obj)

Writes an object to storage. Returns an ID

Writes an object to storage. Returns an ID
source

Forceableclj/sprotocol

force!clj/s

(force! this)

Ensures that all written data is fully persisted

Ensures that all written data is fully persisted
source

int-sizeclj/s

Number of bytes in a Integer value

Number of bytes in a Integer value
sourceraw docstring

Lockableclj/sprotocol

lock!clj/s

(lock! this)

Locks this resource. This may be a process lock or a thread lock, depending on the resource

Locks this resource. This may be a process lock or a thread lock, depending on the resource

unlock!clj/s

(unlock! this)

Unlocks this resource.

Unlocks this resource.
source

long-sizeclj/s

Number of bytes in a Long value

Number of bytes in a Long value
sourceraw docstring

max-longclj/s

Maximum value that can be safely represented as a long

Maximum value that can be safely represented as a long
sourceraw docstring

Pagedclj/sprotocol

read-byteclj/s

(read-byte this offset)

Returns a byte from underlying pages

Returns a byte from underlying pages

read-bytesclj/s

(read-bytes this offset length)

Reads length bytes and returns as an array.

Reads length bytes and returns as an array.

read-bytes-intoclj/s

(read-bytes-into this offset bytes)

Fills a byte array with data from the paged object

Fills a byte array with data from the paged object

read-longclj/s

(read-long this offset)

Returns a long from underlying pages. Offset in bytes. Unlike other data types, these may not straddle boundaries

Returns a long from underlying pages. Offset in bytes. Unlike other data types, these may not straddle boundaries

read-shortclj/s

(read-short this offset)

Returns a short from underlying pages. Offset in bytes.

Returns a short from underlying pages. Offset in bytes.

refresh!clj/s

(refresh! this)

Refreshes the buffers

Refreshes the buffers
source

short-sizeclj/s

Number of bytes in a Short value

Number of bytes in a Short value
sourceraw docstring

Transactionclj/sprotocol

commit!clj/s

(commit! this)

Commits all blocks allocated since the last commit. These blocks are now read-only.

Commits all blocks allocated since the last commit. These blocks are now read-only.

rewind!clj/s

(rewind! this)

Revert to the last commit point. Any blocks allocated since the last commit will be invalid.

Revert to the last commit point. Any blocks allocated since the last commit will be invalid.
source

TupleStorageclj/sprotocol

count-tuplesclj/s

(count-tuples this tuple)

Finds and counts the size of a tuples seq

Finds and counts the size of a tuples seq

delete-tuple!clj/s

(delete-tuple! this tuple)

Removes a tuple from the index. Returns both the index and the final element of the tuple

Removes a tuple from the index. Returns both the index and the final element of the tuple

find-tuplesclj/s

(find-tuples this tuple)

Finds a tuples seq, returning a co-ordinate

Finds a tuples seq, returning a co-ordinate

tuples-atclj/s

(tuples-at this root)

Returns this tuples index at a different root

Returns this tuples index at a different root

write-new-tx-tuple!clj/s

(write-new-tx-tuple! this tuple)

Adds a new tuple to the index in the current TX

Adds a new tuple to the index in the current TX

write-tuple!clj/s

(write-tuple! this tuple)

Adds a tuple to the index

Adds a tuple to the index
source

TxDataclj/sprotocol

get-tx-dataclj/s

(get-tx-data this)

Returns the data for a transaction in a vector of long values

Returns the data for a transaction in a vector of long values
source

TxStoreclj/sprotocol

acquire-lock!clj/s

(acquire-lock! this)

Acquires a lock object for the transaction. Once acquired, this resouce MUST be freed!

Acquires a lock object for the transaction. Once acquired, this resouce MUST be freed!

append-tx!clj/s

(append-tx! this tx)

Writes a transaction record. The record is a seq of longs

Writes a transaction record. The record is a seq of longs

find-txclj/s

(find-tx this timestamp)

Finds the transaction number for a timestamp

Finds the transaction number for a timestamp

get-txclj/s

(get-tx this id)

Retrieves a transaction record by ID

Retrieves a transaction record by ID

latestclj/s

(latest this)

Retrieves the last transaction record

Retrieves the last transaction record

tx-countclj/s

(tx-count this)

Retrieves the count of transaction records

Retrieves the count of transaction records
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close