Package org.mongojack
Class Aggregation.Project
- java.lang.Object
-
- org.mongojack.Aggregation.Project
-
- All Implemented Interfaces:
org.bson.conversions.Bson
,Aggregation.Stage<Aggregation.Expression<?>>
,InitializationRequiredForTransformation
- Enclosing class:
- Aggregation<T>
public static class Aggregation.Project extends Object implements Aggregation.Stage<Aggregation.Expression<?>>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DBProjection.ProjectionBuilder
builder()
Aggregation.Project
excludeId()
static Aggregation.Project
field(String field, String... path)
static Aggregation.Project
field(String field, Aggregation.Expression<?> value)
static Aggregation.Project
fields(String... fields)
static Aggregation.Project
fields(Collection<String> fields)
Aggregation.Project
set(String field, Aggregation.Expression<?> value)
Aggregation.Project
set(Map<String,Aggregation.Expression<?>> fields)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.mongojack.InitializationRequiredForTransformation
initialize
-
-
-
-
Method Detail
-
fields
public static Aggregation.Project fields(String... fields)
-
fields
public static Aggregation.Project fields(Collection<String> fields)
-
field
public static Aggregation.Project field(String field, Aggregation.Expression<?> value)
-
field
public static Aggregation.Project field(String field, String... path)
-
excludeId
public Aggregation.Project excludeId()
-
set
public Aggregation.Project set(String field, Aggregation.Expression<?> value)
- Specified by:
set
in interfaceAggregation.Stage<Aggregation.Expression<?>>
-
set
public Aggregation.Project set(Map<String,Aggregation.Expression<?>> fields)
- Specified by:
set
in interfaceAggregation.Stage<Aggregation.Expression<?>>
-
builder
public DBProjection.ProjectionBuilder builder()
-
-