/** {@inheritDoc} */ @Override protected void validateFlags() throws Exception { super.validateFlags(); Preconditions.checkArgument((mFijiURIFlag != null) && !mFijiURIFlag.isEmpty(), "Specify a Fiji instance with --fiji=fiji://hbase-address/fiji-instance"); mFijiURI = FijiURI.newBuilder(mFijiURIFlag).build(); }
/** {@inheritDoc} */ @Override protected void validateFlags() throws Exception { super.validateFlags(); Preconditions.checkArgument((mTargetURIFlag != null) && !mTargetURIFlag.isEmpty(), "Specify a target Fiji instance or table " + "with --target=fiji://hbase-adress/fiji-instance[/table]."); mTargetURI = FijiURI.newBuilder(mTargetURIFlag).build(); Preconditions.checkArgument(mFlushMeta || (mTargetURI.getTable() != null), "Specify a table with --fiji=fiji://hbase-cluster/fiji-instance/table" + " and/or specify a flush of metadata with --meta."); }
/** {@inheritDoc} */ @Override protected void validateFlags() throws Exception { super.validateFlags(); Preconditions.checkArgument((mTableURIFlag != null) && !mTableURIFlag.isEmpty(), "Specify the table to create with --table=fiji://hbase-address/fiji-instance/table"); mTableURI = FijiURI.newBuilder(mTableURIFlag).build(); Preconditions.checkArgument((mLayout != null) && !mLayout.isEmpty(), "Specify the table layout with --layout=/path/to/table-layout.json"); if ((mNumRegionsFlag != null) && !mNumRegionsFlag.isEmpty()) { mNumRegions = Integer.parseInt(mNumRegionsFlag); Preconditions.checkArgument(mNumRegions >= 1, "Invalid initial number of regions {}, must be >= 1.", mNumRegions); } else if ((mSplitKeyFilePath == null) || mSplitKeyFilePath.isEmpty()) { // No region split specified, defaults to 1: mNumRegions = 1; } }
/** {@inheritDoc} */ @Override protected void validateFlags() throws Exception { super.validateFlags(); Preconditions.checkArgument((mTableURIFlag != null) && !mTableURIFlag.isEmpty(), "Specify the table to bulk-load into with " + "--table=fiji://hbase-address/fiji-instance/table"); mTableURI = FijiURI.newBuilder(mTableURIFlag).build(); Preconditions.checkArgument(mTableURI.getTable() != null, "Specify the table to bulk-load into with " + "--table=fiji://hbase-address/fiji-instance/table"); Preconditions.checkArgument((mHFileFlag != null) && !mHFileFlag.isEmpty(), "Specify the HFiles to bulk-load. " + "E.g. --hfile=hdfs://hdfs-cluster-address/path/to/hfile.dir/"); mHFile = new Path(mHFileFlag); }
@Override protected void validateFlags() throws Exception { super.validateFlags(); mTableURI = FijiURI.newBuilder(mFijiURIFlag).build(); }
/** {@inheritDoc} */ @Override protected void validateFlags() throws Exception { super.validateFlags(); Preconditions.checkArgument((mTableURIFlag != null) && !mTableURIFlag.isEmpty(), "Specify a target table to write synthesized data to with " + "--table=fiji://hbase-address/fiji-instance/table"); mTableURI = FijiURI.newBuilder(mTableURIFlag).build(); Preconditions.checkArgument(mTableURI.getTable() != null, "No table specified in target URI '%s'. " + "Specify a target table to write synthesized data to with " + "--table=fiji://hbase-address/fiji-instance/table", mTableURI); }
validateFlags(); boolean exceptionThrown = false; int returnFlag = FAILURE;