Package tech.tablesaw.aggregate
Class AggregateFunction<INCOL extends Column<?>,OUT>
- java.lang.Object
-
- tech.tablesaw.aggregate.AggregateFunction<INCOL,OUT>
-
- Direct Known Subclasses:
AnyIntAggregateFunction,BooleanAggregateFunction,BooleanDoubleAggregateFunction,BooleanIntAggregateFunction,DateAggregateFunction,DateTimeAggregateFunction,InstantAggregateFunction,NumericAggregateFunction,StringAggregateFunction,TimeAggregateFunction
public abstract class AggregateFunction<INCOL extends Column<?>,OUT> extends Object
An abstract class that provides a partial implementation of aggregate functions to summarize over a column
-
-
Constructor Summary
Constructors Constructor Description AggregateFunction(String functionName)Constructs a function with the given name
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringfunctionName()Returns this function's nameabstract booleanisCompatibleColumn(ColumnType type)Returns true if the givenColumnTypeis compatible with this functionabstract ColumnTypereturnType()Returns theColumnTypeto be used for the values returned by this functionabstract OUTsummarize(INCOL column)Apply this function to the column argumentStringtoString()
-
-
-
Constructor Detail
-
AggregateFunction
public AggregateFunction(String functionName)
Constructs a function with the given name
-
-
Method Detail
-
functionName
public String functionName()
Returns this function's name
-
isCompatibleColumn
public abstract boolean isCompatibleColumn(ColumnType type)
Returns true if the givenColumnTypeis compatible with this function
-
returnType
public abstract ColumnType returnType()
Returns theColumnTypeto be used for the values returned by this function
-
-