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

com.anwen.mongo.aggregate.pipeline.Project Maven / Gradle / Ivy

There is a newer version: 2.1.5
Show newest version
package com.anwen.mongo.aggregate.pipeline;

import com.anwen.mongo.conditions.interfaces.Projection;
import com.anwen.mongo.support.SFunction;

/**
 * $project阶段
 * @author anwen
 * @date 2024/6/10 下午4:45
 */
public interface Project {

    /**
     * 显示哪些字段
     * @param column 列名,字段名
     * @return Children
     * @author JiaChaoYang
     * @date 2023/8/1 21:37
     */
     Children projectDisplay(SFunction... column);

    /**
     * 显示哪些字段
     * @param column 列名、字段名
     * @return Children
     * @author JiaChaoYang
     * @date 2023/8/1 21:37
     */
    Children projectDisplay(String... column);

    /**
     * 不显示哪些字段
     * @param column 列名、字段名
     * @return Children
     * @author JiaChaoYang
     * @date 2023/8/1 21:37
     */
     Children projectNone(SFunction... column);

    /**
     * 不显示哪些字段
     * @param column 列名、字段名
     * @return Children
     * @author JiaChaoYang
     * @date 2023/8/1 21:38
     */
    Children projectNone(String... column);

    /**
     * 要显示哪写字段或者不显示哪些字段
     * @param displayId 是否显示_id
     * @param projection 对象
     * @return Children
     * @author JiaChaoYang
     * @date 2023/8/1 21:36
     */
    Children project(boolean displayId, Projection... projection);

    /**
     * 显示哪些字段
     * @param displayId 是否显示_id
     * @param column 列名,字段名
     * @return Children
     * @author JiaChaoYang
     * @date 2023/8/1 21:37
     */
     Children projectDisplay(boolean displayId,SFunction... column);

    /**
     * 显示哪些字段
     * @param displayId 是否显示_id
     * @param column 列名、字段名
     * @return Children
     * @author JiaChaoYang
     * @date 2023/8/1 21:37
     */
    Children projectDisplay(boolean displayId,String... column);

    /**
     * 不显示哪些字段
     * @param displayId 是否显示_id
     * @param column 列名、字段名
     * @return Children
     * @author JiaChaoYang
     * @date 2023/8/1 21:37
     */
     Children projectNone(boolean displayId,SFunction... column);

    /**
     * 不显示哪些字段
     * @param displayId 是否显示_id
     * @param column 列名、字段名
     * @return Children
     * @author JiaChaoYang
     * @date 2023/8/1 21:38
     */
    Children projectNone(boolean displayId,String... column);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy