public static class ArrayOperators.Zip extends Object
AggregationExpression for $zip.| Modifier and Type | Class and Description |
|---|---|
static class |
ArrayOperators.Zip.ZipBuilder |
| Modifier | Constructor and Description |
|---|---|
protected |
Zip(Map<String,Object> value) |
| Modifier and Type | Method and Description |
|---|---|
protected List<Object> |
append(Object value) |
protected Map<String,Object> |
append(String key,
Object value) |
static ArrayOperators.Zip.ZipBuilder |
arrayOf(AggregationExpression expression)
Start creating new
ArrayOperators.Zip. |
static ArrayOperators.Zip.ZipBuilder |
arrayOf(String fieldReference)
Start creating new
ArrayOperators.Zip. |
protected static List<Field> |
asFields(String... fieldRefs) |
ArrayOperators.Zip |
defaultTo(AggregationExpression expression)
Optionally provide a default value.
|
ArrayOperators.Zip |
defaultTo(Object[] array)
Optionally provide a default value.
|
ArrayOperators.Zip |
defaultTo(String fieldReference)
Optionally provide a default value.
|
protected String |
getMongoMethod() |
com.mongodb.DBObject |
toDbObject(AggregationOperationContext context)
|
com.mongodb.DBObject |
toDbObject(Object value,
AggregationOperationContext context) |
ArrayOperators.Zip |
useLongestLength()
Create new
ArrayOperators.Zip and set the useLongestLength property to true. |
protected List<Object> |
values() |
protected String getMongoMethod()
public static ArrayOperators.Zip.ZipBuilder arrayOf(String fieldReference)
ArrayOperators.Zip.fieldReference - must not be null.public static ArrayOperators.Zip.ZipBuilder arrayOf(AggregationExpression expression)
ArrayOperators.Zip.expression - must not be null.public ArrayOperators.Zip useLongestLength()
ArrayOperators.Zip and set the useLongestLength property to true.public ArrayOperators.Zip defaultTo(String fieldReference)
fieldReference - must not be null.public ArrayOperators.Zip defaultTo(AggregationExpression expression)
expression - must not be null.public ArrayOperators.Zip defaultTo(Object[] array)
array - must not be null.public com.mongodb.DBObject toDbObject(AggregationOperationContext context)
AggregationExpressiontoDbObject in interface AggregationExpressionpublic com.mongodb.DBObject toDbObject(Object value, AggregationOperationContext context)
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.