public final class CliUtils extends Object
Modifier and Type | Field and Description |
---|---|
static DateTimeFormatter |
TIME_FORMATTER |
Modifier and Type | Method and Description |
---|---|
static boolean |
createFile(Path filePath)
Create the file as well as the parent directory.
|
static List<org.jline.utils.AttributedString> |
formatTwoLineHelpOptions(int width,
List<Tuple2<String,String>> options) |
static ZoneId |
getSessionTimeZone(ReadableConfig sessionConfig)
Get time zone from the given session config.
|
static void |
normalizeColumn(org.jline.utils.AttributedStringBuilder sb,
String col,
int maxWidth) |
static void |
repeatChar(org.jline.utils.AttributedStringBuilder sb,
char c,
int count) |
static String[] |
typesToString(DataType[] types) |
public static final DateTimeFormatter TIME_FORMATTER
public static void repeatChar(org.jline.utils.AttributedStringBuilder sb, char c, int count)
public static void normalizeColumn(org.jline.utils.AttributedStringBuilder sb, String col, int maxWidth)
public static List<org.jline.utils.AttributedString> formatTwoLineHelpOptions(int width, List<Tuple2<String,String>> options)
public static boolean createFile(Path filePath)
public static ZoneId getSessionTimeZone(ReadableConfig sessionConfig)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.