public interface AggregableColumnReduction extends Serializable, ColumnOp
Reducer to provide custom reduction functionality.| Modifier and Type | Method and Description |
|---|---|
List<ColumnMetaData> |
getColumnOutputMetaData(List<String> newColumnName,
ColumnMetaData columnInputMeta)
Post-reduce: what is the metadata (type, etc) for this column?
For example: a "count unique" operation on a String (StringMetaData) column would return an Integer (IntegerMetaData) column
|
List<String> |
getColumnsOutputName(String columnInputName)
Post-reduce: what is the name of the column?
For example, "myColumn" -> "mean(myColumn)"
|
IAggregableReduceOp<Writable,List<Writable>> |
reduceOp()
Reduce a single column.
|
columnName, columnNames, getInputSchema, outputColumnName, outputColumnNames, setInputSchema, transformIAggregableReduceOp<Writable,List<Writable>> reduceOp()
List<Writable>
here is a single column in a reduction window,
and NOT the single row
(as is usually the case for List<Writable> instancescolumnData - The Writable objects for a columnList<String> getColumnsOutputName(String columnInputName)
columnInputName - Name of the column before reductionList<ColumnMetaData> getColumnOutputMetaData(List<String> newColumnName, ColumnMetaData columnInputMeta)
columnInputMeta - Metadata for the column, before reduceCopyright © 2017. All rights reserved.