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