当前位置: 首页>>代码示例>>Java>>正文


Java SortRowsMeta.setDirectory方法代码示例

本文整理汇总了Java中org.pentaho.di.trans.steps.sort.SortRowsMeta.setDirectory方法的典型用法代码示例。如果您正苦于以下问题:Java SortRowsMeta.setDirectory方法的具体用法?Java SortRowsMeta.setDirectory怎么用?Java SortRowsMeta.setDirectory使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.pentaho.di.trans.steps.sort.SortRowsMeta的用法示例。


在下文中一共展示了SortRowsMeta.setDirectory方法的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;
}
 
开发者ID:bsspirit,项目名称:kettle-4.4.0-stable,代码行数:33,代码来源:TestUtilities.java

示例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;
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:32,代码来源:TestUtilities.java

示例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;
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:34,代码来源:TestUtilities.java


注:本文中的org.pentaho.di.trans.steps.sort.SortRowsMeta.setDirectory方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。