RE: Get addColumn + ColumnRangeFilter

2015-01-18 Thread Taeyun Kim
Thank you! In fact I've forgotten that there is FilterList. It works well! -Original Message- From: Ted Yu [mailto:yuzhih...@gmail.com] Sent: Monday, January 19, 2015 9:46 AM To: user@hbase.apache.org Subject: Re: Get addColumn + ColumnRangeFilter If the number of splits is gr

Re: Get addColumn + ColumnRangeFilter

2015-01-18 Thread Ted Yu
e- > From: Ted Yu [mailto:yuzhih...@gmail.com] > Sent: Saturday, January 17, 2015 6:31 AM > To: user@hbase.apache.org > Subject: Re: Get addColumn + ColumnRangeFilter > > To clarify what I meant, the test passes with the following change: > > Get g = new Get(RowKey); >

RE: Get addColumn + ColumnRangeFilter

2015-01-18 Thread Taeyun Kim
can be satisfied with single Get. Thanks again. -Original Message- From: Ted Yu [mailto:yuzhih...@gmail.com] Sent: Saturday, January 17, 2015 6:31 AM To: user@hbase.apache.org Subject: Re: Get addColumn + ColumnRangeFilter To clarify what I meant, the test passes with the following

Re: Get addColumn + ColumnRangeFilter

2015-01-16 Thread Ted Yu
> Files.readAllBytes()), must Get 'm' and unknown number of splits that has a >> name range(Result.csv.0 ~ Result.csv.7) to Get the whole content by single >> Get. (addColumn() + ColumnRangeFilter) >> But for the current HBase status, it seems that I have to invoke 2 Gets, >

Re: Get addColumn + ColumnRangeFilter

2015-01-16 Thread Ted Yu
r the current HBase status, it seems that I have to invoke 2 Gets, > or disable the version check. (Maybe not a big deal?) > > That's all. > > If you think that this Record is not efficient, or there is better > solution, please let me know. > > BTW, for the current stat

RE: Get addColumn + ColumnRangeFilter

2015-01-15 Thread Taeyun Kim
HBase' 'slow' scan speed relative to the HDFS sequential read is not a concern. -Original Message- From: Taeyun Kim [mailto:taeyun@innowireless.com] Sent: Friday, January 16, 2015 4:36 PM To: 'user@hbase.apache.org' Subject: RE: Get addColumn + ColumnRangeFil

RE: Get addColumn + ColumnRangeFilter

2015-01-15 Thread Taeyun Kim
hen both addColumn() and ColumnRangeFilter are applied, they are practically combined by 'AND' operator. Right? -Original Message- From: Ted Yu [mailto:yuzhih...@gmail.com] Sent: Friday, January 16, 2015 3:39 PM To: user@hbase.apache.org Subject: Re: Get addColumn + ColumnRange

Re: Get addColumn + ColumnRangeFilter

2015-01-15 Thread Ted Yu
umnRangeFilterTest2.testAddColumnWithColumnRangeFilter(): > Result is empty > > If the tests have problems, please let me know. > > > -Original Message- > From: Ted Yu [mailto:yuzhih...@gmail.com] > Sent: Thursday, January 15, 2015 6:59 PM > To: user@hbase.apache.org >

Re: Get addColumn + ColumnRangeFilter

2015-01-15 Thread Ted Yu
> > -Original Message- > From: Ted Yu [mailto:yuzhih...@gmail.com] > Sent: Thursday, January 15, 2015 6:59 PM > To: user@hbase.apache.org > Subject: Re: Get addColumn + ColumnRangeFilter > > Can you write a unit test which shows this behavior? > > Thanks >

RE: Get addColumn + ColumnRangeFilter

2015-01-15 Thread Taeyun Kim
l String ColumnFamilyName = "f"; static final byte[] ColumnFamilyNameBytes = Bytes.toBytes(ColumnFamilyName); static final byte[] RowKey = Bytes.toBytes("1234"); static final byte[] FirstColumnNameBytes = Bytes.toBytes("fc"); static final String Othe

Re: Get addColumn + ColumnRangeFilter

2015-01-15 Thread Ted Yu
Can you write a unit test which shows this behavior? Thanks > On Jan 14, 2015, at 9:09 PM, Taeyun Kim > wrote: > > Hi, > > > > I have a situation that both Get.addColumn() and Get.setFilter(new > ColumnRangeFilter(…)) needed to Get. > > The source code snippet is as follows: > > > >