Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.pivot.table.aggregator
Class Functions.CountFunction

java.lang.Object
  extended by com.citra.pivot.table.aggregator.Functions.CountFunction
All Implemented Interfaces:
Functions.Function
Enclosing class:
Functions

public static class Functions.CountFunction
extends Object
implements Functions.Function

The count function.


Field Summary
protected  boolean countNulls
          boolean indicating whether nulls should be included in the evaluation
 
Constructor Summary
Functions.CountFunction()
          Constructs a CountFunction.
Functions.CountFunction(boolean countNulls)
          Constructs a CountFunction.
 
Method Summary
 Object evaluate(List values, OlapType type)
          Produces an aggregate from a list of values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

countNulls

protected boolean countNulls
boolean indicating whether nulls should be included in the evaluation

Constructor Detail

Functions.CountFunction

public Functions.CountFunction()
Constructs a CountFunction.


Functions.CountFunction

public Functions.CountFunction(boolean countNulls)
Constructs a CountFunction.

Method Detail

evaluate

public Object evaluate(List values,
                       OlapType type)
Produces an aggregate from a list of values.

Specified by:
evaluate in interface Functions.Function
Parameters:
values - the list of values
type - the data type the evaluation will be based on
Returns:
the aggregate value

Copyright © 2011 Citra Technologies. All Rights Reserved.