Package tech.tablesaw.aggregate
Class AnyIntAggregateFunction
- java.lang.Object
-
- tech.tablesaw.aggregate.AggregateFunction<Column<?>,Integer>
-
- tech.tablesaw.aggregate.AnyIntAggregateFunction
-
public abstract class AnyIntAggregateFunction extends AggregateFunction<Column<?>,Integer>
Partial implementation of AggregateFunction that returns an integer when applied to a column of any type
-
-
Constructor Summary
Constructors Constructor Description AnyIntAggregateFunction(String functionName)Constructs a CountFunction with the given name.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanisCompatibleColumn(ColumnType type)Returns true if the givenColumnTypeis compatible with this functionColumnTypereturnType()Returns theColumnTypeto be used for the values returned by this functionabstract Integersummarize(Column<?> column)Returns an Integer when this function is applied to the given column-
Methods inherited from class tech.tablesaw.aggregate.AggregateFunction
functionName, toString
-
-
-
-
Constructor Detail
-
AnyIntAggregateFunction
public AnyIntAggregateFunction(String functionName)
Constructs a CountFunction with the given name. The name is used to name an output column when this function is used bySummarizer
-
-
Method Detail
-
summarize
public abstract Integer summarize(Column<?> column)
Returns an Integer when this function is applied to the given column- Specified by:
summarizein classAggregateFunction<Column<?>,Integer>
-
isCompatibleColumn
public boolean isCompatibleColumn(ColumnType type)
Returns true if the givenColumnTypeis compatible with this function- Specified by:
isCompatibleColumnin classAggregateFunction<Column<?>,Integer>
-
returnType
public ColumnType returnType()
Returns theColumnTypeto be used for the values returned by this function- Specified by:
returnTypein classAggregateFunction<Column<?>,Integer>
-
-