/** * Package private constructor for RPCs that are for a region. * @param table The name of the table this RPC is for. * @param row The name of the row this RPC is for. */ HBaseRpc(final byte[] table, final byte[] key) { KeyValue.checkTable(table); KeyValue.checkKey(key); this.table = table; this.key = key; }
/** * Specifies from which row key to start scanning (inclusive). * @param start_key The row key to start scanning from. If you don't invoke * this method, scanning will begin from the first row key in the table. * <strong>This byte array will NOT be copied.</strong> * @throws IllegalStateException if scanning already started. */ public void setStartKey(final byte[] start_key) { KeyValue.checkKey(start_key); checkScanningNotStarted(); this.start_key = start_key; }
/** * Specifies up to which row key to scan (exclusive). * @param stop_key The row key to scan up to. If you don't invoke * this method, or if the array is empty ({@code stop_key.length == 0}), * every row up to and including the last one will be scanned. * <strong>This byte array will NOT be copied.</strong> * @throws IllegalStateException if scanning already started. */ public void setStopKey(final byte[] stop_key) { KeyValue.checkKey(stop_key); checkScanningNotStarted(); this.stop_key = stop_key; }
checkKey(key); checkFamily(family); checkQualifier(qualifier);