Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Thrift 0.9.1 and HBase 0.94.9 #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ For instance, when using HBase 0.90.4:
gem 'hbase-rb', '0.90.4'
```

or HBase 0.94.9:

```ruby
gem 'hbase-rb', '0.94.9'
```

## Usage

This library simply exposes the generated Ruby code from Thrift.
Expand Down
6 changes: 3 additions & 3 deletions hbase-rb.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Gem::Specification.new do |s|
s.name = "hbase-rb"
s.version = "0.90.4.pre2"
s.version = "0.94.9"
s.authors = ["Andy Lindeman"]
s.email = ["[email protected]"]
s.homepage = "http://github.com/highgroove/hbase-rb"
Expand All @@ -12,9 +12,9 @@ Gem::Specification.new do |s|
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
s.require_paths = ["lib","lib/hbase"]

s.add_dependency "thrift", ">=0.7.0"
s.add_dependency "thrift", ">=0.9.1"

s.add_development_dependency "rake"
end
24 changes: 24 additions & 0 deletions lib/Hbase.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,18 @@ struct TRowResult {
2:map<Text, TCell> columns
}

/**
* A Scan object is used to specify scanner parameters when opening a scanner.
*/
struct TScan {
1:optional Text startRow,
2:optional Text stopRow,
3:optional i64 timestamp,
4:optional list<Text> columns,
5:optional i32 caching,
6:optional Text filterString
}

//
// Exceptions
//
Expand Down Expand Up @@ -573,6 +585,18 @@ service Hbase {
3:i64 timestamp
) throws (1:IOError io)

/**
* Get a scanner on the current table, using the Scan instance
* for the scan parameters.
*/
ScannerID scannerOpenWithScan(
/** name of table */
1:Text tableName,

/** Scan instance */
2:TScan scan
) throws (1:IOError io)

/**
* Get a scanner on the current table starting at the specified row and
* ending at the last row in the table. Return the specified columns.
Expand Down
Loading