use of co.cask.cdap.api.dataset.table.Scan in project cdap by caskdata.
the class MetadataStoreDataset method listKV.
public <T> Map<MDSKey, T> listKV(MDSKey startId, @Nullable MDSKey stopId, Type typeOfT, int limit, Predicate<MDSKey> keyFilter, Predicate<T> valueFilter) {
byte[] startKey = startId.getKey();
byte[] stopKey = stopId == null ? Bytes.stopKeyForPrefix(startKey) : stopId.getKey();
Scan scan = new Scan(startKey, stopKey);
return listKV(scan, typeOfT, limit, keyFilter, valueFilter);
}
Aggregations