Class UnionWith
- java.lang.Object
-
- dev.morphia.aggregation.experimental.stages.Stage
-
- dev.morphia.aggregation.experimental.stages.UnionWith
-
public class UnionWith extends Stage
Performs a union of two collections; i.e. $unionWith combines pipeline results from two collections into a single result set. The stage outputs the combined result set (including duplicates) to the next stage.- Since:
- 2.1
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCollectionName()
Class<?>
getCollectionType()
List<Stage>
getStages()
-
Methods inherited from class dev.morphia.aggregation.experimental.stages.Stage
getStageName
-
-
-
-
Constructor Detail
-
UnionWith
public UnionWith(String collection, List<Stage> stages)
Creates the new stage- Parameters:
collection
- the collection to processstages
- the pipeline
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
-
Method Detail
-
getCollectionName
public String getCollectionName()
- Returns:
- the collection name
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
getCollectionType
public Class<?> getCollectionType()
- Returns:
- the collection type
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
-