Liking cljdoc? Tell your friends :D

asami.durable.tuples

Tuples index with blocks

Tuples index with blocks
raw docstring

add-single-tuple!clj/s

(add-single-tuple! tuple node block pos tuple-count byte-pos byte-len)

Performs the operation necessary to add a single tuple from a node/block. tuple: the tuple to be added node: the node to be modified block: the tuples block to be modified pos: the tuple position within the block tuple-count: the number of tuples in the block byte-pos: the byte position representing the pos byte-len: the bytes from the byte position to the end of the block

Performs the operation necessary to add a single tuple from a node/block.
tuple: the tuple to be added
node: the node to be modified
block: the tuples block to be modified
pos: the tuple position within the block
tuple-count: the number of tuples in the block
byte-pos: the byte position representing the pos
byte-len: the bytes from the byte position to the end of the block
sourceraw docstring

block-bytesclj/s

Number of bytes in a full block

Number of bytes in a full block
sourceraw docstring

block-maxclj/s

Maximum number of tuples in a block

Maximum number of tuples in a block
sourceraw docstring

block-nameclj/s

Name of the block statement file

Name of the block statement file
sourceraw docstring

block-reference-offsetclj/s

source

count-betweenclj/s

(count-between index start-coord end-coord)
source

count-code-maskclj/s

source

count-index-tuplesclj/s

(count-index-tuples index blocks tuple)

Finds and counts a tuple seq in an index

Finds and counts a tuple seq in an index
sourceraw docstring

count-maskclj/s

The mask to apply for the count bits

The mask to apply for the count bits
sourceraw docstring

count-shiftclj/s

The shift to get the count bits

The shift to get the count bits
sourceraw docstring

create-tuple-indexclj/s

(create-tuple-index name order-name)
(create-tuple-index name order-name root-id)

Creates a tuple index for a name

Creates a tuple index for a name
sourceraw docstring

dec-tuple-sizeclj/s

One less than the number of values in a tuple

One less than the number of values in a tuple
sourceraw docstring

delete-single-tuple!clj/s

(delete-single-tuple! node block pos tuple-count byte-pos byte-len)

Performs the operation necessary to remove a single tuple from a node/block. node: the node to be modified block: the tuples block to be modified pos: the tuple position within the block tuple-count: the number of tuples in the block byte-pos: the byte position representing the pos byte-len: the bytes from the byte position to the end of the block

Performs the operation necessary to remove a single tuple from a node/block.
node: the node to be modified
block: the tuples block to be modified
pos: the tuple position within the block
tuple-count: the number of tuples in the block
byte-pos: the byte position representing the pos
byte-len: the bytes from the byte position to the end of the block
sourceraw docstring

find-coordclj/s

(find-coord index blocks tuple)

Retrieves the coordinate of a tuple. A coordinate is a structure of node/pos for the node and offset in the node's block. If the tuple is found, then returns a coordinate. If the tuple is not found, then return a pair of coordinates that the tuple appears between. A nil coordinate in a pair indicates the end of the range of the index.

Retrieves the coordinate of a tuple.
A coordinate is a structure of node/pos for the node and offset in the node's block.
If the tuple is found, then returns a coordinate.
If the tuple is not found, then return a pair of coordinates that the tuple appears between.
A nil coordinate in a pair indicates the end of the range of the index.
sourceraw docstring

find-index-tuplesclj/s

(find-index-tuples index blocks tuple)

Finds a tuple seq in an index

Finds a tuple seq in an index
sourceraw docstring

first-coordclj/s

(first-coord index)

Finds the very first tuple in the index

Finds the very first tuple in the index
sourceraw docstring

get-block-refclj/s

(get-block-ref node)

Gets the ID of the block that contains the tuples

Gets the ID of the block that contains the tuples
sourceraw docstring

get-countclj/s

(get-count node)

Returns the number of tuples in the block

Returns the number of tuples in the block
sourceraw docstring

get-high-tupleclj/s

(get-high-tuple node)

Returns the high tuple value from the node's range

Returns the high tuple value from the node's range
sourceraw docstring

get-low-tupleclj/s

(get-low-tuple node)

Returns the low tuple value from the node's range

Returns the low tuple value from the node's range
sourceraw docstring

half-blockclj/s

Half the maximum number of tuples in a block

Half the maximum number of tuples in a block
sourceraw docstring

half-block-bytesclj/s

Number of bytes in a full block

Number of bytes in a full block
sourceraw docstring

high-tuple-offsetclj/s

source

index-nameclj/s

Name of the index file

Name of the index file
sourceraw docstring

init-node-writerclj/s

(init-node-writer block-id node tuple)
source

