Search in sources :

Example 1 with BigQueryDatastoreProperties

use of org.talend.components.bigquery.BigQueryDatastoreProperties in project components by Talend.

the class BigQueryDatasetTestIT method createDatasetProperties.

/**
 * @return the properties for this dataset, fully initialized with the default values and the datastore credentials
 * from the System environment.
 */
public static BigQueryDatasetProperties createDatasetProperties() {
    // Configure the dataset.
    BigQueryDatastoreProperties datastoreProps = new BigQueryDatastoreProperties(null);
    datastoreProps.init();
    datastoreProps.projectName.setValue(System.getProperty("bigquery.project"));
    datastoreProps.serviceAccountFile.setValue(System.getProperty("bigquery.service.account.file"));
    datastoreProps.tempGsFolder.setValue(System.getProperty("bigquery.gcp.temp.folder"));
    BigQueryDatasetProperties datasetProps = new BigQueryDatasetProperties(null);
    datasetProps.init();
    datasetProps.setDatastoreProperties(datastoreProps);
    return datasetProps;
}
Also used : BigQueryDatastoreProperties(org.talend.components.bigquery.BigQueryDatastoreProperties) BigQueryDatasetProperties(org.talend.components.bigquery.BigQueryDatasetProperties)

Example 2 with BigQueryDatastoreProperties

use of org.talend.components.bigquery.BigQueryDatastoreProperties in project components by Talend.

the class BigQueryTestConstants method createDatastore.

public static BigQueryDatastoreProperties createDatastore() {
    BigQueryDatastoreProperties datastore = new BigQueryDatastoreProperties("datastore");
    datastore.init();
    datastore.projectName.setValue(BigQueryTestConstants.PROJECT);
    datastore.serviceAccountFile.setValue(BigQueryTestConstants.SERVICE_ACCOUNT_FILE);
    datastore.tempGsFolder.setValue(BigQueryTestConstants.GCP_TEMP_FOLDER);
    return datastore;
}
Also used : BigQueryDatastoreProperties(org.talend.components.bigquery.BigQueryDatastoreProperties)

Aggregations

BigQueryDatastoreProperties (org.talend.components.bigquery.BigQueryDatastoreProperties)2 BigQueryDatasetProperties (org.talend.components.bigquery.BigQueryDatasetProperties)1