Package dev.morphia.aggregation.stages
Class UnionWith
- java.lang.Object
-
- dev.morphia.aggregation.stages.Stage
-
- dev.morphia.aggregation.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.stages.Stage
aggregation, stageName
-
-
-
-
Constructor Detail
-
UnionWith
@MorphiaInternal 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.
-
UnionWith
@MorphiaInternal public UnionWith(Class<?> type, List<Stage> stages)
Creates the new stage- Parameters:
type
- the type 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
@Nullable @MorphiaInternal 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
@MorphiaInternal 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.
-
-