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

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

public class DefaultFormatter
extends java.lang.Object
implements Formatter


Constructor Summary
DefaultFormatter()
           
 
Method Summary
static java.lang.String formatEntry(java.util.Map.Entry<Key,Value> entry, boolean showTimestamps)
           
 java.util.Iterator<java.util.Map.Entry<Key,Value>> getScannerIterator()
           
 boolean hasNext()
           
 void initialize(java.lang.Iterable<java.util.Map.Entry<Key,Value>> scanner, boolean printTimestamps)
           
 java.lang.String next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultFormatter

public DefaultFormatter()
Method Detail

initialize

public void initialize(java.lang.Iterable<java.util.Map.Entry<Key,Value>> scanner,
                       boolean printTimestamps)
Specified by:
initialize in interface Formatter

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<java.lang.String>

next

public java.lang.String next()
Specified by:
next in interface java.util.Iterator<java.lang.String>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<java.lang.String>

formatEntry

public static java.lang.String formatEntry(java.util.Map.Entry<Key,Value> entry,
                                           boolean showTimestamps)

getScannerIterator

public java.util.Iterator<java.util.Map.Entry<Key,Value>> getScannerIterator()


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.