/** * Gets the current settings of the filter. * * @return an array of strings suitable for passing to setOptions */ @Override public String[] getOptions() { Vector<String> options = new Vector<String>(); options.add("-S"); options.add("" + getSplitPoint()); options.add("-C"); options.add("" + (getAttributeIndex())); if (!getNominalIndices().equals("")) { options.add("-L"); options.add(getNominalIndices()); } if (getInvertSelection()) { options.add("-V"); } if (getMatchMissingValues()) { options.add("-M"); } if (getModifyHeader()) { options.add("-H"); } if (getDontFilterAfterFirstBatch()) { options.add("-F"); } return options.toArray(new String[0]); }
/** * Gets the current settings of the filter. * * @return an array of strings suitable for passing to setOptions */ @Override public String[] getOptions() { Vector<String> options = new Vector<String>(); options.add("-S"); options.add("" + getSplitPoint()); options.add("-C"); options.add("" + (getAttributeIndex())); if (!getNominalIndices().equals("")) { options.add("-L"); options.add(getNominalIndices()); } if (getInvertSelection()) { options.add("-V"); } if (getMatchMissingValues()) { options.add("-M"); } if (getModifyHeader()) { options.add("-H"); } if (getDontFilterAfterFirstBatch()) { options.add("-F"); } return options.toArray(new String[0]); }