Package tech.tablesaw.aggregate
Class DateAggregateFunction
- java.lang.Object
-
- tech.tablesaw.aggregate.AggregateFunction<DateColumn,LocalDate>
-
- tech.tablesaw.aggregate.DateAggregateFunction
-
public abstract class DateAggregateFunction extends AggregateFunction<DateColumn,LocalDate>
A partial implementation of aggregate functions to summarize over a date column
-
-
Constructor Summary
Constructors Constructor Description DateAggregateFunction(String name)
Constructs a DateAggregateFunction 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 LocalDate
summarize(DateColumn column)
Returns an instance of LocalDate that is the result of applying this function to the given column-
Methods inherited from class tech.tablesaw.aggregate.AggregateFunction
functionName, toString
-
-
-
-
Constructor Detail
-
DateAggregateFunction
public DateAggregateFunction(String name)
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 Detail
-
summarize
public abstract LocalDate summarize(DateColumn column)
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
public boolean isCompatibleColumn(ColumnType type)
Returns true if the givenColumnType
is compatible with this function- Specified by:
isCompatibleColumn
in classAggregateFunction<DateColumn,LocalDate>
-
returnType
public ColumnType returnType()
Returns theColumnType
to be used for the values returned by this function- Specified by:
returnType
in classAggregateFunction<DateColumn,LocalDate>
-
-