@Test public void testExplicitCredentials() throws IOException, GeneralSecurityException { Credentials credentials = Mockito.mock(Credentials.class); configuration = new Configuration(false); configuration.set(BigtableOptionsFactory.BIGTABLE_HOST_KEY, TEST_HOST); configuration.set(BigtableOptionsFactory.PROJECT_ID_KEY, TEST_PROJECT_ID); configuration.set(BigtableOptionsFactory.INSTANCE_ID_KEY, TEST_INSTANCE_ID); configuration = BigtableConfiguration.withCredentials(configuration, credentials); BigtableOptions options = ((BigtableHBaseClassicSettings) BigtableHBaseSettings.create(configuration)) .getBigtableOptions(); Credentials actualCreds = CredentialFactory.getCredentials(options.getCredentialOptions()); Assert.assertSame(credentials, actualCreds); }
public BigtableOptions getBigtableOptions() { return bigtableOptions; }
BigtableHBaseClassicSettings extends BigtableHBaseSettings { public BigtableOptions getBigtableOptions() { return bigtableOptions; } }
BigtableHBaseClassicSettings extends BigtableHBaseSettings { public BigtableOptions getBigtableOptions() { return bigtableOptions; } BigtableHBaseClassicSettings(Configuration configuration); }
BigtableHBaseClassicSettings extends BigtableHBaseSettings { public BigtableOptions getBigtableOptions() { return bigtableOptions; } BigtableHBaseClassicSettings(Configuration configuration); @Override String getDataHost(); @Override String getAdminHost(); @Override int getPort(); @Override int getBulkMaxRowCount(); @Override long getBatchingMaxRequestSize(); @Override boolean isRetriesWithoutTimestampAllowed(); BigtableOptions getBigtableOptions(); }
BigtableHBaseClassicSettings extends BigtableHBaseSettings { public BigtableOptions getBigtableOptions() { return bigtableOptions; } BigtableHBaseClassicSettings(Configuration configuration); @Override String getDataHost(); @Override String getAdminHost(); @Override int getPort(); @Override int getBulkMaxRowCount(); @Override long getBatchingMaxRequestSize(); @Override boolean isRetriesWithoutTimestampAllowed(); BigtableOptions getBigtableOptions();  }