public class AggregatorInfo extends java.lang.Object implements Formatable
Modifier and Type | Field and Description |
---|---|
(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 and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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
|
java.lang.String aggregateName
int inputColumn
int outputColumn
int aggregatorColumn
java.lang.String aggregatorClassName
boolean isDistinct
ResultDescription rd
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 descriptionpublic 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 herejava.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 errorjava.lang.ClassNotFoundException
- thrown on errorpublic int getTypeFormatId()
getTypeFormatId
in interface TypedFormat
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.