@Override
public void translateToColumn(InfoForIndex<TypedRow> info) {
TypedRow entity = info.getEntity();
RowToPersist row = info.getRow();
Column col = new Column();
TypedColumn column = entity.getColumn(getColumnName());
byte[] byteVal = convertToStorage2(column.getValue());
byte[] prefix = StandardConverters.convertToBytes(getColumnName());
byte[] pkData = byteVal;
byte[] name = new byte[prefix.length + pkData.length];
for(int i = 0; i < name.length; i++) {
if(i < prefix.length)
name[i] = prefix[i];
else
name[i] = pkData[i-prefix.length];
}
col.setName(name);
row.getColumns().add(col);
Object primaryKey = column.getValue();
addIndexInfo(info, primaryKey, byteVal);
removeIndexInfo(info, primaryKey, byteVal);
}