|
|
+
sanky999 2012-05-04, 13:04
+
Yifeng Jiang 2012-05-07, 11:36
+
Bijieshan 2012-05-07, 11:51
+
sanky999 2012-05-07, 13:24
+
Bijieshan 2012-05-07, 15:01
+
Anoop Sam John 2012-05-08, 10:34
+
sanky999 2012-05-08, 11:40
+
Ramkrishna.S.Vasudevan 2012-05-08, 12:05
+
sanky999 2012-05-08, 12:44
+
Ramkrishna.S.Vasudevan 2012-05-09, 12:48
+
sanky999 2012-05-08, 06:46
-
RE: HBase Between FiltersAnoop Sam John 2012-05-09, 11:54
@Sanky
SingleColumnValueFilter filter1 = new SingleColumnValueFilter(Bytes.toBytes("TRAN"), Bytes.toBytes("TRAN_ID"), CompareFilter.CompareOp.GREATER, new BinaryComparator(Bytes.toBytes("1000"))); Are you sure you have used Bytes.toBytes(int) for storing? Here when you created the filter atleast I can see you passed 1000 as String to create the bytes. Pls make sure to use int and create the bytes both while storing the [Creation of Put] and when u create the filter and see once.... I have checked the BinaryComparator and it should work as per your expectation if you have used int in all places.... Bytes.toBytes(int) to be used every where when your column type is int... -Anoop- ________________________________________ From: sanky999 [[EMAIL PROTECTED]] Sent: Tuesday, May 08, 2012 12:16 PM To: [EMAIL PROTECTED] Subject: RE: HBase Between Filters When using org.apache.hadoop.hbase.client.Increment api it allows to addColumn with Long value, but there is no way to do the same using org.apache.hadoop.hbase.client.Put api and when I tried adding Long values using Put api it stores in\x0 format but when I try to retrieve it, it prints as unknown character. -- View this message in context: http://apache-hbase.679495.n3.nabble.com/HBase-Between-Filters-tp3962242p3970550.html Sent from the HBase - Developer mailing list archive at Nabble.com. +
sanky999 2012-05-09, 13:41
|