Class SystemAggregator
- java.lang.Object
-
- org.apache.derby.impl.sql.execute.SystemAggregator
-
- All Implemented Interfaces:
java.io.Externalizable,java.io.Serializable,Formatable,TypedFormat,ExecAggregator
- Direct Known Subclasses:
CountAggregator,OrderableAggregator
abstract class SystemAggregator extends java.lang.Object implements ExecAggregator
Abstract aggregator that is extended by all internal (system) aggregators.
-
-
Field Summary
Fields Modifier and Type Field Description private booleaneliminatedNulls
-
Constructor Summary
Constructors Constructor Description SystemAggregator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidaccumulate(DataValueDescriptor addend)voidaccumulate(DataValueDescriptor addend, java.lang.Object ga)Iteratively accumulates the addend into the aggregator.booleandidEliminateNulls()Return true if the aggregation eliminated at least one null from the input data set.voidreadExternal(java.io.ObjectInput in)java.lang.StringtoString()voidwriteExternal(java.io.ObjectOutput out)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.derby.iapi.sql.execute.ExecAggregator
getResult, merge, newAggregator, setup
-
Methods inherited from interface org.apache.derby.iapi.services.io.TypedFormat
getTypeFormatId
-
-
-
-
Method Detail
-
didEliminateNulls
public boolean didEliminateNulls()
Description copied from interface:ExecAggregatorReturn true if the aggregation eliminated at least one null from the input data set.- Specified by:
didEliminateNullsin interfaceExecAggregator
-
accumulate
public void accumulate(DataValueDescriptor addend, java.lang.Object ga) throws StandardException
Description copied from interface:ExecAggregatorIteratively accumulates the addend into the aggregator. Called on each member of the set of values that is being aggregated.- Specified by:
accumulatein interfaceExecAggregator- Parameters:
addend- the DataValueDescriptor addend (current input to the aggregation)ga- a result set getter- Throws:
StandardException- on error
-
accumulate
protected abstract void accumulate(DataValueDescriptor addend) throws StandardException
- Throws:
StandardException
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException- Specified by:
writeExternalin interfacejava.io.Externalizable- Throws:
java.io.IOException
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException- Specified by:
readExternalin interfacejava.io.Externalizable- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-