public static final class UnwindOperation.UnwindOperationBuilder extends Object implements UnwindOperation.PathBuilder, UnwindOperation.IndexBuilder, UnwindOperation.EmptyArraysBuilder
UnwindOperation creation.| Modifier and Type | Method and Description |
|---|---|
UnwindOperation.EmptyArraysBuilder |
arrayIndex(String field)
Exposes the array index as
field. |
static UnwindOperation.PathBuilder |
newBuilder()
Creates new builder for
UnwindOperation. |
UnwindOperation.EmptyArraysBuilder |
noArrayIndex()
Do not expose the array index.
|
UnwindOperation.UnwindOperationBuilder |
path(String path) |
UnwindOperation |
preserveNullAndEmptyArrays()
Output documents if the array is null or empty.
|
UnwindOperation |
skipNullAndEmptyArrays()
Do not output documents if the array is null or empty.
|
public static UnwindOperation.PathBuilder newBuilder()
UnwindOperation.public UnwindOperation preserveNullAndEmptyArrays()
UnwindOperation.EmptyArraysBuilderpreserveNullAndEmptyArrays in interface UnwindOperation.EmptyArraysBuilderpublic UnwindOperation skipNullAndEmptyArrays()
UnwindOperation.EmptyArraysBuilderskipNullAndEmptyArrays in interface UnwindOperation.EmptyArraysBuilderpublic UnwindOperation.EmptyArraysBuilder arrayIndex(String field)
UnwindOperation.IndexBuilderfield.arrayIndex in interface UnwindOperation.IndexBuilderfield - field name to expose the field array index, must not be null or empty.public UnwindOperation.EmptyArraysBuilder noArrayIndex()
UnwindOperation.IndexBuildernoArrayIndex in interface UnwindOperation.IndexBuilderpublic UnwindOperation.UnwindOperationBuilder path(String path)
path in interface UnwindOperation.PathBuilderpath - the path to unwind, must not be null or empty.Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.