Package com.hazelcast.jet.hadoop
Class HadoopProcessors
java.lang.Object
com.hazelcast.jet.hadoop.HadoopProcessors
Static utility class with factories of Apache Hadoop Hadoop source and sink
processors.
- Since:
- Jet 3.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic <K,
V, R> ProcessorMetaSupplier readHadoopP
(Permission permission, ConsumerEx<org.apache.hadoop.conf.Configuration> configureFn, BiFunctionEx<K, V, R> projectionFn) Returns a supplier of processors forFileSources.files(String)
.static <K,
V, R> ProcessorMetaSupplier readHadoopP
(org.apache.hadoop.conf.Configuration configuration, BiFunctionEx<K, V, R> projectionFn) Returns a supplier of processors forHadoopSources.inputFormat(Configuration, BiFunctionEx)
.static <E,
K, V> ProcessorMetaSupplier writeHadoopP
(org.apache.hadoop.conf.Configuration configuration, FunctionEx<? super E, K> extractKeyFn, FunctionEx<? super E, V> extractValueFn) Returns a supplier of processors forHadoopSinks.outputFormat(Configuration, FunctionEx, FunctionEx)
.
-
Method Details
-
readHadoopP
@Nonnull public static <K,V, ProcessorMetaSupplier readHadoopPR> (@Nonnull org.apache.hadoop.conf.Configuration configuration, @Nonnull BiFunctionEx<K, V, R> projectionFn) Returns a supplier of processors forHadoopSources.inputFormat(Configuration, BiFunctionEx)
. -
readHadoopP
@Nonnull public static <K,V, ProcessorMetaSupplier readHadoopPR> (@Nullable Permission permission, @Nonnull ConsumerEx<org.apache.hadoop.conf.Configuration> configureFn, @Nonnull BiFunctionEx<K, V, R> projectionFn) Returns a supplier of processors forFileSources.files(String)
. The configuration happens via providedconfigureFn
function on the job coordinator node. This is useful in cases where setting up the configuration requires access to the server and only the cluster members have the access. -
writeHadoopP
@Nonnull public static <E,K, ProcessorMetaSupplier writeHadoopPV> (@Nonnull org.apache.hadoop.conf.Configuration configuration, @Nonnull FunctionEx<? super E, K> extractKeyFn, @Nonnull FunctionEx<? super E, V> extractValueFn) Returns a supplier of processors forHadoopSinks.outputFormat(Configuration, FunctionEx, FunctionEx)
.
-