private Object[] key(Key key, RowDef rowDef)
{
// Key traversal
int keySize = key.getDepth();
// HKey traversal
HKey hKey = rowDef.table().hKey();
List<HKeySegment> hKeySegments = hKey.segments();
int k = 0;
// Traverse key, guided by hKey, populating result
Object[] keyArray = new Object[keySize];
int h = 0;
key.indexTo(0);