Class HadoopProcessors

java.lang.Object
com.hazelcast.jet.hadoop.HadoopProcessors

public final class HadoopProcessors extends Object
Static utility class with factories of Apache Hadoop Hadoop source and sink processors.
Since:
Jet 3.0
  • Method Details

    • readHadoopP

      @Nonnull public static <K, V, R> com.hazelcast.jet.core.ProcessorMetaSupplier readHadoopP(@Nonnull org.apache.hadoop.conf.Configuration configuration, @Nonnull com.hazelcast.function.BiFunctionEx<K,V,R> projectionFn)
      Returns a supplier of processors for HadoopSources.inputFormat(Configuration, BiFunctionEx).
    • readHadoopP

      @Nonnull public static <K, V, R> com.hazelcast.jet.core.ProcessorMetaSupplier readHadoopP(@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 for FileSources.files(String). The configuration happens via provided configureFn 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, V> com.hazelcast.jet.core.ProcessorMetaSupplier writeHadoopP(@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)