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 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 Table |
loadTable(Catalog catalog,
Identifier identifier,
java.util.function.Function<Path,FileIO> dataFileIO,
java.util.function.Function<Path,FileIO> objectFileIO,
TableMetadata.Loader metadataLoader,
SnapshotCommit.Factory commitFactory)
Load table from
Catalog , this table can be:
1. |
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 void |
validateAutoCreateClose(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 List<Partition> listPartitionsFromFileSystem(Table table)
public static Table loadTable(Catalog catalog, Identifier identifier, java.util.function.Function<Path,FileIO> dataFileIO, java.util.function.Function<Path,FileIO> objectFileIO, TableMetadata.Loader metadataLoader, SnapshotCommit.Factory commitFactory) throws Catalog.TableNotExistException
Catalog
, this table can be:
FileStoreTable
, primary key table or append table.
Catalog.TableNotExistException
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.