I'll add javadoc for IndexKeyGenerator for 0.20. -Read the package javadoc in client.tableindexed. -Have a look at the implementing class (SimpleindexKeyGenerator) for how its used. -Look at the test for more perspective.
On Sun, Jun 21, 2009 at 10:52 PM, schnitzi <[email protected]>wrote: > > I've created a table with an index, and now I want to search on it. It's > an > IndexedTable, so I'm trying to call... > > getIndexedScanner(String indexId, byte[] indexStartRow, byte[][] > indexColumns, RowFilterInterface indexFilter, byte[][] baseColumns) > > ...on it, without success. It seems the key I'm passing in doesn't match. > The javadoc of this method says that the indexStartRow for this is "created > from the IndexKeyGenerator", but the javadoc on IndexKeyGenerator is > nonexistent. There's a method > > createIndexKey(byte[] rowKey, Map<byte[],byte[]> columns) > > on it, but it's not at all clear what that second parameter "columns" is > supposed to be. Can someone post a code example which uses this stuff? > > adTHANKSvance, > Mark > -- > View this message in context: > http://www.nabble.com/Example-of-searching-via-index--tp24142062p24142062.html > Sent from the HBase User mailing list archive at Nabble.com. > >
