Package dev.morphia.query.internal
Class MappingIterable<U,V>
- java.lang.Object
-
- dev.morphia.query.internal.MappingIterable<U,V>
-
- Type Parameters:
U-V-
- All Implemented Interfaces:
com.mongodb.client.MongoIterable<V>,java.lang.Iterable<V>
public class MappingIterable<U,V> extends java.lang.Object implements com.mongodb.client.MongoIterable<V>Copied from the Java driverDeveloper note. This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
-
Constructor Summary
Constructors Constructor Description MappingIterable(com.mongodb.client.MongoIterable<U> iterable, com.mongodb.Function<U,V> mapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MappingIterable<U,V>batchSize(int batchSize)Vfirst()voidforEach(com.mongodb.Block<? super V> block)<A extends java.util.Collection<? super V>>
Ainto(A target)com.mongodb.client.MongoCursor<V>iterator()<W> com.mongodb.client.MongoIterable<W>map(com.mongodb.Function<V,W> newMap)
-
-
-
Method Detail
-
iterator
public com.mongodb.client.MongoCursor<V> iterator()
-
first
@Nullable public V first()
- Specified by:
firstin interfacecom.mongodb.client.MongoIterable<U>
-
forEach
public void forEach(com.mongodb.Block<? super V> block)
- Specified by:
forEachin interfacecom.mongodb.client.MongoIterable<U>
-
into
public <A extends java.util.Collection<? super V>> A into(A target)
- Specified by:
intoin interfacecom.mongodb.client.MongoIterable<U>
-
batchSize
public MappingIterable<U,V> batchSize(int batchSize)
- Specified by:
batchSizein interfacecom.mongodb.client.MongoIterable<U>
-
-