Top Description Fields Constructors Methods
org.apache.derby.impl.sql.execute

pack-priv abstract Class SystemAggregator

extends Object
implements ExecAggregator
Class Inheritance
All Implemented Interfaces
org.apache.derby.iapi.sql.execute.ExecAggregator, org.apache.derby.iapi.services.io.Formatable, org.apache.derby.iapi.services.io.TypedFormat, java.io.Externalizable, java.io.Serializable
Known Direct Subclasses
org.apache.derby.impl.sql.execute.CountAggregator, org.apache.derby.impl.sql.execute.OrderableAggregator
Imports
org.apache.derby.shared.common.sanity.SanityManager, org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.sql.execute.ExecAggregator, org.apache.derby.iapi.types.DataValueDescriptor, java.io.ObjectOutput, .ObjectInput, .IOException

Abstract aggregator that is extended by all internal (system) aggregators.

Field Summary

Modifier and TypeField and Description
private boolean

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
accumulate(DataValueDescriptor
the DataValueDescriptor addend (current input to the aggregation)
addend
,
Object
a result set getter
ga
)

Implements org.apache.derby.iapi.sql.execute.ExecAggregator.accumulate.

Iteratively accumulates the addend into the aggregator.

protected abstract void
public boolean
didEliminateNulls()

Implements org.apache.derby.iapi.sql.execute.ExecAggregator.didEliminateNulls.

Return true if the aggregation eliminated at least one null from the input data set.

public void
readExternal(ObjectInput
the stream to read data from in order to restore the object
in
)

Implements java.io.Externalizable.readExternal.

The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public void
writeExternal(ObjectOutput
the stream to write the object to
out
)

Implements java.io.Externalizable.writeExternal.

The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

eliminatedNullsback to summary
private boolean eliminatedNulls

Constructor Detail

SystemAggregatorback to summary
pack-priv SystemAggregator()

Method Detail

accumulateback to summary
public void accumulate(DataValueDescriptor addend, Object ga) throws StandardException

Implements org.apache.derby.iapi.sql.execute.ExecAggregator.accumulate.

Doc from org.apache.derby.iapi.sql.execute.ExecAggregator.accumulate.

Iteratively accumulates the addend into the aggregator. Called on each member of the set of values that is being aggregated.

Parameters
addend:DataValueDescriptor

the DataValueDescriptor addend (current input to the aggregation)

ga:Object

a result set getter

Exceptions
StandardException:
on error
accumulateback to summary
protected abstract void accumulate(DataValueDescriptor addend) throws StandardException
didEliminateNullsback to summary
public boolean didEliminateNulls()

Implements org.apache.derby.iapi.sql.execute.ExecAggregator.didEliminateNulls.

Doc from org.apache.derby.iapi.sql.execute.ExecAggregator.didEliminateNulls.

Return true if the aggregation eliminated at least one null from the input data set.

readExternalback to summary
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException

Implements java.io.Externalizable.readExternal.

Doc from java.io.Externalizable.readExternal.

The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. The readExternal method must read the values in the same sequence and with the same types as were written by writeExternal.

Parameters
in:ObjectInput

the stream to read data from in order to restore the object

Exceptions
IOException:
if I/O errors occur
ClassNotFoundException:
If the class for an object being restored cannot be found.
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

writeExternalback to summary
public void writeExternal(ObjectOutput out) throws IOException

Implements java.io.Externalizable.writeExternal.

Doc from java.io.Externalizable.writeExternal.

The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.

Parameters
out:ObjectOutput

the stream to write the object to

Exceptions
IOException:
Includes any I/O exceptions that may occur