Package tech.tablesaw.aggregate
Class DateAggregateFunction
java.lang.Object
tech.tablesaw.aggregate.AggregateFunction<DateColumn,LocalDate>
tech.tablesaw.aggregate.DateAggregateFunction
A partial implementation of aggregate functions to summarize over a date column
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
DateAggregateFunction
(String name) Constructs a DateAggregateFunction 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 LocalDate
summarize
(DateColumn column) Returns an instance of LocalDate that is the result of applying this function to the given columnMethods inherited from class tech.tablesaw.aggregate.AggregateFunction
functionName, toString
-
Constructor Details
-
DateAggregateFunction
Constructs a DateAggregateFunction with the given name. The name may be used to name a column in the output when this function is used bySummarizer
-
-
Method Details
-
summarize
Returns an instance of LocalDate that is the result of applying this function to the given column- Specified by:
summarize
in classAggregateFunction<DateColumn,
LocalDate>
-
isCompatibleColumn
Returns true if the givenColumnType
is compatible with this function- Specified by:
isCompatibleColumn
in classAggregateFunction<DateColumn,
LocalDate>
-
returnType
Returns theColumnType
to be used for the values returned by this function- Specified by:
returnType
in classAggregateFunction<DateColumn,
LocalDate>
-