Class RowColumnSampler

  • All Implemented Interfaces:

    public class RowColumnSampler
    extends AbstractHashSampler
    This sampler can hash any subset of a Key's fields. The fields that hashed for the sample are determined by the configuration options passed in init(SamplerConfiguration). The following key values are valid options.
    • row=true|false
    • family=true|false
    • qualifier=true|false
    • visibility=true|false

    If not specified in the options, fields default to false.

    To determine what options are valid for hashing see AbstractHashSampler

    To configure Accumulo to generate sample data on one thousandth of the column qualifiers, the following SamplerConfiguration could be created and used to configure a table.

     new SamplerConfiguration(RowColumnSampler.class.getName()).setOptions(

    With this configuration, if a column qualifier is selected then all key values contains that column qualifier will end up in the sample data.

    • Constructor Detail

      • RowColumnSampler

        public RowColumnSampler()