/** * Constructor for BatchExecutor. * * @param session a {@link com.google.cloud.bigtable.grpc.BigtableSession} object. * @param requestAdapter a {@link com.google.cloud.bigtable.hbase.adapters.HBaseRequestAdapter} * object. */ public BatchExecutor(BigtableSession session, HBaseRequestAdapter requestAdapter) { this.session = session; this.asyncExecutor = session.createAsyncExecutor(); this.options = session.getOptions(); this.requestAdapter = requestAdapter; }
/** * Constructor for BatchExecutor. * * @param session a {@link com.google.cloud.bigtable.grpc.BigtableSession} object. * @param requestAdapter a {@link com.google.cloud.bigtable.hbase.adapters.HBaseRequestAdapter} * object. */ public BatchExecutor(BigtableSession session, HBaseRequestAdapter requestAdapter) { this.session = session; this.asyncExecutor = session.createAsyncExecutor(); this.options = session.getOptions(); this.requestAdapter = requestAdapter; }
/** * <p> * Constructor for BigtableBufferedMutator. * </p> * @param adapter Converts HBase objects to Bigtable protos * @param configuration For Additional configuration. TODO: move this to options * @param session a {@link com.google.cloud.bigtable.grpc.BigtableSession} to get * {@link com.google.cloud.bigtable.config.BigtableOptions}, * {@link com.google.cloud.bigtable.grpc.async.AsyncExecutor} and * {@link com.google.cloud.bigtable.grpc.async.BulkMutation} objects from starting the * async operations on the BigtableDataClient. */ public BigtableBufferedMutatorHelper( HBaseRequestAdapter adapter, Configuration configuration, BigtableSession session) { this.adapter = adapter; this.configuration = configuration; this.options = session.getOptions(); this.asyncExecutor = session.createAsyncExecutor(); BigtableTableName tableName = this.adapter.getBigtableTableName(); this.bulkMutation = session.createBulkMutation(tableName); }
/** * <p> * Constructor for BigtableBufferedMutator. * </p> * @param adapter Converts HBase objects to Bigtable protos * @param configuration For Additional configuration. TODO: move this to options * @param session a {@link com.google.cloud.bigtable.grpc.BigtableSession} to get * {@link com.google.cloud.bigtable.config.BigtableOptions}, * {@link com.google.cloud.bigtable.grpc.async.AsyncExecutor} and * {@link com.google.cloud.bigtable.grpc.async.BulkMutation} objects from starting the * async operations on the BigtableDataClient. */ public BigtableBufferedMutatorHelper( HBaseRequestAdapter adapter, Configuration configuration, BigtableSession session) { this.adapter = adapter; this.configuration = configuration; this.options = session.getOptions(); this.asyncExecutor = session.createAsyncExecutor(); BigtableTableName tableName = this.adapter.getBigtableTableName(); this.bulkMutation = session.createBulkMutation(tableName); }