test_class.declarator: DEFAULT_PROJECT_ID = "google.com:my-project"
test_class.modifier: private static final
test_class.original_string: private static final String DEFAULT_PROJECT_ID = "google.com:my-project";
test_class.type: String
test_class.var_name: DEFAULT_PROJECT_ID
test_class.declarator: TEST_PROJECT_ID = "domain:project"
test_class.modifier: private static final
test_class.original_string: private static final String TEST_PROJECT_ID = "domain:project";
test_class.type: String
test_class.var_name: TEST_PROJECT_ID
test_class.declarator: TEST_LOAD_PROJECT_ID = "domain:load-project"
test_class.modifier: private static final
test_class.original_string: private static final String TEST_LOAD_PROJECT_ID = "domain:load-project";
test_class.type: String
test_class.var_name: TEST_LOAD_PROJECT_ID
test_class.declarator: TEST_DATASET_ID = "dataset"
test_class.modifier: private static final
test_class.original_string: private static final String TEST_DATASET_ID = "dataset";
test_class.type: String
test_class.var_name: TEST_DATASET_ID
test_class.declarator: TEST_TABLE_ID = "table"
test_class.modifier: private static final
test_class.original_string: private static final String TEST_TABLE_ID = "table";
test_class.type: String
test_class.var_name: TEST_TABLE_ID
test_class.declarator: QUALIFIED_TABLE_ID =
        String.format("%s:%s.%s", TEST_PROJECT_ID, TEST_DATASET_ID, TEST_TABLE_ID)
test_class.modifier: private static final
test_class.original_string: private static final String QUALIFIED_TABLE_ID =
        String.format("%s:%s.%s", TEST_PROJECT_ID, TEST_DATASET_ID, TEST_TABLE_ID);
test_class.type: String
test_class.var_name: QUALIFIED_TABLE_ID
test_class.declarator: QUALIFIED_TABLE_ID_WITHOUT_PROJECT =
        String.format("%s.%s", TEST_DATASET_ID, TEST_TABLE_ID)
test_class.modifier: private static final
test_class.original_string: private static final String QUALIFIED_TABLE_ID_WITHOUT_PROJECT =
        String.format("%s.%s", TEST_DATASET_ID, TEST_TABLE_ID);
test_class.type: String
test_class.var_name: QUALIFIED_TABLE_ID_WITHOUT_PROJECT
test_class.declarator: TEST_TABLE_REF =
        new TableReference()
            .setProjectId(TEST_PROJECT_ID)
            .setDatasetId(TEST_DATASET_ID)
            .setTableId(TEST_TABLE_ID)
test_class.modifier: private static final
test_class.original_string: private static final TableReference TEST_TABLE_REF =
        new TableReference()
            .setProjectId(TEST_PROJECT_ID)
            .setDatasetId(TEST_DATASET_ID)
            .setTableId(TEST_TABLE_ID);
test_class.type: TableReference
test_class.var_name: TEST_TABLE_REF
test_class.declarator: TEST_OUTPUT_PATH_STRING = "gs://test_bucket/test_directory"
test_class.modifier: private static final
test_class.original_string: private static final String TEST_OUTPUT_PATH_STRING = "gs://test_bucket/test_directory";
test_class.type: String
test_class.var_name: TEST_OUTPUT_PATH_STRING
test_class.declarator: TEST_FILE_FORMAT =
        BigQueryFileFormat.NEWLINE_DELIMITED_JSON
test_class.modifier: private static final
test_class.original_string: private static final BigQueryFileFormat TEST_FILE_FORMAT =
        BigQueryFileFormat.NEWLINE_DELIMITED_JSON;
test_class.type: BigQueryFileFormat
test_class.var_name: TEST_FILE_FORMAT
test_class.declarator: TEST_OUTPUT_CLASS = TextOutputFormat.class
test_class.modifier: @SuppressWarnings("rawtypes")
    private static final
