Skip to content

TI-Tokyo/eleveldb

This branch is 1 commit ahead of OpenRiak/eleveldb-forked:openriak-3.2.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4c16c28 · Feb 4, 2025
Oct 23, 2024
Feb 4, 2025
Sep 13, 2016
Mar 7, 2024
Feb 10, 2018
Dec 7, 2022
Feb 15, 2017
Dec 7, 2022
Oct 23, 2024
Sep 24, 2024
Sep 5, 2023
Mar 7, 2024

Repository files navigation

eleveldb - Erlang bindings to LevelDB datastore

eleveldb OpenRiak Status

This repository follows the Basho standard for branch management as of November 28, 2013. The standard is found here:

https://github.com/basho/riak/wiki/Basho-repository-management

In summary, the "develop" branch contains the most recently reviewed engineering work. The "master" branch contains the most recently released work, i.e. distributed as part of a Riak release.

Iterating Records

High-level Iterator Interface

The interface that most clients of eleveldb should use when iterating over a set of records stored in leveldb is fold, since this fits nicely with the Erlang way of doing things.

For those who need more control over the process of iterating over records, you can use direct iterator actions. Use them with great care.

Direct Iterator Actions

seek/next/prev

  • seek: Move iterator to a new position.

  • next: Move forward one position and return the value; do nothing else.

  • prev: Move backward one position and return the value; do nothing else.

prefetc/prefetch_stop

  • prefetch: Perform a next action and then start a parallel call for the subsequent next while Erlang processes the current next. The subsequent prefetch may return immediately with the value already retrieved.

  • prefetch_stop: Stop a sequence of prefetch calls. If there is a parallel prefetch pending, cancel it, since we are about to move the pointer.

Warning

Either use prefetch/prefetch_stop or next/prev. Do not intermix prefetch and next/prev. You must prefetch_stop after one or more prefetch operations before using any of the other operations (seek, next, prev).

About

Erlang LevelDB API

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 53.7%
  • Erlang 45.1%
  • Makefile 1.2%