public class Reducer extends Object implements IAssociativeReducer
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 IAssociativeReducer
public Schema getInputSchema()
getInputSchema
in interface IAssociativeReducer
public List<String> getKeyColumns()
getKeyColumns
in interface IAssociativeReducer
public Schema transform(Schema schema)
transform
in interface IAssociativeReducer
public IAggregableReduceOp<List<Writable>,List<Writable>> aggregableReducer()
IAssociativeReducer
aggregableReducer
in interface IAssociativeReducer
Copyright © 2022. All rights reserved.