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

tech.tablesaw.aggregate.BooleanNumericFunction Maven / Gradle / Ivy

There is a newer version: 0.43.1
Show newest version
package tech.tablesaw.aggregate;

import tech.tablesaw.api.BooleanColumn;
import tech.tablesaw.api.ColumnType;

abstract class BooleanNumericFunction extends AggregateFunction {

    public BooleanNumericFunction(String functionName) {
        super(functionName);
    }

    @Override
    abstract public Double summarize(BooleanColumn column);

    @Override
    public boolean isCompatibleColumn(ColumnType type) {
        return type.equals(ColumnType.BOOLEAN);
    }

    @Override
    public ColumnType returnType() {
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy