Combine two stats into a new stat
Non type-safe add - if stats are not the same type, will throw an exception
Non type-safe add - if stats are not the same type, will throw an exception
the other stat to add
Add another stat to this stat.
Non type-safe add - if stats are not the same type, will throw an exception
Non type-safe add - if stats are not the same type, will throw an exception
the other stat to add
Clears the stat to its original state when first initialized.
Necessary method used by the StatIterator.
Compares the two stats for equivalence.
Compute statistics based upon the given simple feature.
property name of the attribute to track
simple feature type
Returns a JSON representation of the Stat
Returns a representation of the Stat to be serialized
Returns a representation of the Stat to be serialized
This function should return a representation (view) of the Stat to be serialized as JSON. Instances of Map can be used to represent JSON dictionaries or Seq for JSON arrays. A collection.SortedMap such as collection.immutable.ListMap is recommended if key order should be deterministic. Other types may be used but could require the creation and registration of custom serializers dependent on the JSON framework being utilized (currently Gson).
stat as a json serializable object
Tries to remove the given simple feature from the compiled statistics.
TopK stat
attribute type binding