Package io.trino.cli
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) static StringformatDataSize(io.airlift.units.DataSize size, boolean longForm) static StringformatFinalTime(io.airlift.units.Duration duration) static StringformatProgressBar(int width, int tick) Format an indeterminate progress bar: [ <=> ]static StringformatProgressBar(int width, int complete, int running, int total) 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
-
formatDataRate
public static String formatDataRate(io.airlift.units.DataSize dataSize, io.airlift.units.Duration duration, boolean longForm) -
pluralize
-
formatTime
-
formatFinalTime
-
formatProgressBar
Format an indeterminate progress bar: [ <=> ] -
formatProgressBar
-