Code Monkey home page Code Monkey logo

Comments (4)

jasonculverhouse avatar jasonculverhouse commented on July 17, 2024

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.

tsuna avatar tsuna commented on July 17, 2024

This issue relates in part to #51 (for the scanner part).

from asynchbase.

jasonculverhouse avatar jasonculverhouse commented on July 17, 2024

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.

tsuna avatar tsuna commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.