test_class.original_string: @SuppressWarnings("rawtypes")
    private static final Class<? extends FileOutputFormat> TEST_OUTPUT_CLASS = TextOutputFormat.class;
test_class.type: Class<? extends FileOutputFormat>
test_class.var_name: TEST_OUTPUT_CLASS
test_class.declarator: TEST_TABLE_SCHEMA =
        new BigQueryTableSchema()
            .setFields(
                ImmutableList.of(
                    new BigQueryTableFieldSchema().setName("A").setType("STRING"),
                    new BigQueryTableFieldSchema().setName("B").setType("INTEGER")))
test_class.modifier: private static final
test_class.original_string: private static final BigQueryTableSchema TEST_TABLE_SCHEMA =
        new BigQueryTableSchema()
            .setFields(
                ImmutableList.of(
                    new BigQueryTableFieldSchema().setName("A").setType("STRING"),
                    new BigQueryTableFieldSchema().setName("B").setType("INTEGER")));
test_class.type: BigQueryTableSchema
test_class.var_name: TEST_TABLE_SCHEMA
test_class.declarator: TEST_TABLE_SCHEMA_STRING =
        "[{\"name\":\"A\",\"type\":\"STRING\"},{\"name\":\"B\",\"type\":\"INTEGER\"}]"
test_class.modifier: private static final
test_class.original_string: private static final String TEST_TABLE_SCHEMA_STRING =
        "[{\"name\":\"A\",\"type\":\"STRING\"},{\"name\":\"B\",\"type\":\"INTEGER\"}]";
test_class.type: String
test_class.var_name: TEST_TABLE_SCHEMA_STRING
test_class.declarator: TEST_BAD_TABLE_SCHEMA_STRING =
        "[{\"name\":\"A\",\"type\":\"STRING\"},{'name':\"B\",\"type\":\"INTEGER\"}]"
test_class.modifier: private static final
test_class.original_string: private static final String TEST_BAD_TABLE_SCHEMA_STRING =
        "[{\"name\":\"A\",\"type\":\"STRING\"},{'name':\"B\",\"type\":\"INTEGER\"}]";
test_class.type: String
test_class.var_name: TEST_BAD_TABLE_SCHEMA_STRING
test_class.declarator: conf
test_class.modifier: private static
test_class.original_string: private static Configuration conf;
test_class.type: Configuration
test_class.var_name: conf
test_class.declarator: mockJobID
test_class.modifier: @Mock private
test_class.original_string: @Mock private JobID mockJobID;
test_class.type: JobID
test_class.var_name: mockJobID
test_class.file: bigquery/src/test/java/com/google/cloud/hadoop/io/bigquery/output/BigQueryOutputConfigurationTest.java
test_class.identifier: BigQueryOutputConfigurationTest
test_case.body: @Test
    public void testConfigureWithAutoSchema() throws IOException {
      BigQueryOutputConfiguration.configureWithAutoSchema(
          conf, QUALIFIED_TABLE_ID, TEST_OUTPUT_PATH_STRING, TEST_FILE_FORMAT, TEST_OUTPUT_CLASS);
  
      assertThat(BigQueryConfiguration.OUTPUT_PROJECT_ID.get(conf, conf::get))
          .isEqualTo(TEST_PROJECT_ID);
      assertThat(BigQueryConfiguration.OUTPUT_DATASET_ID.get(conf, conf::get))
          .isEqualTo(TEST_DATASET_ID);
      assertThat(BigQueryConfiguration.OUTPUT_TABLE_ID.get(conf, conf::get)).isEqualTo(TEST_TABLE_ID);
      assertThat(BigQueryConfiguration.OUTPUT_FILE_FORMAT.get(conf, conf::get))
          .isEqualTo(TEST_FILE_FORMAT.name());
      assertThat(BigQueryConfiguration.OUTPUT_FORMAT_CLASS.get(conf, conf::getClass))
          .isEqualTo(TEST_OUTPUT_CLASS);
      assertThat(BigQueryConfiguration.OUTPUT_TABLE_SCHEMA.get(conf, conf::get)).isNull();
      assertThat(BigQueryOutputConfiguration.getGcsOutputPath(conf).toString())
          .isEqualTo(TEST_OUTPUT_PATH_STRING);
    }
