recordFactory = new RecordFactory(kLen, vLen) ;
int N = colMap.length() ;
if ( kLen%N != 0 )
throw new RecordException("Key length is not a multiple of the number of slots") ;
int itemLen = kLen/N ;
Record record2 = recordFactory.create() ;
byte[] k = record2.getKey() ;
for ( int i = 0 ; i < N ; i++ )
{
int j = colMap.mapSlotIdx(i) ;
System.arraycopy(record.getKey(), i*itemLen, record2.getKey(), j*itemLen, itemLen) ;
}
if ( vLen != 0 )
System.arraycopy(record.getValue(), 0, record2.getValue(), 0, vLen) ;
return record2 ;
}