Package tech.tablesaw.aggregate
Class TimeAggregateFunction
java.lang.Object
tech.tablesaw.aggregate.AggregateFunction<TimeColumn,LocalTime>
tech.tablesaw.aggregate.TimeAggregateFunction
A partial implementation of aggregate functions to summarize over a time column
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TimeAggregateFunction
(String name) Constructs a TimeAggregateFunction with the given name. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isCompatibleColumn
(ColumnType type) Returns true if the givenColumnType
is compatible with this functionReturns theColumnType
to be used for the values returned by this functionabstract LocalTime
summarize
(TimeColumn column) Returns a LocalTime object that is the result of applying this function to the given ColumnMethods inherited from class tech.tablesaw.aggregate.AggregateFunction
functionName, toString
-
Constructor Details
-
TimeAggregateFunction
Constructs a TimeAggregateFunction with the given name. The name is used as a column name in the output
-
-
Method Details
-
summarize
Returns a LocalTime object that is the result of applying this function to the given Column- Specified by:
summarize
in classAggregateFunction<TimeColumn,
LocalTime>
-
isCompatibleColumn
Returns true if the givenColumnType
is compatible with this function- Specified by:
isCompatibleColumn
in classAggregateFunction<TimeColumn,
LocalTime>
-
returnType
Returns theColumnType
to be used for the values returned by this function- Specified by:
returnType
in classAggregateFunction<TimeColumn,
LocalTime>
-