Package tech.tablesaw.aggregate
Class StringAggregateFunction
- java.lang.Object
-
- tech.tablesaw.aggregate.AggregateFunction<StringColumn,String>
-
- tech.tablesaw.aggregate.StringAggregateFunction
-
public abstract class StringAggregateFunction extends AggregateFunction<StringColumn,String>
A partial implementation of aggregate functions to summarize over a StringColumn and return a String
-
-
Constructor Summary
Constructors Constructor Description StringAggregateFunction(String name)
Constructs anStringFunction
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 String
summarize(StringColumn column)
Apply this function to the column argument-
Methods inherited from class tech.tablesaw.aggregate.AggregateFunction
functionName, toString
-
-
-
-
Constructor Detail
-
StringAggregateFunction
public StringAggregateFunction(String name)
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 Detail
-
summarize
public abstract String summarize(StringColumn column)
Description copied from class:AggregateFunction
Apply this function to the column argument- Specified by:
summarize
in classAggregateFunction<StringColumn,String>
-
isCompatibleColumn
public boolean isCompatibleColumn(ColumnType type)
Returns true if the givenColumnType
is compatible with this function- Specified by:
isCompatibleColumn
in classAggregateFunction<StringColumn,String>
-
returnType
public ColumnType returnType()
Returns theColumnType
to be used for the values returned by this function- Specified by:
returnType
in classAggregateFunction<StringColumn,String>
-
-