test_case.class_method_signature: BigQueryOutputConfigurationTest.testConfigureWithAutoSchema()
test_case.full_signature: @Test public void testConfigureWithAutoSchema()
test_case.identifier: testConfigureWithAutoSchema
test_case.invocations: configureWithAutoSchema isEqualTo assertThat get isEqualTo assertThat get isEqualTo assertThat get isEqualTo assertThat get name isEqualTo assertThat get isNull assertThat get isEqualTo assertThat toString getGcsOutputPath
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testConfigureWithAutoSchema()
focal_class.declarator: REQUIRED_PROPERTIES =
        ImmutableList.of(OUTPUT_DATASET_ID, OUTPUT_TABLE_ID, OUTPUT_FILE_FORMAT, OUTPUT_FORMAT_CLASS)
focal_class.modifier: public static final
focal_class.original_string: public static final List<HadoopConfigurationProperty<?>> REQUIRED_PROPERTIES =
        ImmutableList.of(OUTPUT_DATASET_ID, OUTPUT_TABLE_ID, OUTPUT_FILE_FORMAT, OUTPUT_FORMAT_CLASS);
focal_class.type: List<HadoopConfigurationProperty<?>>
focal_class.var_name: REQUIRED_PROPERTIES
focal_class.file: bigquery/src/main/java/com/google/cloud/hadoop/io/bigquery/output/BigQueryOutputConfiguration.java
focal_class.identifier: BigQueryOutputConfiguration
focal_class.class_method_signature: BigQueryOutputConfiguration.configure(
        Configuration conf,
        String qualifiedOutputTableId,
        String outputTableSchemaJson,
        String outputGcsPath,
        BigQueryFileFormat outputFileFormat,
        Class<? extends FileOutputFormat> outputFormatClass)
focal_class.full_signature: @SuppressWarnings("rawtypes") public static void configure(
        Configuration conf,
        String qualifiedOutputTableId,
        String outputTableSchemaJson,
        String outputGcsPath,
        BigQueryFileFormat outputFileFormat,
        Class<? extends FileOutputFormat> outputFormatClass)
focal_class.identifier: configure
focal_class.modifiers: @SuppressWarnings("rawtypes") public static
focal_class.parameters: (
        Configuration conf,
        String qualifiedOutputTableId,
        String outputTableSchemaJson,
        String outputGcsPath,
        BigQueryFileFormat outputFileFormat,
        Class<? extends FileOutputFormat> outputFormatClass)
focal_class.return: void
focal_class.signature: void configure(
        Configuration conf,
        String qualifiedOutputTableId,
        String outputTableSchemaJson,
        String outputGcsPath,
        BigQueryFileFormat outputFileFormat,
        Class<? extends FileOutputFormat> outputFormatClass)
focal_class.class_method_signature: BigQueryOutputConfiguration.configure(
        Configuration conf,
        String outputProjectId,
        String outputDatasetId,
        String outputTableId,
        Optional<String> outputTableSchemaJson,
        String outputGcsPath,
        BigQueryFileFormat outputFileFormat,
        Class<? extends FileOutputFormat> outputFormatClass)
focal_class.full_signature: @SuppressWarnings("rawtypes") private static void configure(
        Configuration conf,
        String outputProjectId,
        String outputDatasetId,
        String outputTableId,
        Optional<String> outputTableSchemaJson,
        String outputGcsPath,
        BigQueryFileFormat outputFileFormat,
        Class<? extends FileOutputFormat> outputFormatClass)
