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

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

The newest version!

/*
 * All rights Reserved, Designed By zhongj
 * @Description:
 * @author: zhongj
 * @date: 2023-11-21 13:32:21
 * @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.Function;
import cn.featherfly.common.repository.QueryableField;

/**
 * NamedDistinctedFieldImpl.
 *
 * @author zhongj
 */
public class NamedDistinctedFieldImpl extends AbstractFetchField implements NamedDistinctedField {

    /**
     * Instantiates a new named distincted field impl.
     *
     * @param index    the index
     * @param consumer the consumer
     * @param name     the name
     * @param distinct the distinct
     */
    public NamedDistinctedFieldImpl(int index, BiConsumer consumer, String name,
            boolean distinct) {
        super(index, consumer, name, distinct);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public NamedAliasedDistinctedField alias(String alias) {
        return new NamedAliasedDistinctedFieldImpl(getIndex(), getConsumer(), name(), alias, isDistinct());
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy