org.apache.accumulo.core.util.format
Class StatisticsDisplayFormatter

java.lang.Object
  extended by org.apache.accumulo.core.util.format.DefaultFormatter
      extended by org.apache.accumulo.core.util.format.AggregatingFormatter
          extended by org.apache.accumulo.core.util.format.StatisticsDisplayFormatter
All Implemented Interfaces:
Iterator<String>, Formatter

public class StatisticsDisplayFormatter
extends AggregatingFormatter

Does not show contents from scan, only displays statistics. Beware that this work is being done client side and this was developed as a utility for debugging. If used on large result sets it will likely fail.


Constructor Summary
StatisticsDisplayFormatter()
           
 
Method Summary
protected  void aggregateStats(Map.Entry<Key,Value> entry)
          Generate statistics from each Map.Entry, called for each entry to be iterated over.
protected  String getStats()
          Finalize the aggregation and return the result.
 
Methods inherited from class org.apache.accumulo.core.util.format.AggregatingFormatter
next
 
Methods inherited from class org.apache.accumulo.core.util.format.DefaultFormatter
checkState, formatEntry, formatEntry, getScannerIterator, hasNext, initialize, isDoTimestamps, next, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatisticsDisplayFormatter

public StatisticsDisplayFormatter()
Method Detail

aggregateStats

protected void aggregateStats(Map.Entry<Key,Value> entry)
Description copied from class: AggregatingFormatter
Generate statistics from each Map.Entry, called for each entry to be iterated over.

Specified by:
aggregateStats in class AggregatingFormatter
Parameters:
entry - the next entry to aggregate

getStats

protected String getStats()
Description copied from class: AggregatingFormatter
Finalize the aggregation and return the result. Called once at the end.

Specified by:
getStats in class AggregatingFormatter
Returns:
the aggregation results, suitable for printing to the console


Copyright © 2015 Apache Accumulo Project. All rights reserved.