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

tech.tablesaw.aggregate.AggregateFunction 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 numeric column */
public abstract class AggregateFunction, OUT> {

  private final String functionName;

  public AggregateFunction(String functionName) {
    this.functionName = functionName;
  }

  public String functionName() {
    return functionName;
  }

  public abstract OUT summarize(INCOL column);

  public String toString() {
    return functionName();
  }

  public abstract boolean isCompatibleColumn(ColumnType type);

  public abstract ColumnType returnType();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy