Class/Object

org.locationtech.geomesa.utils.stats

MinMax

Related Docs: object MinMax | package stats

Permalink

class MinMax[T] extends Stat with LazyLogging with Serializable

The MinMax stat merely returns the min/max of an attribute's values. Works with dates, integers, longs, doubles, and floats.

T

the type of the attribute the stat is targeting (needs to be comparable)

Linear Supertypes
Serializable, Serializable, LazyLogging, Stat, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MinMax
  2. Serializable
  3. Serializable
  4. LazyLogging
  5. Stat
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MinMax(sft: SimpleFeatureType, attribute: String)(implicit defaults: MinMaxDefaults[T])

    Permalink

Type Members

  1. type S = MinMax[T]

    Permalink
    Definition Classes
    MinMaxStat

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: MinMax[T]): MinMax[T]

    Permalink

    Combine two stats into a new stat

    Combine two stats into a new stat

    other

    the other stat to add

    Definition Classes
    MinMaxStat
  4. def +(other: Stat)(implicit d: DummyImplicit): Stat

    Permalink

    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

    other

    the other stat to add

    Definition Classes
    Stat
  5. def +=(other: MinMax[T]): Unit

    Permalink

    Add another stat to this stat.

    Add another stat to this stat. Avoids allocating another object.

    other

    the other stat to add

    Definition Classes
    MinMaxStat
  6. def +=(other: Stat)(implicit d: DummyImplicit): Unit

    Permalink

    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

    other

    the other stat to add

    Definition Classes
    Stat
  7. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def bounds: (T, T)

    Permalink
  10. def cardinality: Long

    Permalink
  11. def clear(): Unit

    Permalink

    Clears the stat to its original state when first initialized.

    Clears the stat to its original state when first initialized. Necessary method used by the StatIterator.

    Definition Classes
    MinMaxStat
  12. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. implicit val defaults: MinMaxDefaults[T]

    Permalink
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  19. def isEmpty: Boolean

    Permalink

    Necessary method used by the StatIterator.

    Necessary method used by the StatIterator. Indicates if the stat has any values or not

    returns

    true if stat contains values

    Definition Classes
    MinMaxStat
  20. def isEquivalent(other: Stat): Boolean

    Permalink

    Compares the two stats for equivalence.

    Compares the two stats for equivalence. We don't use standard 'equals' as it gets messy with mutable state and hash codes

    other

    other stat to compare

    returns

    true if equals

    Definition Classes
    MinMaxStat
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LazyLogging
  23. def max: T

    Permalink
  24. def min: T

    Permalink
  25. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. def observe(sf: SimpleFeature): Unit

    Permalink

    Compute statistics based upon the given simple feature.

    Compute statistics based upon the given simple feature. This method will be called for every SimpleFeature a query returns.

    sf

    feature to evaluate

    Definition Classes
    MinMaxStat
  29. val property: String

    Permalink

    property name for the attribute being min/maxed

  30. val sft: SimpleFeatureType

    Permalink

    simple feature type

    simple feature type

    Definition Classes
    MinMaxStat
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. def toJson: String

    Permalink

    Returns a JSON representation of the Stat

    Returns a JSON representation of the Stat

    returns

    stat as a json string

    Definition Classes
    Stat
  33. def toJsonObject: Any

    Permalink

    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).

    returns

    stat as a json serializable object

    Definition Classes
    MinMaxStat
  34. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  35. def tuple: (T, T, Long)

    Permalink
  36. def unobserve(sf: SimpleFeature): Unit

    Permalink

    Tries to remove the given simple feature from the compiled statistics.

    Tries to remove the given simple feature from the compiled statistics. Note: may not be possible to un-observe a feature, in which case this method will have no effect.

    sf

    feature to un-evaluate

    Definition Classes
    MinMaxStat
  37. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. lazy val attribute: Int

    Permalink
    Annotations
    @deprecated
    Deprecated

    property

Inherited from Serializable

Inherited from Serializable

Inherited from LazyLogging

Inherited from Stat

Inherited from AnyRef

Inherited from Any

Ungrouped