public class Calculator extends Object
| Modifier and Type | Method and Description |
|---|---|
Number |
average(String key)
Return the average of all the values stored across
key. |
Number |
average(String key,
Collection<Long> records)
This method assumes that all the values are numeric.
|
Number |
average(String key,
Collection<Long> records,
Timestamp timestamp)
This method assumes that all the values are numeric.
|
Number |
average(String key,
Criteria criteria)
Return the average of all the values for
key in
each of the records that match the Criteria. |
Number |
average(String key,
Criteria criteria,
Timestamp timestamp)
Return the average of all the values for
key in
each of the records that match the Criteria. |
Number |
average(String key,
long record)
Return the average of all the values stored for
key in
record. |
Number |
average(String key,
long record,
Timestamp timestamp)
This method assumes that all the values are numeric.
|
Number |
average(String key,
String ccl)
Return the average of all the values for
key in
each of the records that match the criteria. |
Number |
average(String key,
String ccl,
Timestamp timestamp)
Return the average of all the values at
timestamp for key
in each of the records that match the criteria. |
Number |
average(String key,
Timestamp timestamp)
Return the average of all the values stored across
key at
timestamp. |
long |
count(String key)
Return the count of all the values stored across
key. |
long |
count(String key,
Collection<Long> records)
This method assumes that all the values are numeric.
|
long |
count(String key,
Collection<Long> records,
Timestamp timestamp)
This method assumes that all the values are numeric.
|
long |
count(String key,
Criteria criteria)
Return the count of all the values for
key in
each of the records that match the Criteria. |
long |
count(String key,
Criteria criteria,
Timestamp timestamp)
Return the count of all the values for
key in
each of the records that match the Criteria. |
long |
count(String key,
long record)
Return the count of all the values stored for
key in
record. |
long |
count(String key,
long record,
Timestamp timestamp)
This method assumes that all the values are numeric.
|
long |
count(String key,
String ccl)
Return the count of all the values for
key in
each of the records that match the criteria. |
long |
count(String key,
String ccl,
Timestamp timestamp)
Return the count of all the values at
timestamp for key
in
each of the records that match the criteria. |
long |
count(String key,
Timestamp timestamp)
Return the count of all the values stored across
key at
timestamp. |
Number |
max(String key)
Return the max of all the values stored across
key. |
Number |
max(String key,
Collection<Long> records)
This method assumes that all the values are numeric.
|
Number |
max(String key,
Collection<Long> records,
Timestamp timestamp)
This method assumes that all the values are numeric.
|
Number |
max(String key,
Criteria criteria)
Return the max of all the values for
key in
each of the records that match the Criteria. |
Number |
max(String key,
Criteria criteria,
Timestamp timestamp)
Return the max of all the values for
key in
each of the records that match the Criteria. |
Number |
max(String key,
long record)
Return the max of all the values stored for
key in
record. |
Number |
max(String key,
long record,
Timestamp timestamp)
This method assumes that all the values are numeric.
|
Number |
max(String key,
String ccl)
Return the max of all the values for
key in
each of the records that match the criteria. |
Number |
max(String key,
String ccl,
Timestamp timestamp)
Return the max of all the values at
timestamp for key in
each of the records that match the criteria. |
Number |
max(String key,
Timestamp timestamp)
Return the max of all the values stored across
key at
timestamp. |
Number |
min(String key)
Return the min of all the values stored across
key. |
Number |
min(String key,
Collection<Long> records)
This method assumes that all the values are numeric.
|
Number |
min(String key,
Collection<Long> records,
Timestamp timestamp)
This method assumes that all the values are numeric.
|
Number |
min(String key,
Criteria criteria)
Return the min of all the values for
key in
each of the records that match the Criteria. |
Number |
min(String key,
Criteria criteria,
Timestamp timestamp)
Return the min of all the values for
key in
each of the records that match the Criteria. |
Number |
min(String key,
long record)
Return the min of all the values stored for
key in
record. |
Number |
min(String key,
long record,
Timestamp timestamp)
This method assumes that all the values are numeric.
|
Number |
min(String key,
String ccl)
Return the min of all the values for
key in
each of the records that match the criteria. |
Number |
min(String key,
String ccl,
Timestamp timestamp)
Return the min of all the values at
timestamp for key in
each of the records that match the criteria. |
Number |
min(String key,
Timestamp timestamp)
Return the min of all the values stored across
key at
timestamp. |
Number |
sum(String key)
Return the sum of all the values stored across
key. |
Number |
sum(String key,
Collection<Long> records)
This method assumes that all the values are numeric.
|
Number |
sum(String key,
Collection<Long> records,
Timestamp timestamp)
This method assumes that all the values are numeric.
|
Number |
sum(String key,
Criteria criteria)
Return the sum of all the values for
key in
each of the records that match the Criteria. |
Number |
sum(String key,
Criteria criteria,
Timestamp timestamp)
Return the sum of all the values for
key in
each of the records that match the Criteria. |
Number |
sum(String key,
long record)
Return the sum of all the values stored for
key in
record. |
Number |
sum(String key,
long record,
Timestamp timestamp)
This method assumes that all the values are numeric.
|
Number |
sum(String key,
String ccl)
Return the sum of all the values for
key in
each of the records that match the criteria. |
Number |
sum(String key,
String ccl,
Timestamp timestamp)
Return the sum of all the values at
timestamp for key in
each of the records that match the criteria. |
Number |
sum(String key,
Timestamp timestamp)
Return the sum of all the values stored across
key at
timestamp. |
public Number average(String key)
key.
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - a field namepublic Number average(String key, Collection<Long> records)
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - records - public Number average(String key, Collection<Long> records, Timestamp timestamp)
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - records - timestamp - public Number average(String key, Criteria criteria)
key in
each of the records that match the Criteria.
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - {@link - Criteria}public Number average(String key, Criteria criteria, Timestamp timestamp)
key in
each of the records that match the Criteria.
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - the field name{@link - Criteria}timestamp - the Timestamp at which the values are selectedpublic Number average(String key, long record)
key in
record.
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - the field namerecord - the record idpublic Number average(String key, long record, Timestamp timestamp)
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - record - timestamp - public Number average(String key, String ccl)
key in
each of the records that match the criteria.
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - the field nameccl - public Number average(String key, String ccl, Timestamp timestamp)
timestamp for key
in each of the records that match the criteria.
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - the field namecriteria - a criteria written using the Concourse Criteria Language
(CCL)timestamp - the Timestamp at which the values are selectedpublic Number average(String key, Timestamp timestamp)
key at
timestamp.
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - a field nametimestamp - the Timestamp at which the values are selectedpublic long count(String key)
key.
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - a field namepublic long count(String key, Collection<Long> records)
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - records - public long count(String key, Collection<Long> records, Timestamp timestamp)
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - records - timestamp - public long count(String key, Criteria criteria)
key in
each of the records that match the Criteria.
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - {@link - Criteria}public long count(String key, Criteria criteria, Timestamp timestamp)
key in
each of the records that match the Criteria.
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - the field name{@link - Criteria}timestamp - the Timestamp at which the values are selectedpublic long count(String key, long record)
key in
record.
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - the field namerecord - the record idpublic long count(String key, long record, Timestamp timestamp)
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - record - timestamp - public long count(String key, String ccl)
key in
each of the records that match the criteria.
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - the field nameccl - public long count(String key, String ccl, Timestamp timestamp)
timestamp for key
in
each of the records that match the criteria.
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - the field namecriteria - a criteria written using the Concourse Criteria Language
(CCL)timestamp - the Timestamp at which the values are selectedpublic long count(String key, Timestamp timestamp)
key at
timestamp.
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - a field nametimestamp - the Timestamp at which the values are selectedpublic Number max(String key)
key.
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - a field namepublic Number max(String key, Collection<Long> records)
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - records - public Number max(String key, Collection<Long> records, Timestamp timestamp)
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - records - timestamp - public Number max(String key, Criteria criteria)
key in
each of the records that match the Criteria.
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - {@link - Criteria}public Number max(String key, Criteria criteria, Timestamp timestamp)
key in
each of the records that match the Criteria.
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - the field name{@link - Criteria}timestamp - the Timestamp at which the values are selectedpublic Number max(String key, long record)
key in
record.
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - the field namerecord - the record idpublic Number max(String key, long record, Timestamp timestamp)
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - record - timestamp - public Number max(String key, String ccl)
key in
each of the records that match the criteria.
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - the field nameccl - public Number max(String key, String ccl, Timestamp timestamp)
timestamp for key in
each of the records that match the criteria.
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - the field namecriteria - a criteria written using the Concourse Criteria Language
(CCL)timestamp - the Timestamp at which the values are selectedpublic Number max(String key, Timestamp timestamp)
key at
timestamp.
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - a field nametimestamp - the Timestamp at which the values are selectedpublic Number min(String key)
key.
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - a field namepublic Number min(String key, Collection<Long> records)
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - records - public Number min(String key, Collection<Long> records, Timestamp timestamp)
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - records - timestamp - public Number min(String key, Criteria criteria)
key in
each of the records that match the Criteria.
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - {@link - Criteria}public Number min(String key, Criteria criteria, Timestamp timestamp)
key in
each of the records that match the Criteria.
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - the field name{@link - Criteria}timestamp - the Timestamp at which the values are selectedpublic Number min(String key, long record)
key in
record.
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - the field namerecord - the record idpublic Number min(String key, long record, Timestamp timestamp)
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - record - timestamp - public Number min(String key, String ccl)
key in
each of the records that match the criteria.
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - the field nameccl - public Number min(String key, String ccl, Timestamp timestamp)
timestamp for key in
each of the records that match the criteria.
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - the field namecriteria - a criteria written using the Concourse Criteria Language
(CCL)timestamp - the Timestamp at which the values are selectedpublic Number min(String key, Timestamp timestamp)
key at
timestamp.
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - a field nametimestamp - the Timestamp at which the values are selectedpublic Number sum(String key)
key.
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - a field namepublic Number sum(String key, Collection<Long> records)
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - records - public Number sum(String key, Collection<Long> records, Timestamp timestamp)
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - records - timestamp - public Number sum(String key, Criteria criteria)
key in
each of the records that match the Criteria.
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - {@link - Criteria}public Number sum(String key, Criteria criteria, Timestamp timestamp)
key in
each of the records that match the Criteria.
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - the field name{@link - Criteria}timestamp - the Timestamp at which the values are selectedpublic Number sum(String key, long record)
key in
record.
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - the field namerecord - the record idpublic Number sum(String key, long record, Timestamp timestamp)
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - record - timestamp - public Number sum(String key, String ccl)
key in
each of the records that match the criteria.
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - the field nameccl - public Number sum(String key, String ccl, Timestamp timestamp)
timestamp for key in
each of the records that match the criteria.
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - the field namecriteria - a criteria written using the Concourse Criteria Language
(CCL)timestamp - the Timestamp at which the values are selectedpublic Number sum(String key, Timestamp timestamp)
key at
timestamp.
This method assumes that all the values are numeric. An exception will be thrown if any non-numeric values are encountered.
key - a field nametimestamp - the Timestamp at which the values are selected