use of org.apache.kudu.client.KuduPredicate in project gora by apache.
the class KuduStore method createScanner.
private KuduScanner createScanner(List<KuduPredicate> predicates, List<String> projColumns, long limit) {
KuduScanner.KuduScannerBuilder scannerBuilder = client.newScannerBuilder(table);
if (limit != -1) {
scannerBuilder.limit(limit);
}
scannerBuilder.setProjectedColumnNames(projColumns);
for (KuduPredicate predicate : predicates) {
scannerBuilder.addPredicate(predicate);
}
return scannerBuilder.build();
}
Aggregations