Package tech.tablesaw.aggregate
Class BooleanDoubleAggregateFunction
- java.lang.Object
-
- tech.tablesaw.aggregate.AggregateFunction<BooleanColumn,Double>
-
- tech.tablesaw.aggregate.BooleanDoubleAggregateFunction
-
public abstract class BooleanDoubleAggregateFunction extends AggregateFunction<BooleanColumn,Double>
Partial implementation of Aggregate function that returns a Double value when applied to a BooleanColumn
-
-
Constructor Summary
Constructors Constructor Description BooleanDoubleAggregateFunction(String functionName)
Constructs a BooleanNumericFunction 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 Double
summarize(BooleanColumn column)
Returns a double that is the result of applying this function to the given column-
Methods inherited from class tech.tablesaw.aggregate.AggregateFunction
functionName, toString
-
-
-
-
Constructor Detail
-
BooleanDoubleAggregateFunction
public BooleanDoubleAggregateFunction(String functionName)
Constructs a BooleanNumericFunction 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 Double summarize(BooleanColumn column)
Returns a double that is the result of applying this function to the given column- Specified by:
summarize
in classAggregateFunction<BooleanColumn,Double>
-
isCompatibleColumn
public boolean isCompatibleColumn(ColumnType type)
Returns true if the givenColumnType
is compatible with this function- Specified by:
isCompatibleColumn
in classAggregateFunction<BooleanColumn,Double>
-
returnType
public ColumnType returnType()
Returns theColumnType
to be used for the values returned by this function- Specified by:
returnType
in classAggregateFunction<BooleanColumn,Double>
-
-