focal_class.identifier: configure
focal_class.modifiers: @SuppressWarnings("rawtypes") private static
focal_class.parameters: (
        Configuration conf,
        String outputProjectId,
        String outputDatasetId,
        String outputTableId,
        Optional<String> outputTableSchemaJson,
        String outputGcsPath,
        BigQueryFileFormat outputFileFormat,
        Class<? extends FileOutputFormat> outputFormatClass)
focal_class.return: void
focal_class.signature: void configure(
        Configuration conf,
        String outputProjectId,
        String outputDatasetId,
        String outputTableId,
        Optional<String> outputTableSchemaJson,
        String outputGcsPath,
        BigQueryFileFormat outputFileFormat,
        Class<? extends FileOutputFormat> outputFormatClass)
focal_class.class_method_signature: BigQueryOutputConfiguration.configure(
        Configuration conf,
        String qualifiedOutputTableId,
        BigQueryTableSchema outputTableSchema,
        String outputGcsPath,
        BigQueryFileFormat outputFileFormat,
        Class<? extends FileOutputFormat> outputFormatClass)
focal_class.full_signature: @SuppressWarnings("rawtypes") public static void configure(
        Configuration conf,
        String qualifiedOutputTableId,
        BigQueryTableSchema outputTableSchema,
        String outputGcsPath,
        BigQueryFileFormat outputFileFormat,
        Class<? extends FileOutputFormat> outputFormatClass)
focal_class.identifier: configure
focal_class.modifiers: @SuppressWarnings("rawtypes") public static
focal_class.parameters: (
        Configuration conf,
        String qualifiedOutputTableId,
        BigQueryTableSchema outputTableSchema,
        String outputGcsPath,
        BigQueryFileFormat outputFileFormat,
        Class<? extends FileOutputFormat> outputFormatClass)
focal_class.return: void
focal_class.signature: void configure(
        Configuration conf,
        String qualifiedOutputTableId,
        BigQueryTableSchema outputTableSchema,
        String outputGcsPath,
        BigQueryFileFormat outputFileFormat,
        Class<? extends FileOutputFormat> outputFormatClass)
focal_class.class_method_signature: BigQueryOutputConfiguration.configureWithAutoSchema(
        Configuration conf,
        String qualifiedOutputTableId,
        String outputGcsPath,
        BigQueryFileFormat outputFileFormat,
        Class<? extends FileOutputFormat> outputFormatClass)
focal_class.full_signature: @SuppressWarnings("rawtypes") public static void configureWithAutoSchema(
        Configuration conf,
        String qualifiedOutputTableId,
        String outputGcsPath,
        BigQueryFileFormat outputFileFormat,
        Class<? extends FileOutputFormat> outputFormatClass)
focal_class.identifier: configureWithAutoSchema
focal_class.modifiers: @SuppressWarnings("rawtypes") public static
focal_class.parameters: (
        Configuration conf,
        String qualifiedOutputTableId,
        String outputGcsPath,
        BigQueryFileFormat outputFileFormat,
        Class<? extends FileOutputFormat> outputFormatClass)
focal_class.return: void
focal_class.signature: void configureWithAutoSchema(
        Configuration conf,
        String qualifiedOutputTableId,
        String outputGcsPath,
        BigQueryFileFormat outputFileFormat,
        Class<? extends FileOutputFormat> outputFormatClass)
