public static class ArithmeticOperators.Sinh extends Object
expression that calculates the hyperbolic sine of a value that is measured in
ArithmeticOperators.AngularUnit.RADIANS.| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractAggregationExpression.Expand
Expand a nested list of values to single entries or keep the list.
|
| Modifier and Type | Method and Description |
|---|---|
protected List<Object> |
append(Object value) |
protected List<Object> |
append(Object value,
AbstractAggregationExpression.Expand expandList) |
protected Map<String,Object> |
append(String key,
Object value) |
protected Map<String,Object> |
appendAt(int index,
String key,
Object value)
Append the given key at the position in the underlying
LinkedHashMap. |
protected Map<String,Object> |
argumentMap()
Get the argument map.
|
protected static List<Field> |
asFields(String... fieldRefs) |
protected boolean |
contains(Object key)
Check if the given key is available.
|
protected <T> T |
get(int index)
Get the value at a given index.
|
protected <T> T |
get(Object key)
Get the value for a given key.
|
protected String |
getMongoMethod() |
protected Map<String,Object> |
remove(String key) |
static ArithmeticOperators.Sinh |
sinh(Object value)
Creates a new
AggregationExpression that calculates the hyperbolic sine of a value that is measured in
ArithmeticOperators.AngularUnit.RADIANS. |
static ArithmeticOperators.Sinh |
sinh(Object value,
ArithmeticOperators.AngularUnit unit)
Creates a new
AggregationExpression that calculates the hyperbolic sine of a value that is measured in
the given unit. |
static ArithmeticOperators.Sinh |
sinhOf(AggregationExpression expression)
Creates a new
AggregationExpression that calculates the hyperbolic sine of a value that is measured in
ArithmeticOperators.AngularUnit.RADIANS. |
static ArithmeticOperators.Sinh |
sinhOf(AggregationExpression expression,
ArithmeticOperators.AngularUnit unit)
Creates a new
AggregationExpression that calculates the hyperbolic sine of a value that is measured in
the given unit. |
static ArithmeticOperators.Sinh |
sinhOf(String fieldReference)
Creates a new
AggregationExpression that calculates the hyperbolic sine of a value that is measured in
ArithmeticOperators.AngularUnit.RADIANS. |
static ArithmeticOperators.Sinh |
sinhOf(String fieldReference,
ArithmeticOperators.AngularUnit unit)
Creates a new
AggregationExpression that calculates the hyperbolic sine of a value that is measured in
the given unit. |
org.bson.Document |
toDocument(AggregationOperationContext context)
|
org.bson.Document |
toDocument(Object value,
AggregationOperationContext context) |
protected List<Object> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfrom, toDocumentcreate, createpublic static ArithmeticOperators.Sinh sinhOf(String fieldReference)
AggregationExpression that calculates the hyperbolic sine of a value that is measured in
ArithmeticOperators.AngularUnit.RADIANS.fieldReference - the name of the field that resolves to a numeric value.ArithmeticOperators.Sin.public static ArithmeticOperators.Sinh sinhOf(String fieldReference, ArithmeticOperators.AngularUnit unit)
AggregationExpression that calculates the hyperbolic sine of a value that is measured in
the given unit.
sinhOf("angle", DEGREES) as shortcut for
{ $sinh : { $degreesToRadians : "$angle" } }
.fieldReference - the name of the field that resolves to a numeric value.unit - the unit of measure used by the value of the given field.ArithmeticOperators.Sin.public static ArithmeticOperators.Sinh sinhOf(AggregationExpression expression)
AggregationExpression that calculates the hyperbolic sine of a value that is measured in
ArithmeticOperators.AngularUnit.RADIANS.
sinhOf("angle", DEGREES) as shortcut for eg.
sinhOf(ConvertOperators.valueOf("angle").degreesToRadians()).expression - the expression that resolves to a numeric value.ArithmeticOperators.Sin.public static ArithmeticOperators.Sinh sinhOf(AggregationExpression expression, ArithmeticOperators.AngularUnit unit)
AggregationExpression that calculates the hyperbolic sine of a value that is measured in
the given unit.expression - the expression that resolves to a numeric value.unit - the unit of measure used by the value of the given field.ArithmeticOperators.Sin.public static ArithmeticOperators.Sinh sinh(Object value)
AggregationExpression that calculates the hyperbolic sine of a value that is measured in
ArithmeticOperators.AngularUnit.RADIANS.value - anything (field, expression, ...) that resolves to a
numeric value.ArithmeticOperators.Sin.public static ArithmeticOperators.Sinh sinh(Object value, ArithmeticOperators.AngularUnit unit)
AggregationExpression that calculates the hyperbolic sine of a value that is measured in
the given unit.value - anything (field, expression, ...) that resolves to a
numeric valueunit - the unit of measure used by the value of the given field.ArithmeticOperators.Sin.protected String getMongoMethod()
public org.bson.Document toDocument(AggregationOperationContext context)
AggregationExpressiontoDocument in interface AggregationExpressioncontext - must not be null.Document) form of the expression.public org.bson.Document toDocument(Object value, AggregationOperationContext context)
protected List<Object> append(Object value, AbstractAggregationExpression.Expand expandList)
protected Map<String,Object> appendAt(int index, String key, Object value)
LinkedHashMap.index - key - value - protected <T> T get(int index)
T - index - protected <T> T get(Object key)
T - key - protected boolean contains(Object key)
key - Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.