Package tech.tablesaw.aggregate
Class BooleanIntAggregateFunction
- java.lang.Object
-
- tech.tablesaw.aggregate.AggregateFunction<BooleanColumn,Integer>
-
- tech.tablesaw.aggregate.BooleanIntAggregateFunction
-
public abstract class BooleanIntAggregateFunction extends AggregateFunction<BooleanColumn,Integer>
A partial implementation of an AggregateFunction that returns an Integer value when applied to a Boolean Column
-
-
Constructor Summary
Constructors Constructor Description BooleanIntAggregateFunction(String functionName)Constructs a BooleanCountFunction 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 Integersummarize(BooleanColumn column)Returns an Integer as a result of applying this function to the given column-
Methods inherited from class tech.tablesaw.aggregate.AggregateFunction
functionName, toString
-
-
-
-
Constructor Detail
-
BooleanIntAggregateFunction
public BooleanIntAggregateFunction(String functionName)
Constructs a BooleanCountFunction 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 Integer summarize(BooleanColumn column)
Returns an Integer as a result of applying this function to the given column- Specified by:
summarizein classAggregateFunction<BooleanColumn,Integer>
-
isCompatibleColumn
public boolean isCompatibleColumn(ColumnType type)
Returns true if the givenColumnTypeis compatible with this function- Specified by:
isCompatibleColumnin classAggregateFunction<BooleanColumn,Integer>
-
returnType
public ColumnType returnType()
Returns theColumnTypeto be used for the values returned by this function- Specified by:
returnTypein classAggregateFunction<BooleanColumn,Integer>
-
-