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.
(close this)
Closes and invalidates all associated resources
Closes and invalidates all associated resources
(delete! this)
Remove any persistent resources
Remove any persistent resources
(at pool t)
Retrieve the data at a particular transaction.
Retrieve the data at a particular transaction.
(find-id pool object)
Retrieves an ID for an object
Retrieves an ID for an object
(find-object pool id)
Retrieves an object by ID
Retrieves an object by ID
(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.
(append! this v)
Writes a vector of long values. Returns an ID
Writes a vector of long values. Returns an ID
(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-id this)
Returns the next ID that this store will return
Returns the next ID that this store will return
(get-object this id)
Reads and object from storage, based on an ID
Reads and object from storage, based on an ID
(write-object! this obj)
Writes an object to storage. Returns an ID
Writes an object to storage. Returns an ID
(force! this)
Ensures that all written data is fully persisted
Ensures that all written data is fully persisted
Number of bytes in a Integer value
Number of bytes in a Integer value
(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! this)
Unlocks this resource.
Unlocks this resource.
Maximum value that can be safely represented as a long
Maximum value that can be safely represented as a long
(read-byte this offset)
Returns a byte from underlying pages
Returns a byte from underlying pages
(read-bytes this offset length)
Reads length bytes and returns as an array.
Reads length bytes and returns as an array.
(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-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-short this offset)
Returns a short from underlying pages. Offset in bytes.
Returns a short from underlying pages. Offset in bytes.
(refresh! this)
Refreshes the buffers
Refreshes the buffers
Number of bytes in a Short value
Number of bytes in a Short value
(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! 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.
(count-tuples this tuple)
Finds and counts the size of a tuples seq
Finds and counts the size of a tuples seq
(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-tuples this tuple)
Finds a tuples seq, returning a co-ordinate
Finds a tuples seq, returning a co-ordinate
(tuples-at this root)
Returns this tuples index at a different root
Returns this tuples index at a different root
(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! this tuple)
Adds a tuple to the index
Adds a tuple to the index
(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
(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! 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-tx this timestamp)
Finds the transaction number for a timestamp
Finds the transaction number for a timestamp
(get-tx this id)
Retrieves a transaction record by ID
Retrieves a transaction record by ID
(latest this)
Retrieves the last transaction record
Retrieves the last transaction record
(tx-count this)
Retrieves the count of transaction records
Retrieves the count of transaction records
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close