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

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

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

import tech.tablesaw.api.ColumnType;
import tech.tablesaw.api.StringColumn;

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

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

  public abstract String summarize(StringColumn column);

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

  @Override
  public ColumnType returnType() {
    return ColumnType.STRING;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy