use of com.google.cloud.bigtable.config.BigtableOptions.Builder in project beam by apache.
the class BigtableWriteIT method setup.
@Before
public void setup() throws Exception {
PipelineOptionsFactory.register(BigtableTestOptions.class);
options = TestPipeline.testingPipelineOptions().as(BigtableTestOptions.class);
bigtableOptions = new Builder().setProjectId(options.getProjectId()).setInstanceId(options.getInstanceId()).setUserAgent("apache-beam-test").build();
session = new BigtableSession(bigtableOptions.toBuilder().setCredentialOptions(CredentialOptions.credential(options.as(GcpOptions.class).getGcpCredential())).build());
tableAdminClient = session.getTableAdminClient();
}
Aggregations