tech.tablesaw.aggregate.TimeAggregateFunction Maven / Gradle / Ivy
package tech.tablesaw.aggregate;
import java.time.LocalTime;
import tech.tablesaw.api.ColumnType;
import tech.tablesaw.api.TimeColumn;
/** A partial implementation of aggregate functions to summarize over a time column */
public abstract class TimeAggregateFunction extends AggregateFunction {
public TimeAggregateFunction(String name) {
super(name);
}
public abstract LocalTime summarize(TimeColumn column);
@Override
public boolean isCompatibleColumn(ColumnType type) {
return type.equals(ColumnType.LOCAL_TIME);
}
@Override
public ColumnType returnType() {
return ColumnType.LOCAL_TIME;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy