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
Constructors Constructor Description DateTimeAggregateFunction(String name)Constructs an DateTimeAggregateFunction with the given name.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanisCompatibleColumn(ColumnType type)Returns true if the givenColumnTypeis compatible with this functionColumnTypereturnType()Returns 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 column-
Methods inherited from class tech.tablesaw.aggregate.AggregateFunction
functionName, toString
-
-
-
-
Constructor Detail
-
DateTimeAggregateFunction
public DateTimeAggregateFunction(String name)
Constructs an DateTimeAggregateFunction with the given name. The name is used as a column name in the output
-
-
Method Detail
-
summarize
public abstract LocalDateTime summarize(DateTimeColumn column)
Returns an LocalDateTime that is the result of applying this function to the given column- Specified by:
summarizein classAggregateFunction<DateTimeColumn,LocalDateTime>
-
isCompatibleColumn
public boolean isCompatibleColumn(ColumnType type)
Returns true if the givenColumnTypeis compatible with this function- Specified by:
isCompatibleColumnin classAggregateFunction<DateTimeColumn,LocalDateTime>
-
returnType
public ColumnType returnType()
Returns theColumnTypeto be used for the values returned by this function- Specified by:
returnTypein classAggregateFunction<DateTimeColumn,LocalDateTime>
-
-