riak / src / riak_osmos_backend.erl

Diff from to

src/riak_osmos_backend.erl

 stop(#state{table=Table}) ->
     osmos:close(Table).
 
-%% get(state(), Key :: binary()) ->
+%% get(state(), BKey :: riak_object:bkey()) ->
 %%   {ok, Val :: binary()} | {error, Reason :: term()}
 %% key must be 160b
 get(#state{table=Table}, BKey) ->
         not_found   -> {error, notfound}
     end.
 
-%% put(state(), Key :: binary(), Val :: binary()) ->
+%% put(state(), BKey :: riak_object:bkey(), Val :: binary()) ->
 %%   ok | {error, Reason :: term()}
 %% key must be 160b
 put(#state{table=Table},BKey,Val) ->       
     osmos:write(Table, term_to_binary(BKey), Val).
 
-%% delete(state(), Key :: binary()) ->
+%% delete(state(), Key :: riak_object:key()) ->
 %%   ok | {error, Reason :: term()}
 %% key must be 160b
 delete(#state{table=Table}, BKey) ->
 
 -define(SELECT_CHUNK, 1000).
 
-%% list(state()) -> [Key :: binary()]
+%% list(state()) -> [Key :: riak_object:key()]
 list(#state{table=Table}) ->
     accum(Table, fun(K,_) -> {true, binary_to_term(K)} end).
 
-%% list_bucket(state(), Bucket :: atom()) -> [Key :: binary()]
+%% list_bucket(state(), Bucket :: riak_object:bucket()) -> [Key :: binary()]
 list_bucket(#state{table=Table}, Bucket) ->
     accum(Table,
           fun(Key,_) ->
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.