muesli-0.1.1.0: A simple document-oriented database

Copyright(c) 2015 Călin Ardelean
LicenseMIT
MaintainerCălin Ardelean <calinucs@gmail.com>
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Database.Muesli.Indexes

Description

Incremental database index update functions. Except for updateMainIndex, these functions first search for the previous version for each record and, if found, remove the old references from the index, then add the new ones.

Used during loading, query evaluation, and GC.

Synopsis

Documentation

updateMainIndex :: MainIndex -> [LogRecord] -> MainIndex Source

Updates the MainIndex (allocation table).

updateFilterIndex :: MainIndex -> FilterIndex -> [LogRecord] -> FilterIndex Source

Updates the FilterIndex.

Calls updateSortIndex for the internal sorted indexes.

updateSortIndex :: MainIndex -> SortIndex -> [LogRecord] -> SortIndex Source

Updates the main SortIndex, and also the SortIndexes inside a FilterIndex.