|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.sql.execute.AggregatorInfo
public class AggregatorInfo
This is a simple class used to store the run time information needed to invoke an aggregator. This class is serializable because it is stored with the plan. It is serializable rather than externalizable because it isn't particularly complicated and presumbably we don't need version control on plans.
Field Summary | |
---|---|
(package private) java.lang.String |
aggregateName
This class implements Formatable. |
(package private) java.lang.String |
aggregatorClassName
|
(package private) int |
aggregatorColumn
|
(package private) int |
inputColumn
|
(package private) boolean |
isDistinct
|
(package private) int |
outputColumn
|
(package private) ResultDescription |
rd
|
Constructor Summary | |
---|---|
AggregatorInfo()
Niladic constructor for Formattable |
|
AggregatorInfo(java.lang.String aggregateName,
java.lang.String aggregatorClassName,
int inputColNum,
int outputColNum,
int aggregatorColNum,
boolean isDistinct,
ResultDescription rd)
Consructor |
Method Summary | |
---|---|
java.lang.String |
getAggregateName()
Get the name of the aggergate (e.g. |
java.lang.String |
getAggregatorClassName()
Get the name of the class that implements the user aggregator for this class. |
int |
getAggregatorColNum()
Get the column number for the aggregator column. |
int |
getInputColNum()
Get the column number for the input (addend) column. |
int |
getOutputColNum()
Get the column number for the output (result) column. |
ResultDescription |
getResultDescription()
Get the result description for the input value to this aggregate. |
int |
getTypeFormatId()
Get the formatID which corresponds to this class. |
boolean |
isDistinct()
Is the aggergate distinct |
void |
readExternal(java.io.ObjectInput in)
Read this object from a stream of stored objects. |
java.lang.String |
toString()
Get a string for the object |
void |
writeExternal(java.io.ObjectOutput out)
Write this object out |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
java.lang.String aggregateName
int inputColumn
int outputColumn
int aggregatorColumn
java.lang.String aggregatorClassName
boolean isDistinct
ResultDescription rd
Constructor Detail |
---|
public AggregatorInfo()
public AggregatorInfo(java.lang.String aggregateName, java.lang.String aggregatorClassName, int inputColNum, int outputColNum, int aggregatorColNum, boolean isDistinct, ResultDescription rd)
aggregateName
- the name of the aggregate. Not
actually used anywhere except diagnostics. Should
be the names as found in the language (e.g. MAX).aggregatorClassName
- the name of the aggregator
used to process this aggregate. Aggregator expected
to have a null arg constructor and implement
Aggregator.inputColNum
- the input column numberoutputColNum
- the output column numberaggregatorColNum
- the column number in which the
aggregator is stored.isDistinct
- if it is a distinct aggregaterd
- the result descriptionMethod Detail |
---|
public java.lang.String getAggregateName()
public java.lang.String getAggregatorClassName()
public int getAggregatorColNum()
public int getInputColNum()
public int getOutputColNum()
public boolean isDistinct()
public ResultDescription getResultDescription()
public java.lang.String toString()
toString
in class java.lang.Object
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
- write bytes here
java.io.IOException
- thrown on errorpublic void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
in
- read this.
java.io.IOException
- thrown on error
java.lang.ClassNotFoundException
- thrown on errorpublic int getTypeFormatId()
getTypeFormatId
in interface TypedFormat
|
Built on Thu 2011-03-10 11:54:14+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |