/** * Creates a {@link KuduScanner} from this scan token. * @param client a Kudu client for the cluster * @return a scanner for the scan token */ public KuduScanner intoScanner(KuduClient client) throws Exception { return pbIntoScanner(message, client); }
/** * Deserializes a {@code KuduScanToken} into a {@link KuduScanner}. * @param buf a byte array containing the serialized scan token. * @param client a Kudu client for the cluster * @return a scanner for the serialized scan token */ public static KuduScanner deserializeIntoScanner(byte[] buf, KuduClient client) throws IOException { return pbIntoScanner(ScanTokenPB.parseFrom(CodedInputStream.newInstance(buf)), client); }