hbase-trx / hbase-transactional-tableindexed

Transactional and indexing extensions for hbase
http://wiki.github.com/hbase-trx/hbase-transactional-tableindexed/
73 stars 19 forks source link

Scanner result.getValue returns null for indexed scan #5

Open andrewbaxter opened 13 years ago

andrewbaxter commented 13 years ago

Using a scanner constructed like: ResultScanner scanner = table.getIndexedScanner(indexId, indexKey, null, null, null, baseColumns.toArray(new byte[baseColumns.size()][]));

Doing result.getValue for any field returned null. I confirmed the values were in the result by walking the map from getNoVersionMap.

Commenting out: for (KeyValue indexKV : row.list()) { if (indexKV.matchingFamily(INDEX_COL_FAMILY)) { continue; } results.add(new KeyValue(baseRow, indexKV.getFamily(), indexKV.getQualifier(), indexKV .getTimestamp(), KeyValue.Type.Put, indexKV.getValue())); } from IndexedTable.java solved the problem. I think those are lines 188-194.

jameskennedy commented 13 years ago

Ok, i will address this soon.