focal_class.class_method_signature: BigQueryOutputConfiguration.setKmsKeyName(Configuration conf, String kmsKeyName)
focal_class.full_signature: public static void setKmsKeyName(Configuration conf, String kmsKeyName)
focal_class.identifier: setKmsKeyName
focal_class.modifiers: public static
focal_class.parameters: (Configuration conf, String kmsKeyName)
focal_class.return: void
focal_class.signature: void setKmsKeyName(Configuration conf, String kmsKeyName)
focal_class.class_method_signature: BigQueryOutputConfiguration.validateConfiguration(Configuration conf)
focal_class.full_signature: public static void validateConfiguration(Configuration conf)
focal_class.identifier: validateConfiguration
focal_class.modifiers: public static
focal_class.parameters: (Configuration conf)
focal_class.return: void
focal_class.signature: void validateConfiguration(Configuration conf)
focal_class.class_method_signature: BigQueryOutputConfiguration.getCleanupTemporaryDataFlag(Configuration conf)
focal_class.full_signature: public static boolean getCleanupTemporaryDataFlag(Configuration conf)
focal_class.identifier: getCleanupTemporaryDataFlag
focal_class.modifiers: public static
focal_class.parameters: (Configuration conf)
focal_class.return: boolean
focal_class.signature: boolean getCleanupTemporaryDataFlag(Configuration conf)
focal_class.class_method_signature: BigQueryOutputConfiguration.getProjectId(Configuration conf)
focal_class.full_signature: public static String getProjectId(Configuration conf)
focal_class.identifier: getProjectId
focal_class.modifiers: public static
focal_class.parameters: (Configuration conf)
focal_class.return: String
focal_class.signature: String getProjectId(Configuration conf)
focal_class.class_method_signature: BigQueryOutputConfiguration.getJobProjectId(Configuration conf)
focal_class.full_signature: public static String getJobProjectId(Configuration conf)
focal_class.identifier: getJobProjectId
focal_class.modifiers: public static
focal_class.parameters: (Configuration conf)
focal_class.return: String
focal_class.signature: String getJobProjectId(Configuration conf)
focal_class.class_method_signature: BigQueryOutputConfiguration.getTableReference(Configuration conf)
focal_class.full_signature: static TableReference getTableReference(Configuration conf)
focal_class.identifier: getTableReference
focal_class.modifiers: static
focal_class.parameters: (Configuration conf)
focal_class.return: TableReference
focal_class.signature: TableReference getTableReference(Configuration conf)
focal_class.class_method_signature: BigQueryOutputConfiguration.getTableSchema(Configuration conf)
focal_class.full_signature: static Optional<BigQueryTableSchema> getTableSchema(Configuration conf)
focal_class.identifier: getTableSchema
focal_class.modifiers: static
focal_class.parameters: (Configuration conf)
focal_class.return: Optional<BigQueryTableSchema>
focal_class.signature: Optional<BigQueryTableSchema> getTableSchema(Configuration conf)
focal_class.class_method_signature: BigQueryOutputConfiguration.getTablePartitioning(Configuration conf)
focal_class.full_signature: static Optional<BigQueryTimePartitioning> getTablePartitioning(Configuration conf)
focal_class.identifier: getTablePartitioning
focal_class.modifiers: static
focal_class.parameters: (Configuration conf)
focal_class.return: Optional<BigQueryTimePartitioning>
focal_class.signature: Optional<BigQueryTimePartitioning> getTablePartitioning(Configuration conf)
focal_class.class_method_signature: BigQueryOutputConfiguration.getKmsKeyName(Configuration conf)
focal_class.full_signature: public static String getKmsKeyName(Configuration conf)
focal_class.identifier: getKmsKeyName
focal_class.modifiers: public static
focal_class.parameters: (Configuration conf)
focal_class.return: String
focal_class.signature: String getKmsKeyName(Configuration conf)
focal_class.class_method_signature: BigQueryOutputConfiguration.getFileFormat(Configuration conf)
focal_class.full_signature: public static BigQueryFileFormat getFileFormat(Configuration conf)
focal_class.identifier: getFileFormat
focal_class.modifiers: public static
focal_class.parameters: (Configuration conf)
focal_class.return: BigQueryFileFormat
focal_class.signature: BigQueryFileFormat getFileFormat(Configuration conf)
focal_class.class_method_signature: BigQueryOutputConfiguration.getFileOutputFormat(Configuration conf)
focal_class.full_signature: @SuppressWarnings("rawtypes") public static FileOutputFormat getFileOutputFormat(Configuration conf)
focal_class.identifier: getFileOutputFormat
focal_class.modifiers: @SuppressWarnings("rawtypes") public static
focal_class.parameters: (Configuration conf)
focal_class.return: FileOutputFormat
focal_class.signature: FileOutputFormat getFileOutputFormat(Configuration conf)
focal_class.class_method_signature: BigQueryOutputConfiguration.getGcsOutputPath(Configuration conf)
focal_class.full_signature: public static Path getGcsOutputPath(Configuration conf)
focal_class.identifier: getGcsOutputPath
focal_class.modifiers: public static
focal_class.parameters: (Configuration conf)
focal_class.return: Path
focal_class.signature: Path getGcsOutputPath(Configuration conf)
focal_class.class_method_signature: BigQueryOutputConfiguration.getCreateDisposition(Configuration conf)
focal_class.full_signature: public static String getCreateDisposition(Configuration conf)
focal_class.identifier: getCreateDisposition
focal_class.modifiers: public static
focal_class.parameters: (Configuration conf)
focal_class.return: String
focal_class.signature: String getCreateDisposition(Configuration conf)
focal_class.class_method_signature: BigQueryOutputConfiguration.getWriteDisposition(Configuration conf)
focal_class.full_signature: public static String getWriteDisposition(Configuration conf)
focal_class.identifier: getWriteDisposition
focal_class.modifiers: public static
focal_class.parameters: (Configuration conf)
focal_class.return: String
focal_class.signature: String getWriteDisposition(Configuration conf)
focal_class.class_method_signature: BigQueryOutputConfiguration.setFileOutputFormatOutputPath(Configuration conf, String outputPath)
focal_class.full_signature: @VisibleForTesting static void setFileOutputFormatOutputPath(Configuration conf, String outputPath)
focal_class.identifier: setFileOutputFormatOutputPath
focal_class.modifiers: @VisibleForTesting static
focal_class.parameters: (Configuration conf, String outputPath)
focal_class.return: void
focal_class.signature: void setFileOutputFormatOutputPath(Configuration conf, String outputPath)
focal_method.body: @SuppressWarnings("rawtypes")
    public static void configureWithAutoSchema(
        Configuration conf,
        String qualifiedOutputTableId,
        String outputGcsPath,
        BigQueryFileFormat outputFileFormat,
        Class<? extends FileOutputFormat> outputFormatClass)
        throws IOException {
      TableReference outputTable = BigQueryStrings.parseTableReference(qualifiedOutputTableId);
      configure(
          conf,
          outputTable.getProjectId(),
          outputTable.getDatasetId(),
          outputTable.getTableId(),
          /* outputTableSchemaJson= */ Optional.empty(),
          outputGcsPath,
          outputFileFormat,
          outputFormatClass);
    }
