All Downloads are FREE. Search and download functionalities are using the official Maven repository.

online.sanen.unabo.nosql.Aggregate Maven / Gradle / Ivy

The newest version!
package online.sanen.unabo.nosql;

import java.util.List;
import java.util.Map;
import java.util.function.Consumer;

import org.bson.Document;

import online.sanen.unabo.api.condition.Condition;
import online.sanen.unabo.api.structure.enums.Sorts;

/**
 * Aggregation operations
 * @author lazyToShow 
* Date: 2022年3月18日
* Time: 上午9:27:44
*/ public interface Aggregate { Aggregate group(String... groups); Aggregate addCondition(Condition condition); Aggregate addCondition(Consumer> conds); Aggregate avg(String... columns); Aggregate max(String... columns); Aggregate min(String... columns); Aggregate sum(String... columns); Aggregate count(String... columns); Aggregate sort(Sorts sorts, String... fields); Aggregate alias(Map alias); List maps(); int copyTo(String tableName); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy