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> com.hazelcast.jet.core.ProcessorMetaSupplier readHadoopP(Permission permission, com.hazelcast.function.ConsumerEx<org.apache.hadoop.conf.Configuration> configureFn, com.hazelcast.function.BiFunctionEx<K, V, R> projectionFn) Returns a supplier of processors forFileSources.files(String).static <K,V, R> com.hazelcast.jet.core.ProcessorMetaSupplier readHadoopP(org.apache.hadoop.conf.Configuration configuration, com.hazelcast.function.BiFunctionEx<K, V, R> projectionFn) Returns a supplier of processors forHadoopSources.inputFormat(Configuration, BiFunctionEx).static <E,K, V> com.hazelcast.jet.core.ProcessorMetaSupplier writeHadoopP(org.apache.hadoop.conf.Configuration configuration, com.hazelcast.function.FunctionEx<? super E, K> extractKeyFn, com.hazelcast.function.FunctionEx<? super E, V> extractValueFn) Returns a supplier of processors forHadoopSinks.outputFormat(Configuration, FunctionEx, FunctionEx).
-
Method Details
-
readHadoopP
@Nonnull public static <K,V, com.hazelcast.jet.core.ProcessorMetaSupplier readHadoopPR> (@Nonnull org.apache.hadoop.conf.Configuration configuration, @Nonnull com.hazelcast.function.BiFunctionEx<K, V, R> projectionFn) Returns a supplier of processors forHadoopSources.inputFormat(Configuration, BiFunctionEx). -
readHadoopP
@Nonnull public static <K,V, com.hazelcast.jet.core.ProcessorMetaSupplier readHadoopPR> (@Nullable Permission permission, @Nonnull com.hazelcast.function.ConsumerEx<org.apache.hadoop.conf.Configuration> configureFn, @Nonnull com.hazelcast.function.BiFunctionEx<K, V, R> projectionFn) Returns a supplier of processors forFileSources.files(String). The configuration happens via providedconfigureFnfunction 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, com.hazelcast.jet.core.ProcessorMetaSupplier writeHadoopPV> (@Nonnull org.apache.hadoop.conf.Configuration configuration, @Nonnull com.hazelcast.function.FunctionEx<? super E, K> extractKeyFn, @Nonnull com.hazelcast.function.FunctionEx<? super E, V> extractValueFn) Returns a supplier of processors forHadoopSinks.outputFormat(Configuration, FunctionEx, FunctionEx).
-