Class FormatterConfig
- java.lang.Object
-
- org.apache.accumulo.core.util.format.FormatterConfig
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FormatterConfig.DefaultDateFormat
Formats with milliseconds since epoch
-
Constructor Summary
Constructors Constructor Description FormatterConfig()
FormatterConfig(FormatterConfig other)
Copies most fields, but still points to other.dateFormatSupplier.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FormatterConfig
doNotLimitShowLength()
Supplier<DateFormat>
getDateFormatSupplier()
int
getShownLength()
FormatterConfig
setDateFormatSupplier(Supplier<DateFormat> dateFormatSupplier)
this.dateFormatSupplier points to dateFormatSupplier, so it is recommended that you create a newSupplier
when calling this function if yourSupplier
maintains some kind of state (seeDateFormatSupplier
.FormatterConfig
setPrintTimestamps(boolean printTimestamps)
FormatterConfig
setShownLength(int shownLength)
If given a negative number, throws anIllegalArgumentException
boolean
willLimitShowLength()
boolean
willPrintTimestamps()
-
-
-
Constructor Detail
-
FormatterConfig
public FormatterConfig()
-
FormatterConfig
public FormatterConfig(FormatterConfig other)
Copies most fields, but still points to other.dateFormatSupplier.
-
-
Method Detail
-
willPrintTimestamps
public boolean willPrintTimestamps()
-
setPrintTimestamps
public FormatterConfig setPrintTimestamps(boolean printTimestamps)
-
getShownLength
public int getShownLength()
-
willLimitShowLength
public boolean willLimitShowLength()
-
setShownLength
public FormatterConfig setShownLength(int shownLength)
If given a negative number, throws anIllegalArgumentException
- Parameters:
shownLength
- maximum length of formatted output- Returns:
this
to allow chaining of set methods
-
doNotLimitShowLength
public FormatterConfig doNotLimitShowLength()
-
getDateFormatSupplier
public Supplier<DateFormat> getDateFormatSupplier()
-
setDateFormatSupplier
public FormatterConfig setDateFormatSupplier(Supplier<DateFormat> dateFormatSupplier)
this.dateFormatSupplier points to dateFormatSupplier, so it is recommended that you create a newSupplier
when calling this function if yourSupplier
maintains some kind of state (seeDateFormatSupplier
.
-
-