public class SparkUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <C,T> Pair<C,T> |
catalogAndIdentifier(java.util.List<java.lang.String> nameParts,
java.util.function.Function<java.lang.String,C> catalogProvider,
java.util.function.BiFunction<java.lang.String[],java.lang.String,T> identiferProvider,
C currentCatalog,
java.lang.String[] currentNamespace)
A modified version of Spark's LookupCatalog.CatalogAndIdentifier.unapply
Attempts to find the catalog and identifier a multipart identifier represents
|
static FileIO |
serializableFileIO(Table table) |
static void |
validatePartitionTransforms(PartitionSpec spec)
Check whether the partition transforms in a spec can be used to write data.
|
public static void validatePartitionTransforms(PartitionSpec spec)
spec
- a PartitionSpecjava.lang.UnsupportedOperationException
- if the spec contains unknown partition transformspublic static <C,T> Pair<C,T> catalogAndIdentifier(java.util.List<java.lang.String> nameParts, java.util.function.Function<java.lang.String,C> catalogProvider, java.util.function.BiFunction<java.lang.String[],java.lang.String,T> identiferProvider, C currentCatalog, java.lang.String[] currentNamespace)
nameParts
- Multipart identifier representing a table