|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cascading.operation.BaseOperation<ExtremaBase.Context> cascading.operation.aggregator.ExtremaBase
@Deprecated public abstract class ExtremaBase
Class ExtremaBase is the base class for Max and Min. The unique thing about Max and Min are that they return the original, un-coerced, argument value, though a coerced version of the argument is used for the comparison.
Nested Class Summary | |
---|---|
protected static class |
ExtremaBase.Context
Deprecated. |
Field Summary | |
---|---|
protected Collection |
ignoreValues
Deprecated. Field ignoreValues |
Fields inherited from class cascading.operation.BaseOperation |
---|
fieldDeclaration, numArgs, trace |
Fields inherited from interface cascading.operation.Operation |
---|
ANY |
Constructor Summary | |
---|---|
|
ExtremaBase(Fields fieldDeclaration)
Deprecated. |
protected |
ExtremaBase(Fields fieldDeclaration,
Object... ignoreValues)
Deprecated. |
|
ExtremaBase(int numArgs,
Fields fieldDeclaration)
Deprecated. |
Method Summary | |
---|---|
void |
aggregate(FlowProcess flowProcess,
AggregatorCall<ExtremaBase.Context> aggregatorCall)
Deprecated. Method aggregate is called for each TupleEntry value in the current grouping. |
protected abstract boolean |
compare(Number lhs,
Number rhs)
Deprecated. |
void |
complete(FlowProcess flowProcess,
AggregatorCall<ExtremaBase.Context> aggregatorCall)
Deprecated. Method complete will be issued last after every TupleEntry has been passed to the
Aggregator.aggregate(cascading.flow.FlowProcess, AggregatorCall)
method. |
boolean |
equals(Object object)
Deprecated. |
Collection |
getIgnoreValues()
Deprecated. |
protected abstract double |
getInitialValue()
Deprecated. |
protected Tuple |
getResult(AggregatorCall<ExtremaBase.Context> aggregatorCall)
Deprecated. |
int |
hashCode()
Deprecated. |
void |
prepare(FlowProcess flowProcess,
OperationCall<ExtremaBase.Context> operationCall)
Deprecated. Method prepare does nothing, and may safely be overridden. |
void |
start(FlowProcess flowProcess,
AggregatorCall<ExtremaBase.Context> aggregatorCall)
Deprecated. Method start initializes the aggregation procedure and is called for every unique grouping. |
Methods inherited from class cascading.operation.BaseOperation |
---|
cleanup, flush, getFieldDeclaration, getNumArgs, getTrace, isSafe, printOperationInternal, toString, toStringInternal |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface cascading.operation.Operation |
---|
cleanup, flush, getFieldDeclaration, getNumArgs, isSafe |
Field Detail |
---|
protected final Collection ignoreValues
Constructor Detail |
---|
@ConstructorProperties(value="fieldDeclaration") public ExtremaBase(Fields fieldDeclaration)
@ConstructorProperties(value={"numArgs","fieldDeclaration"}) public ExtremaBase(int numArgs, Fields fieldDeclaration)
@ConstructorProperties(value={"fieldDeclaration","ignoreValues"}) protected ExtremaBase(Fields fieldDeclaration, Object... ignoreValues)
Method Detail |
---|
public Collection getIgnoreValues()
public void prepare(FlowProcess flowProcess, OperationCall<ExtremaBase.Context> operationCall)
BaseOperation
prepare
in interface Operation<ExtremaBase.Context>
prepare
in class BaseOperation<ExtremaBase.Context>
public void start(FlowProcess flowProcess, AggregatorCall<ExtremaBase.Context> aggregatorCall)
Aggregator
Aggregator.aggregate(cascading.flow.FlowProcess, AggregatorCall)
call,
new HashMap() should be set on the AggregatorCall instance when OperationCall.getContext()
is null.
On the next grouping, start() will be called again, but this time with the old Map instance. In this case,
map.clear() should be invoked before returning.
start
in interface Aggregator<ExtremaBase.Context>
flowProcess
- of type FlowProcessaggregatorCall
- of type AggregatorCallprotected abstract double getInitialValue()
public void aggregate(FlowProcess flowProcess, AggregatorCall<ExtremaBase.Context> aggregatorCall)
Aggregator
TupleEntry
value in the current grouping.
TupleEntry entry, or entry.getTuple() should not be stored directly in the context. A copy of the tuple
should be made via the new Tuple( entry.getTuple() )
copy constructor.
aggregate
in interface Aggregator<ExtremaBase.Context>
flowProcess
- of type FlowProcessaggregatorCall
- of type AggregatorCallprotected abstract boolean compare(Number lhs, Number rhs)
public void complete(FlowProcess flowProcess, AggregatorCall<ExtremaBase.Context> aggregatorCall)
Aggregator
TupleEntry
has been passed to the
Aggregator.aggregate(cascading.flow.FlowProcess, AggregatorCall)
method. Any final calculation should be completed here and passed to the outputCollector.
complete
in interface Aggregator<ExtremaBase.Context>
flowProcess
- of type FlowProcessaggregatorCall
- of type AggregatorCallprotected Tuple getResult(AggregatorCall<ExtremaBase.Context> aggregatorCall)
public boolean equals(Object object)
equals
in class BaseOperation<ExtremaBase.Context>
public int hashCode()
hashCode
in class BaseOperation<ExtremaBase.Context>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |