You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Charles Mason <ch...@gmail.com> on 2008/09/18 18:31:57 UTC
A Problem With The Thrift Scanner Interface
Hi All,
I have been working on interfacing HBase with C# using thrift. I am
currently writing a lightweight ORM style wrapper to make interfacing
with data in HBase easier. I am currently trying to implement a
scanner and I am running in to a problem.
The scannerOpen function seems to always require a column list, wear
as with the REST interface it can be left empty in which case all a
rows columns are returned. If I provide an empty column list via
Thrift no columns are returned.
Is there something I am missing or this just a missing future with the
thrift interface? I am running the 0.2 release.
Charlie M
Re: A Problem With The Thrift Scanner Interface
Posted by Jean-Daniel Cryans <jd...@apache.org>.
Good on you Tim!
J-D
On Fri, Sep 19, 2008 at 9:01 AM, Tim Sell <tr...@gmail.com> wrote:
> I saw you're jira (HBASE-889) Charles, I'm upload a fix soon.
>
> ~Tim.
>
> 2008/9/18 Jean-Daniel Cryans <jd...@apache.org>:
> > Charles,
> >
> > I'm not a big Thrift user but by reading the code I think you are right:
> >
> > byte [][] columnsText = new byte[columns.size()][];
> > for (int i = 0; i < columns.size(); ++i) {
> > columnsText[i] = getText(columns.get(i));
> > }
> > Scanner scanner = table.getScanner(columnsText,
> > getText(startRow));
> >
> > Current IDL is not as complete as it should be, feel free to open a new
> > issue in Jira <https://issues.apache.org/jira/browse/HBASE> so that
> someone
> > can post a patch.
> >
> > Thx,
> >
> > J-D
> >
> > On Thu, Sep 18, 2008 at 12:31 PM, Charles Mason <charlie.mas@gmail.com
> >wrote:
> >
> >> Hi All,
> >>
> >> I have been working on interfacing HBase with C# using thrift. I am
> >> currently writing a lightweight ORM style wrapper to make interfacing
> >> with data in HBase easier. I am currently trying to implement a
> >> scanner and I am running in to a problem.
> >>
> >> The scannerOpen function seems to always require a column list, wear
> >> as with the REST interface it can be left empty in which case all a
> >> rows columns are returned. If I provide an empty column list via
> >> Thrift no columns are returned.
> >>
> >> Is there something I am missing or this just a missing future with the
> >> thrift interface? I am running the 0.2 release.
> >>
> >> Charlie M
> >>
> >
>
Re: A Problem With The Thrift Scanner Interface
Posted by Tim Sell <tr...@gmail.com>.
I saw you're jira (HBASE-889) Charles, I'm upload a fix soon.
~Tim.
2008/9/18 Jean-Daniel Cryans <jd...@apache.org>:
> Charles,
>
> I'm not a big Thrift user but by reading the code I think you are right:
>
> byte [][] columnsText = new byte[columns.size()][];
> for (int i = 0; i < columns.size(); ++i) {
> columnsText[i] = getText(columns.get(i));
> }
> Scanner scanner = table.getScanner(columnsText,
> getText(startRow));
>
> Current IDL is not as complete as it should be, feel free to open a new
> issue in Jira <https://issues.apache.org/jira/browse/HBASE> so that someone
> can post a patch.
>
> Thx,
>
> J-D
>
> On Thu, Sep 18, 2008 at 12:31 PM, Charles Mason <ch...@gmail.com>wrote:
>
>> Hi All,
>>
>> I have been working on interfacing HBase with C# using thrift. I am
>> currently writing a lightweight ORM style wrapper to make interfacing
>> with data in HBase easier. I am currently trying to implement a
>> scanner and I am running in to a problem.
>>
>> The scannerOpen function seems to always require a column list, wear
>> as with the REST interface it can be left empty in which case all a
>> rows columns are returned. If I provide an empty column list via
>> Thrift no columns are returned.
>>
>> Is there something I am missing or this just a missing future with the
>> thrift interface? I am running the 0.2 release.
>>
>> Charlie M
>>
>
Re: A Problem With The Thrift Scanner Interface
Posted by Jean-Daniel Cryans <jd...@apache.org>.
Charles,
I'm not a big Thrift user but by reading the code I think you are right:
byte [][] columnsText = new byte[columns.size()][];
for (int i = 0; i < columns.size(); ++i) {
columnsText[i] = getText(columns.get(i));
}
Scanner scanner = table.getScanner(columnsText,
getText(startRow));
Current IDL is not as complete as it should be, feel free to open a new
issue in Jira <https://issues.apache.org/jira/browse/HBASE> so that someone
can post a patch.
Thx,
J-D
On Thu, Sep 18, 2008 at 12:31 PM, Charles Mason <ch...@gmail.com>wrote:
> Hi All,
>
> I have been working on interfacing HBase with C# using thrift. I am
> currently writing a lightweight ORM style wrapper to make interfacing
> with data in HBase easier. I am currently trying to implement a
> scanner and I am running in to a problem.
>
> The scannerOpen function seems to always require a column list, wear
> as with the REST interface it can be left empty in which case all a
> rows columns are returned. If I provide an empty column list via
> Thrift no columns are returned.
>
> Is there something I am missing or this just a missing future with the
> thrift interface? I am running the 0.2 release.
>
> Charlie M
>