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

com.dream.tdengine.def.TdChainGroupByDef Maven / Gradle / Ivy

package com.dream.tdengine.def;

import com.dream.antlr.smt.QueryStatement;
import com.dream.flex.def.ColumnDef;
import com.dream.flex.def.GroupByDef;
import com.dream.flex.factory.FlexQueryFactory;
import com.dream.flex.mapper.FlexMapper;

public class TdChainGroupByDef extends AbstractTdChainQueryDef implements GroupByDef {
    public TdChainGroupByDef(QueryStatement queryStatement, FlexQueryFactory flexQueryFactory, FlexMapper flexMapper) {
        super(queryStatement, flexQueryFactory, flexMapper);
    }

    public TdChainGroupByDef partitionBy(ColumnDef... columnDefs) {
        return new TdChainPartitionDef(statement(), creatorFactory(), flexMapper).partitionBy(columnDefs);
    }

    public TdChainSlidingDef interval(String intervalVal) {
        return super.interval(intervalVal);
    }

    public TdChainSlidingDef interval(String intervalVal, String intervalOffset) {
        return new TdChainPartitionDef(statement(), creatorFactory(), flexMapper).interval(intervalVal, intervalOffset);
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy