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