Package com.mongodb.client.model
Enum AggregationLevel
- java.lang.Object
-
- java.lang.Enum<AggregationLevel>
-
- com.mongodb.client.model.AggregationLevel
-
- All Implemented Interfaces:
Serializable
,Comparable<AggregationLevel>
@Deprecated public enum AggregationLevel extends Enum<AggregationLevel>
Deprecated.The aggregation level Where an aggregation command should take place.- Since:
- 3.10
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COLLECTION
Deprecated.Collection level aggregationDATABASE
Deprecated.Database level aggregation
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static AggregationLevel
valueOf(String name)
Deprecated.Returns the enum constant of this type with the specified name.static AggregationLevel[]
values()
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DATABASE
public static final AggregationLevel DATABASE
Deprecated.Database level aggregation
-
COLLECTION
public static final AggregationLevel COLLECTION
Deprecated.Collection level aggregation
-
-
Method Detail
-
values
public static AggregationLevel[] values()
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AggregationLevel c : AggregationLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AggregationLevel valueOf(String name)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-