db.sql.api.cmd.executor.method.groupByMethod.IGroupByDatasetMultiGetterMethod Maven / Gradle / Ivy
package db.sql.api.cmd.executor.method.groupByMethod;
import db.sql.api.Cmd;
import db.sql.api.Getter;
import db.sql.api.cmd.GetterField;
import db.sql.api.cmd.basic.IDataset;
import db.sql.api.cmd.basic.IDatasetField;
import java.util.function.Function;
public interface IGroupByDatasetMultiGetterMethod {
, DATASET_FIELD extends IDatasetField> SELF groupBy(IDataset dataset, Getter... columns);
default , DATASET_FIELD extends IDatasetField> SELF groupBy(boolean when, IDataset dataset, Getter... columns) {
if (!when) {
return (SELF) this;
}
return this.groupBy(dataset, columns);
}
//---
, DATASET_FIELD extends IDatasetField> SELF groupBy(IDataset dataset, GetterField[] getterFields, Function f);
default , DATASET_FIELD extends IDatasetField> SELF groupBy(boolean when, IDataset dataset, GetterField[] getterFields, Function f) {
if (!when) {
return (SELF) this;
}
return this.groupBy(dataset, getterFields, f);
}
}