Package tech.tablesaw.aggregate
Class StringAggregateFunction
java.lang.Object
tech.tablesaw.aggregate.AggregateFunction<StringColumn,String>
tech.tablesaw.aggregate.StringAggregateFunction
A partial implementation of aggregate functions to summarize over a StringColumn and return a
String
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Constructs anStringFunction
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 String
summarize
(StringColumn column) Apply this function to the column argumentMethods inherited from class tech.tablesaw.aggregate.AggregateFunction
functionName, toString
-
Constructor Details
-
StringAggregateFunction
Constructs anStringFunction
with the given name. The name may be used to name a column in the output when this function is used bySummarizer
-
-
Method Details
-
summarize
Description copied from class:AggregateFunction
Apply this function to the column argument- Specified by:
summarize
in classAggregateFunction<StringColumn,
String>
-
isCompatibleColumn
Returns true if the givenColumnType
is compatible with this function- Specified by:
isCompatibleColumn
in classAggregateFunction<StringColumn,
String>
-
returnType
Returns theColumnType
to be used for the values returned by this function- Specified by:
returnType
in classAggregateFunction<StringColumn,
String>
-