novabyte / diver

A HBase driver for Erlang/Elixir using Jinterface and the Asynchbase Java client to query the database.
Apache License 2.0
49 stars 9 forks source link

implements 'scan' command #4

Open yjh0502 opened 8 years ago

yjh0502 commented 8 years ago

Implements 'scan' command which receives three paramaters

API returns ok after starting scan asyncronously. It returns each rows with {Ref, row, [ColumnList]} messages for each cells. If there is an error occures during scan, it sends {Ref, error, Name, Msg} and terminates scan. If all rows are successfully returned, it sends {Ref, done} message.

note: This PR implements proof-of-concept mechanism of scan command. Any comments/reviews/feedbacks are welcome. Here's some ideas