Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jdaemon.era
Class Aggregate  view Aggregate download Aggregate.java

java.lang.Object
  extended byorg.jdaemon.era.Aggregate

public class Aggregate
extends java.lang.Object

Simple class representing a calculation of aggregate values by a Cube


Field Summary
private  java.lang.String attribute
           
static int COUNT
          Parameter value indicating count of attribute values should be calculated
static int MAX
          Parameter value indicating max attribute value should be calculated
static int MIN
          Parameter value indicating min attribute value should be calculated
static int SUM
          Parameter value indicating sum of attribute values should be calculated
private  int type
           
 
Constructor Summary
Aggregate(java.lang.String attribute_name, int type)
          Creates a new instance of Aggregate
 
Method Summary
 java.lang.String getAttributeName()
          Get the attriubte name on which aggregation will be performed
 int getType()
           
 java.lang.Object getValue(Cube cube)
          Get the value of this aggregate from a cube
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUM

public static final int SUM
Parameter value indicating sum of attribute values should be calculated

See Also:
Constant Field Values

MAX

public static final int MAX
Parameter value indicating max attribute value should be calculated

See Also:
Constant Field Values

MIN

public static final int MIN
Parameter value indicating min attribute value should be calculated

See Also:
Constant Field Values

COUNT

public static final int COUNT
Parameter value indicating count of attribute values should be calculated

See Also:
Constant Field Values

type

private int type

attribute

private java.lang.String attribute
Constructor Detail

Aggregate

public Aggregate(java.lang.String attribute_name,
                 int type)
Creates a new instance of Aggregate

Method Detail

getType

public int getType()

getAttributeName

public java.lang.String getAttributeName()
Get the attriubte name on which aggregation will be performed


getValue

public java.lang.Object getValue(Cube cube)
Get the value of this aggregate from a cube