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

cn.featherfly.hammer.expression.query.DistinctAwareImpl Maven / Gradle / Ivy

The newest version!

/*
 * All rights Reserved, Designed By zhongj
 * @Description:
 * @author: zhongj
 * @date: 2023-11-29 10:41:29
 * @Copyright: 2023 www.featherfly.cn Inc. All rights reserved.
 */
package cn.featherfly.hammer.expression.query;

import java.util.function.BiConsumer;

import cn.featherfly.common.operator.AggregateFunction;
import cn.featherfly.common.repository.QueryableField;

/**
 * DistinctAwareImpl.
 *
 * @author zhongj
 */
public class DistinctAwareImpl extends AbstractFetchField implements DistinctAware {

    /**
     * Instantiates a new distinct aware impl.
     *
     * @param index    the index
     * @param consumer the consumer
     * @param distinct the distinct
     */
    public DistinctAwareImpl(int index, BiConsumer consumer, boolean distinct) {
        super(index, consumer, distinct);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public DistinctNameAware name(String name) {
        return new DistinctNameAwareImpl(getIndex(), getConsumer(), name, isDistinct());
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy