public interface ColumnReduction extends Serializable, ColumnOp
Modifier and Type | Method and Description |
---|---|
ColumnMetaData |
getColumnOutputMetaData(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
|
String |
getColumnOutputName(String columnInputName)
Post-reduce: what is the name of the column?
For example, "myColumn" -> "mean(myColumn)"
|
Writable |
reduceColumn(List<Writable> columnData)
Reduce a single column.
|
columnName, columnNames, getInputSchema, outputColumnName, outputColumnNames, setInputSchema
Writable reduceColumn(List<Writable> columnData)
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 columnString getColumnOutputName(String columnInputName)
columnInputName
- Name of the column before reductionColumnMetaData getColumnOutputMetaData(String newColumnName, ColumnMetaData columnInputMeta)
columnInputMeta
- Metadata for the column, before reduceCopyright © 2022. All rights reserved.