Class CliUtils
- java.lang.Object
-
- org.apache.flink.table.client.cli.CliUtils
-
public final class CliUtils extends Object
Utilities for CLI formatting.
-
-
Field Summary
Fields Modifier and Type Field Description static java.time.format.DateTimeFormatterTIME_FORMATTER
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancreateFile(Path filePath)Create the file as well as the parent directory.static List<org.jline.utils.AttributedString>formatTwoLineHelpOptions(int width, List<org.apache.flink.api.java.tuple.Tuple2<String,String>> options)static java.time.ZoneIdgetSessionTimeZone(org.apache.flink.configuration.ReadableConfig sessionConfig)Get time zone from the given session config.static voidnormalizeColumn(org.jline.utils.AttributedStringBuilder sb, String col, int maxWidth)static voidrepeatChar(org.jline.utils.AttributedStringBuilder sb, char c, int count)static String[]typesToString(org.apache.flink.table.types.DataType[] types)
-
-
-
Method Detail
-
repeatChar
public static void repeatChar(org.jline.utils.AttributedStringBuilder sb, char c, int count)
-
normalizeColumn
public static void normalizeColumn(org.jline.utils.AttributedStringBuilder sb, String col, int maxWidth)
-
formatTwoLineHelpOptions
public static List<org.jline.utils.AttributedString> formatTwoLineHelpOptions(int width, List<org.apache.flink.api.java.tuple.Tuple2<String,String>> options)
-
typesToString
public static String[] typesToString(org.apache.flink.table.types.DataType[] types)
-
createFile
public static boolean createFile(Path filePath)
Create the file as well as the parent directory.
-
getSessionTimeZone
public static java.time.ZoneId getSessionTimeZone(org.apache.flink.configuration.ReadableConfig sessionConfig)
Get time zone from the given session config.
-
-