Count options

Count options for the dsbulk command.

Specify options for the dsbulk count command. These options specify how counting will be accomplished by DataStax Bulk Loader.

Databases supported by DataStax Bulk Loader

DataStax Bulk Loader supports the use of the dsbulk load, dsbulk unload, and dsbulk count commands with:
  • DataStax Enterprise (DSE) 4.7 and later databases
  • Open source Apache Cassandra™ 2.1 and later databases
  • DataStax Distribution of Apache Cassandra (DDAC) databases
  • DataStax Apollo cloud databases
--stats.modes { global | ranges | hosts | partitions }
Kind(s) of statistics to compute. Only applicable for count, ignored otherwise. Valid values are:
  • global: Count the total number of rows in the table.
  • ranges: Count the total number of rows per token range in the table.
  • hosts: Count the total number of rows per hosts in the table.
  • partitions: Count the total number of rows in the N biggest partitions in the table. Choose how many partitions to track with stats.numPartitions option. For partitions, the results are organized as follows:
    1. Left column: partition key value
    2. Middle column: number of rows using that partition key value
    3. Right column: the partition's percentage of rows compared to the total number of rows in the table

Default: global

--stats.numPartitions number
The number of distinct partitions for which to count rows. Only applicable for count, ignored otherwise.

Default: 10