public final class UnwindOptions
extends java.lang.Object
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
|
java.lang.String |
toString() |
@Nullable public java.lang.Boolean isPreserveNullAndEmptyArrays()
public UnwindOptions preserveNullAndEmptyArrays(@Nullable java.lang.Boolean preserveNullAndEmptyArrays)
preserveNullAndEmptyArrays
- flag depicting if the unwind stage should include documents that have null values or empty arrays@Nullable public java.lang.String getIncludeArrayIndex()
public UnwindOptions includeArrayIndex(@Nullable java.lang.String arrayIndexFieldName)
arrayIndexFieldName
- the field to be used to store the array index of the unwound itempublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2010 - 2020 Adobe. All Rights Reserved