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

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

public class DefaultFormatter
extends Object
implements Formatter


Constructor Summary
DefaultFormatter()
           
 
Method Summary
protected  void checkState(boolean expectInitialized)
           
static String formatEntry(Map.Entry<Key,Value> entry, boolean showTimestamps)
           
static String formatEntry(Map.Entry<Key,Value> entry, DateFormat timestampFormat)
           
 Iterator<Map.Entry<Key,Value>> getScannerIterator()
           
 boolean hasNext()
           
 void initialize(Iterable<Map.Entry<Key,Value>> scanner, boolean printTimestamps)
           
protected  boolean isDoTimestamps()
           
 String next()
           
protected  String next(DateFormat timestampFormat)
           
 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(Iterable<Map.Entry<Key,Value>> scanner,
                       boolean printTimestamps)
Specified by:
initialize in interface Formatter

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<String>

next

public String next()
Specified by:
next in interface Iterator<String>

next

protected String next(DateFormat timestampFormat)

remove

public void remove()
Specified by:
remove in interface Iterator<String>

checkState

protected void checkState(boolean expectInitialized)

formatEntry

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

formatEntry

public static String formatEntry(Map.Entry<Key,Value> entry,
                                 DateFormat timestampFormat)

getScannerIterator

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

isDoTimestamps

protected boolean isDoTimestamps()


Copyright © 2015 Apache Accumulo Project. All rights reserved.