| Modifier and Type | Method and Description |
|---|---|
static Projection |
add(Object... args)
Creates an addition projection
|
static Projection |
divide(Object arg1,
Object arg2)
Creates a division projection
|
static Projection |
expression(String operator,
Object... args)
Provides access to arbitrary expressions taking an array of arguments, such as $concat
|
List<Object> |
getArguments() |
List<Projection> |
getProjections() |
String |
getSource() |
String |
getTarget() |
boolean |
isSuppressed() |
static Projection |
list(Object... args)
Creates a list projection
|
static Projection |
mod(Object arg1,
Object arg2)
Creates a modulo projection
|
static Projection |
multiply(Object... args)
Creates a multiplication projection
|
static Projection |
projection(String field)
Creates a projection on a field
|
static Projection |
projection(String field,
Projection projection,
Projection... subsequent)
Creates a projection on a field with subsequent projects applied.
|
static Projection |
projection(String field,
String projectedField)
Creates a projection on a field and renames it
|
static Projection |
subtract(Object arg1,
Object arg2)
Creates a subtraction projection
|
Projection |
suppress()
Marks this field to be suppressed from the output of this stage
|
String |
toString() |
public static Projection projection(String field)
field - the fieldpublic static Projection projection(String field, String projectedField)
field - the fieldprojectedField - the new field namepublic static Projection projection(String field, Projection projection, Projection... subsequent)
field - the fieldprojection - the project to applysubsequent - the other projections to applypublic static Projection expression(String operator, Object... args)
operator - the operator for the projectionargs - the projection argumentspublic static Projection list(Object... args)
args - the projection argumentspublic static Projection add(Object... args)
args - the projection argumentspublic static Projection subtract(Object arg1, Object arg2)
arg1 - subtraction argumentarg2 - subtraction argumentpublic static Projection multiply(Object... args)
args - the projection argumentspublic static Projection divide(Object arg1, Object arg2)
arg1 - subtraction argumentarg2 - subtraction argumentpublic static Projection mod(Object arg1, Object arg2)
arg1 - subtraction argumentarg2 - subtraction argumentpublic String getSource()
public List<Projection> getProjections()
public String getTarget()
public boolean isSuppressed()
public Projection suppress()