@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()]); }
@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()]); }