Class Unset
- java.lang.Object
-
- dev.morphia.aggregation.experimental.stages.Stage
-
- dev.morphia.aggregation.experimental.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 Modifier and Type Method Description static Unset
fields(String name, String... names)
Creates a new stage with the given fieldsList<Expression>
getFields()
-
Methods inherited from class dev.morphia.aggregation.experimental.stages.Stage
getStageName
-
-
-
-
Method Detail
-
fields
public static Unset fields(String name, String... names)
Creates a new stage with the given fields- Parameters:
name
- the first fieldnames
- the others- Returns:
- this
-
getFields
public List<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.
-
-