Class SystemAggregator
java.lang.Object
org.apache.derby.impl.sql.execute.SystemAggregator
- All Implemented Interfaces:
Externalizable, Serializable, Formatable, TypedFormat, ExecAggregator
- Direct Known Subclasses:
CountAggregator, OrderableAggregator
Abstract aggregator that is extended by all internal
(system) aggregators.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidaccumulate(DataValueDescriptor addend) voidaccumulate(DataValueDescriptor addend, Object ga) Iteratively accumulates the addend into the aggregator.booleanReturn true if the aggregation eliminated at least one null from the input data set.voidtoString()void//////////////////////////////////////////////////////////Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ExecAggregator
getResult, merge, newAggregator, setupMethods inherited from interface TypedFormat
getTypeFormatId
-
Field Details
-
eliminatedNulls
private boolean eliminatedNulls
-
-
Constructor Details
-
SystemAggregator
SystemAggregator()
-
-
Method Details
-
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
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
- Throws:
StandardException
-
writeExternal
//////////////////////////////////////////////////////////- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
toString
-