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
,StringFunction
,TimeAggregateFunction
An abstract class that provides a partial implementation of aggregate functions to summarize over
a column
-
Constructor Summary
ConstructorsConstructorDescriptionAggregateFunction
(String functionName) Constructs a function with the given name -
Method Summary
Modifier and TypeMethodDescriptionReturns this function's nameabstract boolean
isCompatibleColumn
(ColumnType type) Returns true if the givenColumnType
is compatible with this functionabstract ColumnType
Returns theColumnType
to be used for the values returned by this functionabstract OUT
Apply this function to the column argumenttoString()
-
Constructor Details
-
AggregateFunction
Constructs a function with the given name
-
-
Method Details
-
functionName
Returns this function's name -
summarize
Apply this function to the column argument -
toString
-
isCompatibleColumn
Returns true if the givenColumnType
is compatible with this function -
returnType
Returns theColumnType
to be used for the values returned by this function
-