Class FormatUtils
java.lang.Object
io.trino.cli.FormatUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringformatCount(long count) static StringformatCountRate(double count, io.airlift.units.Duration duration, boolean longForm) static StringformatDataRate(io.airlift.units.DataSize dataSize, io.airlift.units.Duration duration, boolean longForm, boolean decimalDataSize) static StringformatDataSize(io.airlift.units.DataSize size, boolean longForm, boolean decimalDataSize) static StringformatFinalTime(io.airlift.units.Duration duration) static StringformatProgressBar(int width, int tick) Format an indeterminate progress bar:[ <=> ]static StringformatProgressBar(int width, int progressPercentage, int runningPercentage) static StringformatTime(io.airlift.units.Duration duration) static String
-
Method Details
-
formatCount
-
formatCountRate
public static String formatCountRate(double count, io.airlift.units.Duration duration, boolean longForm) -
formatDataSize
public static String formatDataSize(io.airlift.units.DataSize size, boolean longForm, boolean decimalDataSize) -
formatDataRate
public static String formatDataRate(io.airlift.units.DataSize dataSize, io.airlift.units.Duration duration, boolean longForm, boolean decimalDataSize) -
pluralize
-
formatTime
-
formatFinalTime
-
formatProgressBar
Format an indeterminate progress bar:[ <=> ] -
formatProgressBar
-