Class AverageResult
- java.lang.Object
-
- com.alachisoft.ncache.runtime.queries.AverageResult
-
public class AverageResult extends java.lang.ObjectThis class is used for average caculation in case of executeScalar() method.
-
-
Constructor Summary
Constructors Constructor Description AverageResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigDecimalgetAverage()Gets the average as a result of the executeScalar method.java.math.BigDecimalgetCount()The number of items obtained as query result.java.math.BigDecimalgetSum()The sum of all the items that are obtained from the query result.voidsetCount(java.math.BigDecimal count)This method is intended to be called internally.voidsetSum(java.math.BigDecimal sum)This method is intended to be called internally.
-
-
-
Method Detail
-
getCount
public java.math.BigDecimal getCount()
The number of items obtained as query result.- Returns:
- The number of items.
-
setCount
public void setCount(java.math.BigDecimal count)
This method is intended to be called internally.- Parameters:
count-
-
getSum
public java.math.BigDecimal getSum()
The sum of all the items that are obtained from the query result.- Returns:
- The sum of all the items.
-
setSum
public void setSum(java.math.BigDecimal sum)
This method is intended to be called internally.- Parameters:
sum-
-
getAverage
public java.math.BigDecimal getAverage()
Gets the average as a result of the executeScalar method.- Returns:
- The average result.
-
-