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 boolean
isCompatibleColumn(ColumnType type)
Returns true if the givenColumnType
is compatible with this functionColumnType
returnType()
Returns 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 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:
summarize
in classAggregateFunction<DateTimeColumn,LocalDateTime>
-
isCompatibleColumn
public boolean isCompatibleColumn(ColumnType type)
Returns true if the givenColumnType
is compatible with this function- Specified by:
isCompatibleColumn
in classAggregateFunction<DateTimeColumn,LocalDateTime>
-
returnType
public ColumnType returnType()
Returns theColumnType
to be used for the values returned by this function- Specified by:
returnType
in classAggregateFunction<DateTimeColumn,LocalDateTime>
-
-