Skip to content

Instantly share code, notes, and snippets.

@mallipeddi
Created June 30, 2009 14:45
Show Gist options
  • Save mallipeddi/138192 to your computer and use it in GitHub Desktop.
Save mallipeddi/138192 to your computer and use it in GitHub Desktop.
-module(couch_btree).
-export([open/2, open/3, query_modify/4, add/2, add_remove/3, foldl/3, foldl/4]).
-export([foldr/3, foldr/4, fold/4, fold/5, full_reduce/1, final_reduce/2]).
-export([fold_reduce/6, fold_reduce/7, lookup/2, get_state/1, set_options/2]).
-record(btree,
{fd,
root,
extract_kv = fun({Key, Value}) -> {Key, Value} end,
assemble_kv = fun(Key, Value) -> {Key, Value} end,
less = fun(A, B) -> A < B end,
reduce = nil
}).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment