org.apache.hadoop.hbase.client.tableindexed
Interface IndexKeyGenerator

All Superinterfaces:
org.apache.hadoop.io.Writable
All Known Implementing Classes:
SimpleIndexKeyGenerator

public interface IndexKeyGenerator
extends org.apache.hadoop.io.Writable

Interface for generating an index-row-key from a row in the base table.


Method Summary
 byte[] createIndexKey(byte[] rowKey, Map<byte[],byte[]> columns)
          Create an index key from a base row.
 
Methods inherited from interface org.apache.hadoop.io.Writable
readFields, write
 

Method Detail

createIndexKey

byte[] createIndexKey(byte[] rowKey,
                      Map<byte[],byte[]> columns)
Create an index key from a base row.

Parameters:
rowKey - the row key of the base row
columns - the columns in the base row
Returns:
the row key in the indexed row.


Copyright © 2009 The Apache Software Foundation