Skip to content

Pretty-print PrintInfo's 'histogram' ouput #2217

@Manno15

Description

@Manno15

Original JIRA ticket : https://issues.apache.org/jira/browse/ACCUMULO-1660
Description from the ticket:

The output from o.a.a.core.file.rfile.PrintInfo --histogram is hard to read. 
Specifically, the number of zeroes in each row in the histogram is difficult to tell at a glance.
We have code elsewhere to pretty-print large sizes using MB, GB, etc...
 It would be nice to see that here as well.

Describe the solution you'd like
As shown in the photo below, the size is hard to determine at a glance. Using units like MB or GB would be easier to read. This could be done as the default or as another option on top of --histogram. We utilize NumUtil in other areas of the code such as DUCommand and that could possibly be used here as well..

Additional context
Currently, the output of the histogram command looks like the following:

image

An example of how to run the command is accumulo rfile-info <table r-file> --histogram.

Metadata

Metadata

Assignees

Labels

enhancementThis issue describes a new feature, improvement, or optimization.good first issueWell written issue that is very specific and easy to do, intended for first time contributors.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions