本文整理汇总了Java中org.pentaho.di.core.row.ValueMetaInterface.setSortedDescending方法的典型用法代码示例。如果您正苦于以下问题:Java ValueMetaInterface.setSortedDescending方法的具体用法?Java ValueMetaInterface.setSortedDescending怎么用?Java ValueMetaInterface.setSortedDescending使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.core.row.ValueMetaInterface
的用法示例。
在下文中一共展示了ValueMetaInterface.setSortedDescending方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getFields
import org.pentaho.di.core.row.ValueMetaInterface; //导入方法依赖的package包/类
public void getFields(RowMetaInterface inputRowMeta, String name, RowMetaInterface[] info, StepMeta nextStep, VariableSpace space) 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]);
// 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);
}
}
}
示例2: getFields
import org.pentaho.di.core.row.ValueMetaInterface; //导入方法依赖的package包/类
public void getFields(RowMetaInterface inputRowMeta, String name, RowMetaInterface[] info, StepMeta nextStep, VariableSpace space) 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]);
// TODO: add case insensivity
}
}
}
示例3: getFields
import org.pentaho.di.core.row.ValueMetaInterface; //导入方法依赖的package包/类
public void getFields(RowMetaInterface rowMeta, String origin, RowMetaInterface[] info, StepMeta nextStep, VariableSpace space) throws KettleStepException
{
// Clear the sortedDescending flag on fields used within the condition - otherwise the comparisons will be inverted!!
String conditionField[] = condition.getUsedFields();
for (int i=0;i<conditionField.length;i++)
{
int idx = rowMeta.indexOfValue(conditionField[i]);
if (idx>=0)
{
ValueMetaInterface valueMeta = rowMeta.getValueMeta(idx);
valueMeta.setSortedDescending(false);
}
}
}