insert-tuple!clj/s

(insert-tuple! {:keys [index blocks root-id] :as this} tuple short-tuple)

Inserts a tuple into an index

Inserts a tuple into an index
sourceraw docstring

last-coordclj/s

(last-coord index)

Finds the very first tuple in the index

Finds the very first tuple in the index
sourceraw docstring

low-tuple-offsetclj/s

source

modify-node-block!clj/s

(modify-node-block! {:keys [index blocks] :as tuples-store}
                    {:keys [node pos] :as coord}
                    op!)

Modifies a node and associated block, using the provided operation

Modifies a node and associated block, using the provided operation
sourceraw docstring

next-populatedclj/s

(next-populated index node)

Returns the next node with tuples, starting with the provided node.

Returns the next node with tuples, starting with the provided node.
sourceraw docstring

node-dataclj/s

(node-data n)
source

open-tuplesclj/s

(open-tuples order-name name root-id)
source

partial-equalclj/s

(partial-equal [t1 & r1] [t2 & r2])

Compares tuples. If one is only partial, then they are allowed to compare equal

Compares tuples. If one is only partial, then they are allowed to compare equal
sourceraw docstring

ReadOnlyTupleIndexclj/s

source

reference-maskclj/s

source

search-blockclj/s

(search-block block len tuple)

Returns the tuple offset in a block that matches a given tuple. If no tuple matches exactly, then returns a pair of positions to insert between.

Returns the tuple offset in a block that matches a given tuple.
If no tuple matches exactly, then returns a pair of positions to insert between.
sourceraw docstring

set-block-ref!clj/s

(set-block-ref! node block-ref)

Sets the ID of the block that contains the tuples

Sets the ID of the block that contains the tuples
sourceraw docstring

set-count!clj/s

(set-count! node count*)

Sets the number of tuples in the block

Sets the number of tuples in the block
sourceraw docstring

set-high-tuple!clj/s

(set-high-tuple! node tuple)

Sets the high tuple value of the node's range

Sets the high tuple value of the node's range
sourceraw docstring

set-low-tuple!clj/s

(set-low-tuple! node tuple)

Sets the low tuple value of the node's range

Sets the low tuple value of the node's range
sourceraw docstring

set-tuple-at!clj/s

(set-tuple-at! block offset tuple)

Retrieves the tuple found at a particular tuple offset

Retrieves the tuple found at a particular tuple offset
sourceraw docstring

split-block!clj/s

(split-block! {:keys [index blocks root-id] :as tuples-store}
              {node :node pos :pos :as coord})

Updates a node and associated block to split them into 2 nodes and 2 blocks. Returns the new insertion coordinate

Updates a node and associated block to split them into 2 nodes and 2 blocks.
Returns the new insertion coordinate
sourceraw docstring

split-node-writerclj/s

(split-node-writer block-id node [low high])
source

tree-node-sizeclj/s

Number of bytes used in the index nodes

Number of bytes used in the index nodes
sourceraw docstring

tuple-atclj/s

(tuple-at block offset)

Retrieves the tuple found at a particular tuple offset

Retrieves the tuple found at a particular tuple offset
sourceraw docstring

tuple-at-coordclj/s

(tuple-at-coord blocks {:keys [node pos]})

Retrieves the tuple at a coordinate

Retrieves the tuple at a coordinate
sourceraw docstring

tuple-node-compareclj/s

(tuple-node-compare tuple node)

Compare the contents of a tuple to the range of a node

Compare the contents of a tuple to the range of a node
sourceraw docstring

tuple-seqclj/s

(tuple-seq index blocks tuple node offset)

Create a lazy sequence of tuples. This iterates through the block associated with the given node, until reaching the size of the block. Then moves to the next node, and starts iterating through the block associated with it. Continues as long as the provided tuple matches the tuple in the block. index: the tree index with the nodes blocks: the block manager for tuples blocks tuple: the tuple being searched for. Every returned tuple with match this one by prefix offset: the starting point of iteration

Create a lazy sequence of tuples.
This iterates through the block associated with the given node, until reaching the size of the block.
Then moves to the next node, and starts iterating through the block associated with it.
Continues as long as the provided tuple matches the tuple in the block.
index: the tree index with the nodes
blocks: the block manager for tuples blocks
tuple: the tuple being searched for. Every returned tuple with match this one by prefix
offset: the starting point of iteration
sourceraw docstring

tuple-sizeclj/s

The number of values in a tuple

The number of values in a tuple
sourceraw docstring

tuple-size-bytesclj/s

The number of bytes in a tuple

The number of bytes in a tuple
sourceraw docstring

TupleIndexclj/s

source

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

× close