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 booleanisCompatibleColumn(ColumnType type)Returns true if the givenColumnTypeis compatible with this functionColumnTypereturnType()Returns theColumnTypeto be used for the values returned by this functionabstract LocalDatesummarize(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:
summarizein classAggregateFunction<DateColumn,LocalDate>
-
isCompatibleColumn
public boolean isCompatibleColumn(ColumnType type)
Returns true if the givenColumnTypeis compatible with this function- Specified by:
isCompatibleColumnin classAggregateFunction<DateColumn,LocalDate>
-
returnType
public ColumnType returnType()
Returns theColumnTypeto be used for the values returned by this function- Specified by:
returnTypein classAggregateFunction<DateColumn,LocalDate>
-
-