hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramesh.Ramasamy" <ramesh.ramas...@gmail.com>
Subject scanner.next returns null
Date Wed, 01 Jul 2009 07:10:32 GMT

Hi,

I'm trying to use any one of the RowFilterIntergace implementation, for
example PrefixRowFilter in my code.

('snpTbl' is the HTable reference)

int id = 3136824;
PrefixRowFilter prf = new PrefixRowFilter(Bytes.toBytes(id+1));
			
Scanner scanner = snpTbl.getScanner(Bytes.toByteArrays("info:"), 
	String.valueOf(id).getBytes(), 	prf);
			
RowResult snpRr = scanner.next();

I'm always getting the 'snpRr' as null, May some point me out what I am
doing wrong?

TIA,
Ramesh
-- 
View this message in context: http://www.nabble.com/scanner.next-returns-null-tp24285200p24285200.html
Sent from the HBase User mailing list archive at Nabble.com.


Mime
View raw message