Class DateStringFormatter
- java.lang.Object
-
- org.apache.accumulo.core.util.format.DateStringFormatter
-
@Deprecated public class DateStringFormatter extends Object implements Formatter
Deprecated.since 1.8.0This class is not recommended becauseinitialize(Iterable, FormatterConfig)replaces parameters inFormatterConfig, which could surprise users. This class can be replaced byDefaultFormatterwhere FormatterConfig is initialized with a DateFormat set toDATE_FORMAT. SeeDateFormatSupplier.createSimpleFormatSupplier(String, java.util.TimeZone).final DateFormatSupplier dfSupplier = DateFormatSupplier.createSimpleFormatSupplier( DateFormatSupplier.HUMAN_READABLE_FORMAT, TimeZone.getTimeZone("UTC")); final FormatterConfig config = new FormatterConfig().setPrintTimestamps(true).setDateFormatSupplier(dfSupplier);
-
-
Field Summary
Fields Modifier and Type Field Description static StringDATE_FORMATDeprecated.
-
Constructor Summary
Constructors Constructor Description DateStringFormatter()Deprecated.DateStringFormatter(TimeZone timeZone)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanhasNext()Deprecated.voidinitialize(Iterable<Map.Entry<Key,Value>> scanner, FormatterConfig config)Deprecated.Stringnext()Deprecated.voidremove()Deprecated.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Field Detail
-
DATE_FORMAT
public static final String DATE_FORMAT
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DateStringFormatter
public DateStringFormatter()
Deprecated.
-
DateStringFormatter
public DateStringFormatter(TimeZone timeZone)
Deprecated.
-
-
Method Detail
-
initialize
public void initialize(Iterable<Map.Entry<Key,Value>> scanner, FormatterConfig config)
Deprecated.- Specified by:
initializein interfaceFormatter
-
-