Search in sources :

Example 1 with Builder

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();
}
Also used : Builder(com.google.cloud.bigtable.config.BigtableOptions.Builder) BigtableSession(com.google.cloud.bigtable.grpc.BigtableSession) Before(org.junit.Before)

Aggregations

Builder (com.google.cloud.bigtable.config.BigtableOptions.Builder)1 BigtableSession (com.google.cloud.bigtable.grpc.BigtableSession)1 Before (org.junit.Before)1