// HKey interface implementation - low level interface (to be removed at some point)
@Override
public void copyTo (Key target) {
int columnIndex = 0;
PersistitKeyAppender appender = PersistitKeyAppender.create(target, rowType().table().getName() );
int maxSegments = Math.min(hKeySegments, rowType().hKey().segments().size());
for (int segment = 0; segment < maxSegments; segment++) {
appender.append(ordinals[segment]);
for (HKeyColumn column : rowType().hKey().segments().get(segment).columns()) {
if (this.values.get(columnIndex).hasAnyValue()) {
appender.append(this.values.get(columnIndex), column.column());
}
columnIndex++;
}
}
}