public class HiveCloneUtils extends Object
Modifier and Type | Field and Description |
---|---|
static java.util.function.Predicate<FileStatus> |
HIDDEN_PATH_FILTER |
Constructor and Description |
---|
HiveCloneUtils() |
Modifier and Type | Method and Description |
---|---|
static Map<String,String> |
getDatabaseOptions(HiveCatalog hiveCatalog,
String databaseName) |
static Schema |
hiveTableToPaimonSchema(HiveCatalog hiveCatalog,
Identifier identifier) |
static List<HivePartitionFiles> |
listFiles(HiveCatalog hiveCatalog,
Identifier identifier,
RowType partitionRowType,
String defaultPartitionName,
PartitionPredicate predicate) |
static List<Identifier> |
listTables(HiveCatalog hiveCatalog) |
static List<Identifier> |
listTables(HiveCatalog hiveCatalog,
String database) |
static String |
parseFormat(String serder) |
public static final java.util.function.Predicate<FileStatus> HIDDEN_PATH_FILTER
public static Map<String,String> getDatabaseOptions(HiveCatalog hiveCatalog, String databaseName) throws Exception
Exception
public static List<Identifier> listTables(HiveCatalog hiveCatalog) throws Exception
Exception
public static List<Identifier> listTables(HiveCatalog hiveCatalog, String database) throws Exception
Exception
public static Schema hiveTableToPaimonSchema(HiveCatalog hiveCatalog, Identifier identifier) throws Exception
Exception
public static List<HivePartitionFiles> listFiles(HiveCatalog hiveCatalog, Identifier identifier, RowType partitionRowType, String defaultPartitionName, @Nullable PartitionPredicate predicate) throws Exception
Exception
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.