public class IcebergUtils extends Object
| Constructor and Description |
|---|
IcebergUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Throwable> |
findCause(Throwable t,
Class<T> expectedCauseType,
Predicate<T> causePredicate)
Returns an optional with the first throwable in the causal chain that is assignable to the provided cause type,
and satisfies the provided cause predicate,
Optional.empty() otherwise. |
static org.apache.hadoop.conf.Configuration |
getConfigurationFromFiles(List<String> configFilePaths)
Loads configuration files from the provided paths.
|
static Map<String,String> |
getDynamicProperties(ProcessContext context,
FlowFile flowFile)
Collects every non-blank dynamic property from the context.
|
public static org.apache.hadoop.conf.Configuration getConfigurationFromFiles(List<String> configFilePaths)
configFilePaths - list of config file paths separated with commapublic static Map<String,String> getDynamicProperties(ProcessContext context, FlowFile flowFile)
context - process contextflowFile - FlowFile to evaluate attribute expressionspublic static <T extends Throwable> Optional<T> findCause(Throwable t, Class<T> expectedCauseType, Predicate<T> causePredicate)
Optional.empty() otherwise.t - The throwable to inspect for the cause.Copyright © 2024 Apache NiFi Project. All rights reserved.