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

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

package tech.tablesaw.aggregate;

import tech.tablesaw.api.ColumnType;
import tech.tablesaw.columns.Column;

/**
 * A partial implementation of aggregate functions to summarize over a dateTime column
 */
public abstract class DateTimeAggregateFunction extends AggregateFunction {

    public DateTimeAggregateFunction(String name) {
        super(name);
    }

    abstract public double summarize(Column column);

    public boolean isCompatibleWith(ColumnType type) {
        return type.equals(ColumnType.LOCAL_DATE_TIME);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy