org.apache.accumulo.core.trace
Class TraceFormatter
java.lang.Object
org.apache.accumulo.core.trace.TraceFormatter
- All Implemented Interfaces:
- Iterator<String>, Formatter
public class TraceFormatter
- extends Object
- implements Formatter
A formatter than can be used in the shell to display trace information.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DATE_FORMAT
public static final String DATE_FORMAT
- See Also:
- Constant Field Values
TraceFormatter
public TraceFormatter()
formatDate
public static String formatDate(Date date)
getRemoteSpan
public static RemoteSpan getRemoteSpan(Map.Entry<Key,Value> entry)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator<String>
next
public String next()
- Specified by:
next
in interface Iterator<String>
remove
public void remove()
- Specified by:
remove
in interface Iterator<String>
initialize
public void initialize(Iterable<Map.Entry<Key,Value>> scanner,
boolean printTimestamps)
- Specified by:
initialize
in interface Formatter
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.