public class DefaultFormatter extends Object implements Formatter
Modifier and Type | Field and Description |
---|---|
protected FormatterConfig |
config |
Constructor and Description |
---|
DefaultFormatter() |
Modifier and Type | Method and Description |
---|---|
static StringBuilder |
appendText(StringBuilder sb,
org.apache.hadoop.io.Text t,
int shownLength) |
protected void |
checkState(boolean expectInitialized) |
String |
formatEntry(Map.Entry<Key,Value> entry) |
static String |
formatEntry(Map.Entry<Key,Value> entry,
boolean showTimestamps)
if showTimestamps, will use
FormatterConfig.DefaultDateFormat .Preferably, use formatEntry(java.util.Map.Entry, org.apache.accumulo.core.util.format.FormatterConfig) |
static String |
formatEntry(Map.Entry<Key,Value> entry,
DateFormat timestampFormat)
Does not show timestamps if timestampFormat is null
|
static String |
formatEntry(Map.Entry<Key,Value> entry,
FormatterConfig config) |
Iterator<Map.Entry<Key,Value>> |
getScannerIterator() |
boolean |
hasNext() |
void |
initialize(Iterable<Map.Entry<Key,Value>> scanner,
FormatterConfig config) |
protected boolean |
isDoTimestamps() |
String |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
protected FormatterConfig config
public void initialize(Iterable<Map.Entry<Key,Value>> scanner, FormatterConfig config)
initialize
in interface Formatter
protected void checkState(boolean expectInitialized)
public static String formatEntry(Map.Entry<Key,Value> entry, boolean showTimestamps)
FormatterConfig.DefaultDateFormat
.formatEntry(java.util.Map.Entry, org.apache.accumulo.core.util.format.FormatterConfig)
public static String formatEntry(Map.Entry<Key,Value> entry, DateFormat timestampFormat)
public static String formatEntry(Map.Entry<Key,Value> entry, FormatterConfig config)
public static StringBuilder appendText(StringBuilder sb, org.apache.hadoop.io.Text t, int shownLength)
protected boolean isDoTimestamps()
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.