Class FormatterConfig
- java.lang.Object
-
- org.apache.accumulo.core.util.format.FormatterConfig
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFormatterConfig.DefaultDateFormatFormats 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 FormatterConfigdoNotLimitShowLength()Supplier<DateFormat>getDateFormatSupplier()intgetShownLength()FormatterConfigsetDateFormatSupplier(Supplier<DateFormat> dateFormatSupplier)this.dateFormatSupplier points to dateFormatSupplier, so it is recommended that you create a newSupplierwhen calling this function if yourSuppliermaintains some kind of state (seeDateFormatSupplier.FormatterConfigsetPrintTimestamps(boolean printTimestamps)FormatterConfigsetShownLength(int shownLength)If given a negative number, throws anIllegalArgumentExceptionbooleanwillLimitShowLength()booleanwillPrintTimestamps()
-
-
-
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:
thisto 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 newSupplierwhen calling this function if yourSuppliermaintains some kind of state (seeDateFormatSupplier.
-
-