Java 类org.apache.hadoop.hbase.util.LoadTestDataGeneratorWithTags 实例源码

项目:ditb    文件:IntegrationTestIngestWithTags.java   
@Override
protected String[] getArgsForLoadTestTool(String mode, String modeSpecificArg, long startKey,
    long numKeys) {
  String[] args = super.getArgsForLoadTestTool(mode, modeSpecificArg, startKey, numKeys);
  List<String> tmp = new ArrayList<String>(Arrays.asList(args));
  // LoadTestDataGeneratorWithTags:minNumTags:maxNumTags:minTagLength:maxTagLength
  tmp.add(HIPHEN + LoadTestTool.OPT_GENERATOR);
  StringBuilder sb = new StringBuilder(LoadTestDataGeneratorWithTags.class.getName());
  sb.append(COLON);
  sb.append(minTagsPerKey);
  sb.append(COLON);
  sb.append(maxTagsPerKey);
  sb.append(COLON);
  sb.append(minTagLength);
  sb.append(COLON);
  sb.append(maxTagLength);
  tmp.add(sb.toString());
  return tmp.toArray(new String[tmp.size()]);
}
项目:HIndex    文件:IntegrationTestIngestWithTags.java   
@Override
protected String[] getArgsForLoadTestTool(String mode, String modeSpecificArg, long startKey,
    long numKeys) {
  String[] args = super.getArgsForLoadTestTool(mode, modeSpecificArg, startKey, numKeys);
  List<String> tmp = new ArrayList<String>(Arrays.asList(args));
  // LoadTestDataGeneratorWithTags:minNumTags:maxNumTags:minTagLength:maxTagLength
  tmp.add(HIPHEN + LoadTestTool.OPT_GENERATOR);
  StringBuilder sb = new StringBuilder(LoadTestDataGeneratorWithTags.class.getName());
  sb.append(COLON);
  sb.append(minTagsPerKey);
  sb.append(COLON);
  sb.append(maxTagsPerKey);
  sb.append(COLON);
  sb.append(minTagLength);
  sb.append(COLON);
  sb.append(maxTagLength);
  tmp.add(sb.toString());
  return tmp.toArray(new String[tmp.size()]);
}
项目:hbase    文件:IntegrationTestIngestWithTags.java   
@Override
protected String[] getArgsForLoadTestTool(String mode, String modeSpecificArg, long startKey,
    long numKeys) {
  String[] args = super.getArgsForLoadTestTool(mode, modeSpecificArg, startKey, numKeys);
  List<String> tmp = new ArrayList<>(Arrays.asList(args));
  // LoadTestDataGeneratorWithTags:minNumTags:maxNumTags:minTagLength:maxTagLength
  tmp.add(HIPHEN + LoadTestTool.OPT_GENERATOR);
  StringBuilder sb = new StringBuilder(LoadTestDataGeneratorWithTags.class.getName());
  sb.append(COLON);
  sb.append(minTagsPerKey);
  sb.append(COLON);
  sb.append(maxTagsPerKey);
  sb.append(COLON);
  sb.append(minTagLength);
  sb.append(COLON);
  sb.append(maxTagLength);
  tmp.add(sb.toString());
  return tmp.toArray(new String[tmp.size()]);
}
项目:PyroDB    文件:IntegrationTestIngestWithTags.java   
@Override
protected String[] getArgsForLoadTestTool(String mode, String modeSpecificArg, long startKey,
    long numKeys) {
  String[] args = super.getArgsForLoadTestTool(mode, modeSpecificArg, startKey, numKeys);
  List<String> tmp = new ArrayList<String>(Arrays.asList(args));
  // LoadTestDataGeneratorWithTags:minNumTags:maxNumTags:minTagLength:maxTagLength
  tmp.add(HIPHEN + LoadTestTool.OPT_GENERATOR);
  StringBuilder sb = new StringBuilder(LoadTestDataGeneratorWithTags.class.getName());
  sb.append(COLON);
  sb.append(minTagsPerKey);
  sb.append(COLON);
  sb.append(maxTagsPerKey);
  sb.append(COLON);
  sb.append(minTagLength);
  sb.append(COLON);
  sb.append(maxTagLength);
  tmp.add(sb.toString());
  return tmp.toArray(new String[tmp.size()]);
}