Liking cljdoc? Tell your friends :D

datahike.index.interface

All the functions in this namespace must be implemented for each index type

All the functions in this namespace must be implemented for each index type
raw docstring

add-konserve-handlerscljmultimethod

Adds read and write handlers for the index data types.

Adds read and write handlers for the index data types.
sourceraw docstring

default-index-configcljmultimethod

Returns the default index configuration.

Returns the default index configuration.
sourceraw docstring

empty-indexcljmultimethod

Creates an empty index

Creates an empty index
sourceraw docstring

IIndexcljprotocol

-removeclj

(-remove index datom index-type op-count)

Removes a datom from the index

Removes a datom from the index

-countclj

(-count index)

Returns the number of datoms in the index

Returns the number of datoms in the index

-sliceclj

(-slice index from to index-type)

Returns a slice of the index

Returns a slice of the index

-transientclj

(-transient index)

Returns a transient version of the index

Returns a transient version of the index

-persistent!clj

(-persistent! index)

Returns a persistent version of the index

Returns a persistent version of the index

-temporal-upsertclj

(-temporal-upsert index datom index-type op-count old-datom)

Inserts or updates a datom in a history index

Inserts or updates a datom in a history index

-temporal-insertclj

(-temporal-insert index datom index-type op-count)

Inserts a datom in a history index

Inserts a datom in a history index

-allclj

(-all index)

Returns a sequence of all datoms in the index

Returns a sequence of all datoms in the index

-insertclj

(-insert index datom index-type op-count)

Inserts a datom into the index

Inserts a datom into the index

-upsertclj

(-upsert index datom index-type op-count old-datom)

Inserts or updates a datom into the index

Inserts or updates a datom into the index

-markclj

(-mark index)

Return konserve addresses that should be whitelisted for mark and sweep gc.

Return konserve addresses that should be whitelisted for mark and sweep gc.

-flushclj

(-flush index backend)

Saves the changes to the index to the given konserve backend

Saves the changes to the index to the given konserve backend

-seqclj

(-seq index)

Returns a sequence of all datoms in the index

Returns a sequence of all datoms in the index
source

init-indexcljmultimethod

Creates an index with datoms

Creates an index with datoms
sourceraw docstring

konserve-backendcljmultimethod

Returns a konserve store capable of handling the index. Used for flushing.

Returns a konserve store capable of handling the index. Used for flushing.
sourceraw docstring

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

× close