本文整理汇总了Java中org.pentaho.di.trans.steps.sort.SortRowsMeta.setAscending方法的典型用法代码示例。如果您正苦于以下问题:Java SortRowsMeta.setAscending方法的具体用法?Java SortRowsMeta.setAscending怎么用?Java SortRowsMeta.setAscending使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.trans.steps.sort.SortRowsMeta
的用法示例。
在下文中一共展示了SortRowsMeta.setAscending方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createSortRowsStep
import org.pentaho.di.trans.steps.sort.SortRowsMeta; //导入方法依赖的package包/类
/**
* Create and return a SortRows step.
*
* @param name
* @param sortFields[] Fields to sort by
* @param ascending[] Boolean indicating whether the corresponding field is to be sorted in ascending or descending order.
* @param caseSensitive[] Boolean indicating whether the corresponding field is to have case as a factor in the sort.
* @param directory The directory in the file system where the sort is to take place if it can't fit into memory?
* @param sortSize ???
* @param pluginRegistry The environment's Kettle plugin registry.
* @return
*/
public static synchronized StepMeta createSortRowsStep(String name,
String[] sortFields,
boolean[] ascending,
boolean[] caseSensitive,
String directory,
int sortSize,
PluginRegistry pluginRegistry) {
SortRowsMeta sortRowsMeta = new SortRowsMeta();
sortRowsMeta.setSortSize(Integer.toString(sortSize/10));
sortRowsMeta.setFieldName(sortFields);
sortRowsMeta.setAscending(ascending);
sortRowsMeta.setCaseSensitive(caseSensitive);
sortRowsMeta.setDirectory(directory);
String sortRowsStepPid = pluginRegistry.getPluginId(StepPluginType.class, sortRowsMeta);
StepMeta sortRowsStep = new StepMeta(sortRowsStepPid, name, (StepMetaInterface)sortRowsMeta);
return sortRowsStep;
}
示例2: createSortRowsStep
import org.pentaho.di.trans.steps.sort.SortRowsMeta; //导入方法依赖的package包/类
/**
* Create and return a SortRows step.
*
* @param name
* @param sortFields [] Fields to sort by
* @param ascending [] Boolean indicating whether the corresponding field is to be sorted in ascending or
* descending order.
* @param caseSensitive [] Boolean indicating whether the corresponding field is to have case as a factor in the
* sort.
* @param directory The directory in the file system where the sort is to take place if it can't fit into
* memory?
* @param sortSize ???
* @param pluginRegistry The environment's Kettle plugin registry.
* @return
*/
public static synchronized StepMeta createSortRowsStep( String name, String[] sortFields, boolean[] ascending,
boolean[] caseSensitive, String directory, int sortSize,
PluginRegistry pluginRegistry ) {
SortRowsMeta sortRowsMeta = new SortRowsMeta();
sortRowsMeta.setSortSize( Integer.toString( sortSize / 10 ) );
sortRowsMeta.setFieldName( sortFields );
sortRowsMeta.setAscending( ascending );
sortRowsMeta.setCaseSensitive( caseSensitive );
sortRowsMeta.setDirectory( directory );
String sortRowsStepPid = pluginRegistry.getPluginId( StepPluginType.class, sortRowsMeta );
StepMeta sortRowsStep = new StepMeta( sortRowsStepPid, name, sortRowsMeta );
return sortRowsStep;
}
示例3: createSortRowsStep
import org.pentaho.di.trans.steps.sort.SortRowsMeta; //导入方法依赖的package包/类
/**
* Create and return a SortRows step.
*
* @param name
* @param sortFields
* [] Fields to sort by
* @param ascending
* [] Boolean indicating whether the corresponding field is to be sorted in ascending or descending order.
* @param caseSensitive
* [] Boolean indicating whether the corresponding field is to have case as a factor in the sort.
* @param directory
* The directory in the file system where the sort is to take place if it can't fit into memory?
* @param sortSize
* ???
* @param pluginRegistry
* The environment's Kettle plugin registry.
* @return
*/
public static synchronized StepMeta createSortRowsStep( String name, String[] sortFields, boolean[] ascending,
boolean[] caseSensitive, String directory, int sortSize, PluginRegistry pluginRegistry ) {
SortRowsMeta sortRowsMeta = new SortRowsMeta();
sortRowsMeta.setSortSize( Integer.toString( sortSize / 10 ) );
sortRowsMeta.setFieldName( sortFields );
sortRowsMeta.setAscending( ascending );
sortRowsMeta.setCaseSensitive( caseSensitive );
sortRowsMeta.setDirectory( directory );
String sortRowsStepPid = pluginRegistry.getPluginId( StepPluginType.class, sortRowsMeta );
StepMeta sortRowsStep = new StepMeta( sortRowsStepPid, name, sortRowsMeta );
return sortRowsStep;
}