Package org.apache.hadoop.hbase.client
Interface AsyncTable.CoprocessorServiceBuilder<S,R>
- Type Parameters:
S
- the type of the protobuf Service you want to call.R
- the type of the return value.
- All Known Implementing Classes:
RawAsyncTableImpl.CoprocessorServiceBuilderImpl
- Enclosing interface:
- AsyncTable<C extends ScanResultConsumerBase>
public static interface AsyncTable.CoprocessorServiceBuilder<S,R>
Helper class for sending coprocessorService request that executes a coprocessor call on regions
which are covered by a range.
If fromRow
is not specified the selection will start with the first table region. If
toRow
is not specified the selection will continue through the last table region.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
Execute the coprocessorService request.default AsyncTable.CoprocessorServiceBuilder<S,
R> fromRow
(byte[] startKey) Specify a start rowfromRow
(byte[] startKey, boolean inclusive) Specify a start rowdefault AsyncTable.CoprocessorServiceBuilder<S,
R> toRow
(byte[] endKey) Specify a stop rowtoRow
(byte[] endKey, boolean inclusive) Specify a stop row
-
Method Details
-
fromRow
Specify a start row- Parameters:
startKey
- start region selection with region containing this row, inclusive.
-
fromRow
Specify a start row- Parameters:
startKey
- start region selection with region containing this rowinclusive
- whether to include the startKey
-
toRow
Specify a stop row- Parameters:
endKey
- select regions up to and including the region containing this row, exclusive.
-
toRow
Specify a stop row- Parameters:
endKey
- select regions up to and including the region containing this rowinclusive
- whether to include the endKey
-
execute
void execute()Execute the coprocessorService request. You can get the response through theAsyncTable.CoprocessorCallback
.
-