Comments (4)
I've done some testing on this in our branch of asynchbase (which has diverged quite a bit from this one) the changes are not too difficult. I'd like to sync our version back up with the official version when I have some time.
Here is a commit that adds filter support to the get request (I didn't implement the scan)
Flipboard@2825587
import org.apache.hadoop.hbase.util.Writables;
import org.apache.hadoop.hbase.filter.ColumnPaginationFilter;
GetRequest = new GetRequest(...);
ColumnPaginationFilter filter = new ColumnPaginationFilter(200, 0);
getreq.filterName(filter.getClass().getName().getBytes());
getreq.filter(Writables.getBytes(filter));
from asynchbase.
This issue relates in part to #51 (for the scanner part).
from asynchbase.
Yes, these two things are the same, if you were to use something like "HBaseRpc.HasFilter" and just pass the name and the filter bytes then the filter mechanism remains pretty opaque. There are cases where you need to build a filter list and just one column based filter isn't going to be enough.
The existing scanner filter could be made compatible with this more generic mechanism.
from asynchbase.
Yup, we're adding a number of filters (see pull request #56 which I've integrated in my repo for the scan filter part). We could add that interface to tack on a filter on HBaseRpc
subclasses that can use a filter.
from asynchbase.
Related Issues (20)
- Asynchbase MultiAction deserializes response from batch putRequest incorrectly HOT 1
- PR build failed with Java environment error HOT 1
- AssertionError: "Must not be used." HOT 1
- IN version2.3.0 HOT 1
- An exception was thrown by TimerTask. java.lang.OutOfMemoryError: Java heap space HOT 1
- Should buffering gets be possible? HOT 1
- When a scanner lease expires, it will retry request same regionserver endless. RS too busy! HOT 16
- can't set async wal?
- Mutation Attributes support
- Appends with no returns and few errors can break deserialization
- Can't re-write data correctly HOT 1
- Can you open chat room
- Why ConnectionResetException happen? HOT 1
- SparkStreaming with mapPartitions use client find error ”Too many open files“ HOT 1
- Comparison method violates its general contract
- org.hbase.async.NonRecoverableException: Too many attempts: OpenScannerRequest HOT 1
- How do i use the PageFilter
- Broken pipe error with "hbase.rpc.protection: privacy" HOT 1
- Can this support the kerberos authentication of hbase 2.2 HOT 1
- Not able to create jar
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 asynchbase.