Constructor and Description |
---|
CatalogUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
checkNotBranch(Identifier identifier,
String method) |
static void |
checkNotSystemDatabase(String database)
Validate database cannot be a system database.
|
static void |
checkNotSystemTable(Identifier identifier,
String method) |
static Table |
createSystemTable(Identifier identifier,
Table originTable) |
static String |
database(Path path) |
static String |
database(String path) |
static boolean |
isSystemDatabase(String database) |
static boolean |
isTableInSystemDatabase(Identifier identifier) |
static List<Partition> |
listPartitionsFromFileSystem(Table table) |
static Path |
path(String warehouse,
String database,
String table) |
static String |
stringifyPath(String warehouse,
String database,
String table) |
static String |
table(Path path) |
static String |
table(String path) |
static Map<String,String> |
tableDefaultOptions(Map<String,String> options) |
static String |
warehouse(String path) |
public static Map<String,String> tableDefaultOptions(Map<String,String> options)
public static boolean isSystemDatabase(String database)
public static void checkNotSystemDatabase(String database)
public static boolean isTableInSystemDatabase(Identifier identifier)
public static void checkNotSystemTable(Identifier identifier, String method)
public static void checkNotBranch(Identifier identifier, String method)
public static Table createSystemTable(Identifier identifier, Table originTable) throws Catalog.TableNotExistException
Catalog.TableNotExistException
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.