private Iterator readFromIS()

in bigquery-antipattern-recognition/src/main/java/com/google/zetasql/toolkit/antipattern/cmd/AntiPatternCommandParser.java [369:394]


  private Iterator<InputQuery> readFromIS() throws InterruptedException, IOException {
    logger.info("Using INFORMATION_SCHEMA as input source");
    String processingProjectId = cmd.getOptionValue(PROCESSING_PROJECT_ID_OPTION_NAME);
    String infoSchemaDays = cmd.getOptionValue(READ_FROM_INFO_SCHEMA_DAYS_OPTION_NAME);
    String infoSchemaTableName = cmd.getOptionValue(READ_FROM_INFO_SCHEMA_TABLE_OPTION_NAME);
    String infoSchemaSlotmsMin = cmd.getOptionValue(INFO_SCHEMA_MIN_SLOTMS);
    String timeoutInSecs = cmd.getOptionValue(READ_FROM_INFO_SCHEMA_TIMEOUT_IN_SECS_OPTION_NAME);
    String infoSchemaStartTime = cmd.getOptionValue(READ_FROM_INFO_SCHEMA_START_TIME_OPTION_NAME);
    String infoSchemaEndTime = cmd.getOptionValue(READ_FROM_INFO_SCHEMA_END_TIME_OPTION_NAME);
    String customTopNPercent = cmd.getOptionValue(IS_TOP_N_PERC_JOBS_OPTION_NAME);
    String region = cmd.getOptionValue(INFO_SCHEMA_REGION);
    String infoSchemaProject = cmd.getOptionValue(INFO_SCHEMA_PROJECT);

    return new InformationSchemaQueryIterable(
        processingProjectId,
        infoSchemaDays,
        infoSchemaStartTime,
        infoSchemaEndTime,
        infoSchemaTableName,
        infoSchemaSlotmsMin,
        timeoutInSecs,
        customTopNPercent,
        region,
        infoSchemaProject,
        getServiceAccountKeyfilePath());
  }