Comments (3)
Currently, filter support is a bit cumbersome in ok_hbase.
you want to use the filter_string
option with your scan and pass in a string following the rules in the Hbase Thrift docs. Check out section 10.3.1.8 for examples.
I think some of the documentation there is slightly wrong, so you might want to refer to the JavaDocs, specifically, the constructor signatures for the sub-classes of FilterBase
So, for your case, you would want:
table.scan(
start_row: '2013-08-29 13:00:00',
stop_row: '2013-08-29 13:30:00',
columns: ['Solectria'],
filter_string: "ColumnPrefixFilter('Inv1')"
)
from ok_hbase.
Thanks a lot, This works perfectly fine. Can i use all the other filters in the similar fashion ?
from ok_hbase.
Yeah, I believe you should be able to use any filter supported by your version of HBase; its just a string thats passed through.
from ok_hbase.
Related Issues (13)
- Connection to Remote Hbase HOT 13
- how to run it? HOT 5
- Table#rows should return an array of (row_key, columns) tuples
- Upgrade hbase.rb to latest Thrift interface definition file HOT 1
- License missing from gemspec
- Row Start and Row Stop parameters in scanning a hbase table HOT 5
- Can i pull meta data using OK_Hbase gem HOT 4
- Adding Hash data to a column HOT 2
- thrift-0.9.0 warning
- Maintain Thrift Connection between Requests HOT 3
- Thrift 0.9.0 doesn't compile on OSX 10.9.2 HOT 5
- How to close connection
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ok_hbase.