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.

The options can be used in short form (-k keyspace_name) or long form (--schema.keyspace keyspace_name).

--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