test_class.file: bigquery/src/test/java/com/google/cloud/hadoop/io/bigquery/BigQueryFactoryTest.java
test_class.identifier: BigQueryFactoryTest
test_case.body: @Test
    public void getBigQuery_customEndpoint() throws Exception {
      BigQueryFactory factory = new BigQueryFactory();
      Configuration configuration = CredentialConfigurationUtil.getTestConfiguration();
      configuration.set(BQ_ROOT_URL.getKey(), "https://unit-test-bigquery.googleapis.com/");
  
      Bigquery bigquery = factory.getBigQuery(configuration);
  
      assertThat(bigquery).isNotNull();
      assertThat(bigquery.getRootUrl()).isEqualTo("https://unit-test-bigquery.googleapis.com/");
    }
test_case.class_method_signature: BigQueryFactoryTest.getBigQuery_customEndpoint()
test_case.full_signature: @Test public void getBigQuery_customEndpoint()
test_case.identifier: getBigQuery_customEndpoint
test_case.invocations: getTestConfiguration set getKey getBigQuery isNotNull assertThat isEqualTo assertThat getRootUrl
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getBigQuery_customEndpoint()
focal_class.declarator: BIGQUERY_OAUTH_SCOPES =
        ImmutableList.of(BigqueryScopes.BIGQUERY)
focal_class.modifier: public static final
focal_class.original_string: public static final List<String> BIGQUERY_OAUTH_SCOPES =
        ImmutableList.of(BigqueryScopes.BIGQUERY);
focal_class.type: List<String>
focal_class.var_name: BIGQUERY_OAUTH_SCOPES
focal_class.declarator: BIGQUERY_SERVICE_ACCOUNT = "BIGQUERY_SERVICE_ACCOUNT"
focal_class.modifier: public static final
focal_class.original_string: public static final String BIGQUERY_SERVICE_ACCOUNT = "BIGQUERY_SERVICE_ACCOUNT";
focal_class.type: String
focal_class.var_name: BIGQUERY_SERVICE_ACCOUNT
focal_class.declarator: BIGQUERY_PRIVATE_KEY_FILE = "BIGQUERY_PRIVATE_KEY_FILE"
focal_class.modifier: public static final
focal_class.original_string: public static final String BIGQUERY_PRIVATE_KEY_FILE = "BIGQUERY_PRIVATE_KEY_FILE";
focal_class.type: String
focal_class.var_name: BIGQUERY_PRIVATE_KEY_FILE
focal_class.declarator: logger = GoogleLogger.forEnclosingClass()
focal_class.modifier: private static final
focal_class.original_string: private static final GoogleLogger logger = GoogleLogger.forEnclosingClass();
focal_class.type: GoogleLogger
focal_class.var_name: logger
focal_class.declarator: PROPERTIES_FILE = "bigquery.properties"
focal_class.modifier: public static final
focal_class.original_string: public static final String PROPERTIES_FILE = "bigquery.properties";
focal_class.type: String
focal_class.var_name: PROPERTIES_FILE
focal_class.declarator: VERSION_PROPERTY = "bigquery.connector.version"
focal_class.modifier: public static final
focal_class.original_string: public static final String VERSION_PROPERTY = "bigquery.connector.version";
focal_class.type: String
focal_class.var_name: VERSION_PROPERTY
focal_class.declarator: UNKNOWN_VERSION = "0.0.0"
focal_class.modifier: public static final
focal_class.original_string: public static final String UNKNOWN_VERSION = "0.0.0";
focal_class.type: String
focal_class.var_name: UNKNOWN_VERSION
focal_class.declarator: VERSION
focal_class.modifier: public static final
focal_class.original_string: public static final String VERSION;
focal_class.type: String
focal_class.var_name: VERSION
focal_class.declarator: BQC_ID
focal_class.modifier: public static final
focal_class.original_string: public static final String BQC_ID;
focal_class.type: String
focal_class.var_name: BQC_ID
focal_class.declarator: INSTANCE = new BigQueryFactory()
focal_class.modifier: public static final
focal_class.original_string: public static final BigQueryFactory INSTANCE = new BigQueryFactory();
focal_class.type: BigQueryFactory
focal_class.var_name: INSTANCE
focal_class.declarator: HTTP_TRANSPORT = new NetHttpTransport()
focal_class.modifier: private static final
focal_class.original_string: private static final HttpTransport HTTP_TRANSPORT = new NetHttpTransport();
focal_class.type: HttpTransport
focal_class.var_name: HTTP_TRANSPORT
focal_class.declarator: JSON_FACTORY = new JacksonFactory()
focal_class.modifier: private static final
focal_class.original_string: private static final JsonFactory JSON_FACTORY = new JacksonFactory();
focal_class.type: JsonFactory
focal_class.var_name: JSON_FACTORY
focal_class.file: bigquery/src/main/java/com/google/cloud/hadoop/io/bigquery/BigQueryFactory.java
focal_class.identifier: BigQueryFactory
focal_class.class_method_signature: BigQueryFactory.createBigQueryCredential(Configuration config)
focal_class.full_signature: public Credential createBigQueryCredential(Configuration config)
focal_class.identifier: createBigQueryCredential
focal_class.modifiers: public
focal_class.parameters: (Configuration config)
focal_class.return: Credential
focal_class.signature: Credential createBigQueryCredential(Configuration config)
focal_class.class_method_signature: BigQueryFactory.getBigQueryHelper(Configuration config)
focal_class.full_signature: public BigQueryHelper getBigQueryHelper(Configuration config)
focal_class.identifier: getBigQueryHelper
focal_class.modifiers: public
focal_class.parameters: (Configuration config)
focal_class.return: BigQueryHelper
focal_class.signature: BigQueryHelper getBigQueryHelper(Configuration config)
focal_class.class_method_signature: BigQueryFactory.getBigQuery(Configuration config)
focal_class.full_signature: public Bigquery getBigQuery(Configuration config)
focal_class.identifier: getBigQuery
focal_class.modifiers: public
focal_class.parameters: (Configuration config)
focal_class.return: Bigquery
focal_class.signature: Bigquery getBigQuery(Configuration config)
focal_class.class_method_signature: BigQueryFactory.getBigQueryFromCredential(
        Configuration config, Credential credential, String appName)
focal_class.full_signature: public Bigquery getBigQueryFromCredential(
        Configuration config, Credential credential, String appName)
focal_class.identifier: getBigQueryFromCredential
focal_class.modifiers: public
focal_class.parameters: (
        Configuration config, Credential credential, String appName)
focal_class.return: Bigquery
focal_class.signature: Bigquery getBigQueryFromCredential(
        Configuration config, Credential credential, String appName)
focal_method.body: public Bigquery getBigQuery(Configuration config)
        throws GeneralSecurityException, IOException {
      logger.atInfo().log("Creating BigQuery from default credential.");
      Credential credential = createBigQueryCredential(config);
      // Use the credential to create an authorized BigQuery client
      return getBigQueryFromCredential(config, credential, BQC_ID);
    }
focal_method.class_method_signature: BigQueryFactory.getBigQuery(Configuration config)
focal_method.full_signature: public Bigquery getBigQuery(Configuration config)
focal_method.identifier: getBigQuery
focal_method.invocations: log atInfo createBigQueryCredential getBigQueryFromCredential
focal_method.modifiers: public
focal_method.parameters: (Configuration config)
focal_method.return: Bigquery
focal_method.signature: Bigquery getBigQuery(Configuration config)