The primary purpose of this was to create an interface for pretty-printing user's application code in the shell when we scan. Some of the formatters (especially the DefaultFormatter) also ended up getting reused internally in various places where we wanted to print a key/value pair in a standard way, such as in admin utilities, examples, and possibly log messages.
On Fri, Apr 19, 2019 at 8:32 AM Mike Miller <[email protected]> wrote: > > Found this thing... > https://github.com/apache/accumulo/blob/f7b9fd40a5ee73d137643580832084b505fffae9/core/src/main/java/org/apache/accumulo/core/util/format/Formatter.java > > Anyone used or worked with this class? It looks like its being used by a > bunch of processes but I don't think we need all these sub classes. > ls ./core/src/main/java/org/apache/accumulo/core/util/format > AggregatingFormatter.java > DateFormatSupplier.java > DefaultFormatter.java > FormatterFactory.java > HexFormatter.java > StatisticsDisplayFormatter.java > BinaryFormatter.java > DateStringFormatter.java > FormatterConfig.java > Formatter.java > ShardedTableDistributionFormatter.java
