java/kudu-client/src/test/java/org/apache/kudu/util/ClientTestUtil.java
public static long countRowsInTable(KuduTable table, KuduPredicate... predicates) throws KuduException {
    KuduScanner.KuduScannerBuilder scanBuilder =
        table.getAsyncClient().syncClient().newScannerBuilder(table);
    for (KuduPredicate predicate : predicates) {
      scanBuilder.addPredicate(predicate);
    }
    scanBuilder.setProjectedColumnIndexes(ImmutableList.<Integer>of());
    return countRowsInScan(scanBuilder.build());
  }
/**
   * Scans the table and returns the number of rows.
   * @param table the table
   * @param predicates optional predicates to apply to the scan
   * @return the number of rows in the table matching the predicates
   */
Scans the table and returns the number of rows.
@param table the table
@param predicates optional predicates to apply to the scan
@return the number of rows in the table matching the predicates
Scans the table and returns the number of rows . @param table the table @param predicates optional predicates to apply to the scan @return the number of rows in the table matching the predicates
public static long countRowsInTable(KuduTable table, KuduPredicate... predicates) throws KuduException {
    KuduScanner.KuduScannerBuilder scanBuilder =
        table.getAsyncClient().syncClient().newScannerBuilder(table);
    for (KuduPredicate predicate : predicates) {
      scanBuilder.addPredicate(predicate);
    }
    scanBuilder.setProjectedColumnIndexes(ImmutableList.<Integer>of());
    return countRowsInScan(scanBuilder.build());
  }
public static long countRowsInTable ( KuduTable table , KuduPredicate ... predicates ) throws KuduException { KuduScanner . KuduScannerBuilder scanBuilder = table . getAsyncClient ( ) . syncClient ( ) . newScannerBuilder ( table ) ; for ( KuduPredicate predicate : predicates ) { scanBuilder . addPredicate ( predicate ) ; } scanBuilder . setProjectedColumnIndexes ( ImmutableList . < Integer > of ( ) ) ; return countRowsInScan ( scanBuilder . build ( ) ) ; }
Scans the table and returns the number of rows.
Scans the table and returns the number of rows .