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;
}
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;
}
Aggregations