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
ConstructorsConstructorDescriptionConstructs an DateTimeAggregateFunction with the given name. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisCompatibleColumn(ColumnType type) Returns true if the givenColumnTypeis compatible with this functionReturns theColumnTypeto be used for the values returned by this functionabstract LocalDateTimesummarize(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:
summarizein classAggregateFunction<DateTimeColumn,LocalDateTime>
-
isCompatibleColumn
Returns true if the givenColumnTypeis compatible with this function- Specified by:
isCompatibleColumnin classAggregateFunction<DateTimeColumn,LocalDateTime>
-
returnType
Returns theColumnTypeto be used for the values returned by this function- Specified by:
returnTypein classAggregateFunction<DateTimeColumn,LocalDateTime>
-