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 anStringFunctionwith 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 Stringsummarize(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 anStringFunctionwith 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:AggregateFunctionApply this function to the column argument- Specified by:
summarizein classAggregateFunction<StringColumn,String>
-
isCompatibleColumn
public boolean isCompatibleColumn(ColumnType type)
Returns true if the givenColumnTypeis compatible with this function- Specified by:
isCompatibleColumnin classAggregateFunction<StringColumn,String>
-
returnType
public ColumnType returnType()
Returns theColumnTypeto be used for the values returned by this function- Specified by:
returnTypein classAggregateFunction<StringColumn,String>
-
-