public void getFields( RowMetaInterface inputRowMeta, String name, RowMetaInterface[] info, StepMeta nextStep, VariableSpace space, Repository repository, IMetaStore metaStore) throws KettleStepException { // Set the sorted properties: ascending/descending for (int i = 0; i < fieldName.length; i++) { int idx = inputRowMeta.indexOfValue(fieldName[i]); if (idx >= 0) { ValueMetaInterface valueMeta = inputRowMeta.getValueMeta(idx); valueMeta.setSortedDescending(!ascending[i]); valueMeta.setCaseInsensitive(!caseSensitive[i]); valueMeta.setCollatorDisabled(!collatorEnabled[i]); valueMeta.setCollatorStrength(collatorStrength[i]); // Also see if lazy conversion is active on these key fields. // If so we want to automatically convert them to the normal storage type. // This will improve performance, see also: PDI-346 // valueMeta.setStorageType(ValueMetaInterface.STORAGE_TYPE_NORMAL); valueMeta.setStorageMetadata(null); } } }