@Override protected void validateFlags() throws Exception { super.validateFlags(); if (mMapperName.isEmpty()) { throw new RequiredFlagException("mapper"); } }
@Override protected void validateFlags() throws Exception { super.validateFlags(); if (mGathererName.isEmpty()) { throw new RequiredFlagException("gatherer"); } }
throw new RequiredFlagException("input"); throw new RequiredFlagException("importer"); throw new RequiredFlagException("output");
/** {@inheritDoc} */ @Override protected void validateFlags() throws Exception { // Parse --input and --output flags: // --input is guaranteed to be a Fiji table, --output is not. super.validateFlags(); if (mInputFlag.isEmpty()) { throw new RequiredFlagException("input"); } if (mPivoter.isEmpty()) { throw new RequiredFlagException("pivoter"); } if (mOutputFlag.isEmpty()) { throw new RequiredFlagException("output"); } final MapReduceJobOutput mrJobOutput = MapReduceJobOutputFactory.create().fromSpaceSeparatedMap(mOutputFlag); Preconditions.checkArgument(mrJobOutput instanceof FijiTableMapReduceJobOutput, "Pivot jobs output format must be 'hfile' or 'fiji', but got output spec '%s'.", mOutputFlag); mOutput = (FijiTableMapReduceJobOutput) mrJobOutput; Preconditions.checkArgument(mOutput.getOutputTableURI().getTable() != null, "Specify the table to import data into with --output=..."); }