@CommandHelp('Displays set statistics'
                 , '  Options:'
                 , '    -t - Set to show total column at the end.')
    def do_sets(self, line):
        show_total = self.need_to_show_total(line)
        set_stats = self.logger.infoStatistics(stanza="sets")
        for timestamp in sorted(set_stats.keys()):
            if not set_stats[timestamp]:
                continue
            namespace_list = [ns_set.split()[0] for ns_set in set_stats[timestamp].keys()]
            namespace_list = util.filter_list(namespace_list, self.mods['for'])
            for ns_set, stats in set_stats[timestamp].iteritems():
                if ns_set.split()[0] not in namespace_list:
                    continue
                self.view.showStats(
                    "%s Set Statistics (%s)" %
                    (ns_set, timestamp), stats, self.logger.get_log_snapshot(timestamp=timestamp), show_total=show_total, **self.mods)
dataset/ETHPy150Open aerospike/aerospike-admin/lib/logcontroller.py/ShowStatisticsController.do_sets/original