Package tech.tablesaw.aggregate
Class BooleanAggregateFunction
java.lang.Object
tech.tablesaw.aggregate.AggregateFunction<BooleanColumn,Boolean>
tech.tablesaw.aggregate.BooleanAggregateFunction
A partial implementation of aggregate functions to summarize over a boolean column
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a BooleanAggregateFunction with the given name. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isCompatibleColumn
(ColumnType type) Returns true if the givenColumnType
is compatible with this functionReturns theColumnType
to be used for the values returned by this functionabstract Boolean
summarize
(BooleanColumn column) Returns a Boolean value as a result of applying this function to the given columnMethods inherited from class tech.tablesaw.aggregate.AggregateFunction
functionName, toString
-
Constructor Details
-
BooleanAggregateFunction
Constructs a BooleanAggregateFunction with the given name. The name is used to name a column in the output when this function is used bySummarizer
-
-
Method Details
-
summarize
Returns a Boolean value as a result of applying this function to the given column- Specified by:
summarize
in classAggregateFunction<BooleanColumn,
Boolean>
-
isCompatibleColumn
Returns true if the givenColumnType
is compatible with this function- Specified by:
isCompatibleColumn
in classAggregateFunction<BooleanColumn,
Boolean>
-
returnType
Returns theColumnType
to be used for the values returned by this function- Specified by:
returnType
in classAggregateFunction<BooleanColumn,
Boolean>
-