package com.mongodb.client.internal;
import com.mongodb.MongoNamespace;
import com.mongodb.ReadConcern;
import com.mongodb.ReadPreference;
import com.mongodb.WriteConcern;
import com.mongodb.client.ClientSession;
import com.mongodb.lang.Nullable;
import org.bson.codecs.configuration.CodecRegistry;
import java.util.function.Consumer;
class Java8MapReduceIterableImpl<TDocument, TResult> extends MapReduceIterableImpl<TDocument, TResult> {
Java8MapReduceIterableImpl(final @Nullable ClientSession clientSession, final MongoNamespace namespace,
final Class<TDocument> documentClass, final Class<TResult> resultClass, final CodecRegistry codecRegistry,
final ReadPreference readPreference, final ReadConcern readConcern, final WriteConcern writeConcern,
final OperationExecutor executor, final String mapFunction, final String reduceFunction) {
super(clientSession, namespace, documentClass, resultClass, codecRegistry, readPreference, readConcern, writeConcern, executor,
mapFunction, reduceFunction);
}
@Override
public void forEach(final Consumer<? super TResult> action) {
Java8ForEachHelper.forEach(this, action);
}
}