if (session == null) { try { options = BigtableOptionsFactory.fromConfiguration(CONFIG); session = new BigtableSession(options);
/** * Converts the {@link CloudBigtableConfiguration} to a {@link BigtableOptions} object. * @return The {@link BigtableOptions} object. */ public BigtableOptions toBigtableOptions() throws IOException { return BigtableOptionsFactory.fromConfiguration(toHBaseConfig()); }
/** * Converts the {@link CloudBigtableConfiguration} to a {@link BigtableOptions} object. * @return The {@link BigtableOptions} object. */ public BigtableOptions toBigtableOptions() throws IOException { return BigtableOptionsFactory.fromConfiguration(toHBaseConfig()); }
/** * Converts the {@link CloudBigtableConfiguration} to a {@link BigtableOptions} object. * @return The {@link BigtableOptions} object. */ public BigtableOptions toBigtableOptions() throws IOException { return BigtableOptionsFactory.fromConfiguration(toHBaseConfig()); }
opts = BigtableOptionsFactory.fromConfiguration(conf); } catch (IOException ioe) { LOG.error("Error loading BigtableOptions from Configuration.", ioe);
opts = BigtableOptionsFactory.fromConfiguration(conf); } catch (IOException ioe) { LOG.error("Error loading BigtableOptions from Configuration.", ioe);
public BigtableAsyncConnection(Configuration conf, AsyncRegistry ignoredRegistry, String ignoredClusterId, User ignoredUser) throws IOException { LOG.debug("Creating BigtableAsyncConnection"); this.conf = conf; BigtableOptions opts; try { opts = BigtableOptionsFactory.fromConfiguration(conf); } catch (IOException ioe) { LOG.error("Error loading BigtableOptions from Configuration.", ioe); throw ioe; } this.closed = false; this.session = new BigtableSession(opts); this.options = this.session.getOptions(); }
public BigtableAsyncConnection(Configuration conf, AsyncRegistry ignoredRegistry, String ignoredClusterId, User ignoredUser) throws IOException { LOG.debug("Creating BigtableAsyncConnection"); this.conf = conf; BigtableOptions opts; try { opts = BigtableOptionsFactory.fromConfiguration(conf); } catch (IOException ioe) { LOG.error("Error loading BigtableOptions from Configuration.", ioe); throw ioe; } this.closed = false; this.session = new BigtableSession(opts); this.options = this.session.getOptions(); }
options = BigtableOptionsFactory.fromConfiguration(fullConfiguration); } catch (IOException | RuntimeException exc) { logger.warn("Encountered errors attempting to parse configuration.", exc);
@VisibleForTesting void initializeScanner() throws IOException { Configuration config = source.getConfiguration().toHBaseConfig(); // This will use cached data channels under the covers. session = new BigtableSession(BigtableOptionsFactory.fromConfiguration(config)); scanner = session.getDataClient().readFlatRows(source.getConfiguration().getRequest()); }
options = BigtableOptionsFactory.fromConfiguration(fullConfiguration); } catch (IOException | RuntimeException exc) { logger.warn("Encountered errors attempting to parse configuration.", exc);
@VisibleForTesting void initializeScanner() throws IOException { Configuration config = source.getConfiguration().toHBaseConfig(); // This will use cached data channels under the covers. session = new BigtableSession(BigtableOptionsFactory.fromConfiguration(config)); scanner = session.getDataClient().readFlatRows(source.getConfiguration().getRequest()); }
@VisibleForTesting void initializeScanner() throws IOException { Configuration config = source.getConfiguration().toHBaseConfig(); // This will use cached data channels under the covers. session = new BigtableSession(BigtableOptionsFactory.fromConfiguration(config)); scanner = session.getDataClient().readFlatRows(source.getConfiguration().getRequest()); }