Package dev.morphia.aggregation.stages
Class Unset
- java.lang.Object
-
- dev.morphia.aggregation.stages.Stage
-
- dev.morphia.aggregation.stages.Unset
-
public class Unset extends Stage
Removes/excludes fields from documents.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Unset()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Unset
fields(String name, String... names)
Deprecated, for removal: This API element is subject to removal in a future version.List<dev.morphia.aggregation.expressions.impls.Expression>
getFields()
static Unset
unset(String name, String... names)
Creates a new stage with the given fields-
Methods inherited from class dev.morphia.aggregation.stages.Stage
aggregation, stageName
-
-
-
-
Method Detail
-
fields
@Deprecated(forRemoval=true) public static Unset fields(String name, String... names)
Deprecated, for removal: This API element is subject to removal in a future version.Creates a new stage with the given fields- Parameters:
name
- the first fieldnames
- the others- Returns:
- this
-
unset
public static Unset unset(String name, String... names)
Creates a new stage with the given fields- Parameters:
name
- the first fieldnames
- the others- Returns:
- this
- Since:
- 2.2
-
getFields
@MorphiaInternal public List<dev.morphia.aggregation.expressions.impls.Expression> getFields()
- Returns:
- the fields
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
-