Package tech.tablesaw.aggregate
Class TimeAggregateFunction
- java.lang.Object
-
- tech.tablesaw.aggregate.AggregateFunction<TimeColumn,LocalTime>
-
- tech.tablesaw.aggregate.TimeAggregateFunction
-
public abstract class TimeAggregateFunction extends AggregateFunction<TimeColumn,LocalTime>
A partial implementation of aggregate functions to summarize over a time column
-
-
Constructor Summary
Constructors Constructor Description TimeAggregateFunction(String name)Constructs a TimeAggregateFunction 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 LocalTimesummarize(TimeColumn column)Returns a LocalTime object that is the result of applying this function to the given Column-
Methods inherited from class tech.tablesaw.aggregate.AggregateFunction
functionName, toString
-
-
-
-
Constructor Detail
-
TimeAggregateFunction
public TimeAggregateFunction(String name)
Constructs a TimeAggregateFunction with the given name. The name is used as a column name in the output
-
-
Method Detail
-
summarize
public abstract LocalTime summarize(TimeColumn column)
Returns a LocalTime object that is the result of applying this function to the given Column- Specified by:
summarizein classAggregateFunction<TimeColumn,LocalTime>
-
isCompatibleColumn
public boolean isCompatibleColumn(ColumnType type)
Returns true if the givenColumnTypeis compatible with this function- Specified by:
isCompatibleColumnin classAggregateFunction<TimeColumn,LocalTime>
-
returnType
public ColumnType returnType()
Returns theColumnTypeto be used for the values returned by this function- Specified by:
returnTypein classAggregateFunction<TimeColumn,LocalTime>
-
-