public class GroupOperation extends Object implements ReduceOperation
Constructor and Description |
---|
GroupOperation(StreamComparator streamComparator,
int size) |
GroupOperation(StreamExpression expression,
StreamFactory factory) |
Modifier and Type | Method and Description |
---|---|
void |
operate(Tuple tuple) |
Tuple |
reduce() |
Explanation |
toExplanation(StreamFactory factory)
Returns an explanation about the stream object
|
StreamExpressionParameter |
toExpression(StreamFactory factory) |
public GroupOperation(StreamExpression expression, StreamFactory factory) throws IOException
IOException
public GroupOperation(StreamComparator streamComparator, int size)
public StreamExpressionParameter toExpression(StreamFactory factory) throws IOException
toExpression
in interface Expressible
IOException
public Explanation toExplanation(StreamFactory factory) throws IOException
Expressible
toExplanation
in interface Expressible
factory
- Stream factory for this, contains information about the function nameIOException
- throw on any errorpublic Tuple reduce()
reduce
in interface ReduceOperation
public void operate(Tuple tuple)
operate
in interface StreamOperation
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.