Package tech.tablesaw.aggregate
Class DateTimeAggregateFunction
java.lang.Object
tech.tablesaw.aggregate.AggregateFunction<DateTimeColumn,LocalDateTime>
tech.tablesaw.aggregate.DateTimeAggregateFunction
public abstract class DateTimeAggregateFunction
extends AggregateFunction<DateTimeColumn,LocalDateTime>
A partial implementation of aggregate functions to summarize over a dateTime column
-
Constructor Summary
ConstructorDescriptionConstructs an DateTimeAggregateFunction 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 LocalDateTime
summarize
(DateTimeColumn column) Returns an LocalDateTime that is the result of applying this function to the given columnMethods inherited from class tech.tablesaw.aggregate.AggregateFunction
functionName, toString
-
Constructor Details
-
DateTimeAggregateFunction
Constructs an DateTimeAggregateFunction with the given name. The name is used as a column name in the output
-
-
Method Details
-
summarize
Returns an LocalDateTime that is the result of applying this function to the given column- Specified by:
summarize
in classAggregateFunction<DateTimeColumn,
LocalDateTime>
-
isCompatibleColumn
Returns true if the givenColumnType
is compatible with this function- Specified by:
isCompatibleColumn
in classAggregateFunction<DateTimeColumn,
LocalDateTime>
-
returnType
Returns theColumnType
to be used for the values returned by this function- Specified by:
returnType
in classAggregateFunction<DateTimeColumn,
LocalDateTime>
-