| Constructor and Description |
|---|
UnwindOptions() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getIncludeArrayIndex()
Gets the includeArrayIndex field if set or null
|
UnwindOptions |
includeArrayIndex(java.lang.String arrayIndexFieldName)
Sets the field to be used to store the array index of the unwound item
|
java.lang.Boolean |
isPreserveNullAndEmptyArrays()
If true the unwind stage will include documents that have null values or empty arrays
|
UnwindOptions |
preserveNullAndEmptyArrays(java.lang.Boolean preserveNullAndEmptyArrays)
Sets true if the unwind stage should include documents that have null values or empty arrays
|
public java.lang.Boolean isPreserveNullAndEmptyArrays()
public UnwindOptions preserveNullAndEmptyArrays(java.lang.Boolean preserveNullAndEmptyArrays)
preserveNullAndEmptyArrays - flag depicting if the unwind stage should include documents that have null values or empty arrayspublic java.lang.String getIncludeArrayIndex()
public UnwindOptions includeArrayIndex(java.lang.String arrayIndexFieldName)
arrayIndexFieldName - the field to be used to store the array index of the unwound item