focal_method.class_method_signature: BigQueryOutputConfiguration.configureWithAutoSchema(
        Configuration conf,
        String qualifiedOutputTableId,
        String outputGcsPath,
        BigQueryFileFormat outputFileFormat,
        Class<? extends FileOutputFormat> outputFormatClass)
focal_method.full_signature: @SuppressWarnings("rawtypes") public static void configureWithAutoSchema(
        Configuration conf,
        String qualifiedOutputTableId,
        String outputGcsPath,
        BigQueryFileFormat outputFileFormat,
        Class<? extends FileOutputFormat> outputFormatClass)
focal_method.identifier: configureWithAutoSchema
focal_method.invocations: parseTableReference configure getProjectId getDatasetId getTableId empty
focal_method.modifiers: @SuppressWarnings("rawtypes") public static
focal_method.parameters: (
        Configuration conf,
        String qualifiedOutputTableId,
        String outputGcsPath,
        BigQueryFileFormat outputFileFormat,
        Class<? extends FileOutputFormat> outputFormatClass)
focal_method.return: void
focal_method.signature: void configureWithAutoSchema(
        Configuration conf,
        String qualifiedOutputTableId,
        String outputGcsPath,
        BigQueryFileFormat outputFileFormat,
        Class<? extends FileOutputFormat> outputFormatClass)