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