public class Reducer extends Object implements IAssociativeReducer
Reducer.Builder and ReduceOp for the full list.Reducer.Builder.multipleOpColmumns(List, String...)}
Uses are: (1) Reducing examples by a key (2) Reduction operations in time series (windowing ops, etc)
| Modifier and Type | Class and Description |
|---|---|
static class |
Reducer.Builder |
static class |
Reducer.ConditionalReduction |
| Constructor and Description |
|---|
Reducer(List<String> keyColumns,
ReduceOp defaultOp,
Map<String,List<ReduceOp>> opMap,
Map<String,AggregableColumnReduction> customReductions,
Map<String,Reducer.ConditionalReduction> conditionalReductions,
Set<String> ignoreInvalidInColumns) |
| Modifier and Type | Method and Description |
|---|---|
IAggregableReduceOp<List<Writable>,List<Writable>> |
aggregableReducer()
An aggregation that has the property that
reduce(List(reduce(List(l1, l2)), l3)) = reduce(List(l1, reduce(List(l2, l3)))
|
Schema |
getInputSchema() |
List<String> |
getKeyColumns() |
void |
setInputSchema(Schema schema) |
String |
toString() |
Schema |
transform(Schema schema)
Get the output schema, given the input schema
|
public void setInputSchema(Schema schema)
setInputSchema in interface IAssociativeReducerpublic Schema getInputSchema()
getInputSchema in interface IAssociativeReducerpublic List<String> getKeyColumns()
getKeyColumns in interface IAssociativeReducerpublic Schema transform(Schema schema)
transform in interface IAssociativeReducerpublic IAggregableReduceOp<List<Writable>,List<Writable>> aggregableReducer()
IAssociativeReduceraggregableReducer in interface IAssociativeReducerCopyright © 2020. All rights reserved.