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 String
functionName()
Returns this function's nameabstract boolean
isCompatibleColumn(ColumnType type)
Returns true if the givenColumnType
is compatible with this functionabstract ColumnType
returnType()
Returns theColumnType
to be used for the values returned by this functionabstract OUT
summarize(INCOL column)
Apply this function to the column argumentString
toString()
-
-
-
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 givenColumnType
is compatible with this function
-
returnType
public abstract ColumnType returnType()
Returns theColumnType
to be used for the values returned by this function
-
-