com.anwen.mongo.enums.AggregateEnum Maven / Gradle / Ivy
package com.anwen.mongo.enums;
/**
* 管道枚举
*
* @author anwen
* @date 2024/6/16 下午9:31
*/
public enum AggregateEnum {
ADD_FIELDS("$addFields"),
SET("$set"),
BUCKET("$bucket"),
BUCKET_AUTO("$bucketAuto"),
MATCH("$match"),
PROJECT("$project"),
SORT("$sort"),
LOOKUP("$lookup"),
FACET("$facet"),
GRAPH_LOOKUP("$graphLookup"),
GROUP("$group"),
UNION_WITH("$unionWith"),
UNWIND("$unwind"),
MERGE("$merge"),
REPLACE_ROOT("$replaceRoot"),
MERGE_OBJECTS("$mergeObjects"),
EACH("$each"),
POSITION("$position"),
SLICE("$slice"),
;
AggregateEnum(String value) {
this.value = value;
}
private final String value;
public String getValue() {
return value;
}
}