/** * Program entry point. * * @param args The command-line arguments. * @throws Exception If there is an error. */ public static void main(String[] args) throws Exception { System.exit(new FijiToolLauncher().run(new ScanTool(), args)); } }
getPrintStream().printf("URI must be specified as an argument%n"); return FAILURE; } else if (nonFlagArgs.size() > 1) { getPrintStream().printf("Too many arguments: %s%n", nonFlagArgs); return FAILURE; getPrintStream().printf("--max-rows must be nonnegative, got %d%n", mMaxRows); return FAILURE; getPrintStream().printf("--max-versions must be positive, got %d%n", mMaxVersions); return FAILURE; getPrintStream().printf("Specify a cluster, instance, and " + "table with argument fiji://zkhost/instance/table%n"); return FAILURE; getPrintStream().printf("--timestamp must be like [0-9]*..[0-9]*, instead got '%s'%n", mTimestamp); return FAILURE; final Fiji fiji = Fiji.Factory.open(argURI, getConf()); try { final FijiTable table = fiji.openTable(argURI.getTable()); ? ToolUtils.createEntityIdFromUserInputs(mLimitRowFlag, tableLayout) : null; getPrintStream().println("Scanning fiji table: " + argURI); if (startRow != null && hasVerboseDebug()) {
break; if (hasVerboseDebug() && (!row.getEntityId().toShellString().startsWith("hbase="))) { getPrintStream().printf("entity-id=%s%s%n", ToolUtils.HBASE_ROW_KEY_SPEC_PREFIX, Bytes.toStringBinary((row.getEntityId().getHBaseRowKey()))); ToolUtils.printRow(row, mapTypeFamilies, groupTypeColumns, getPrintStream());