Copyright | (c) 2015 Călin Ardelean |
---|---|
License | MIT |
Maintainer | Călin Ardelean <calinucs@gmail.com> |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
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.
- updateMainIndex :: MainIndex -> [LogRecord] -> MainIndex
- updateFilterIndex :: MainIndex -> FilterIndex -> [LogRecord] -> FilterIndex
- updateSortIndex :: MainIndex -> SortIndex -> [LogRecord] -> SortIndex
- updateUniqueIndex :: MainIndex -> UniqueIndex -> [LogRecord] -> UniqueIndex
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 SortIndex
es inside a FilterIndex
.
updateUniqueIndex :: MainIndex -> UniqueIndex -> [LogRecord] -> UniqueIndex Source
Updates the UniqueIndex
.