org.apache.accumulo.core.util.format
Class DefaultFormatter
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultFormatter
public DefaultFormatter()
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.