trait GeoMesaStats extends Closeable
Tracks stats for a schema - spatial/temporal bounds, number of records, etc. Persistence of stats is not part of this trait, as different implementations will likely have different method signatures.
- Alphabetic
- By Inheritance
- GeoMesaStats
- Closeable
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
close(): Unit
- Definition Classes
- Closeable → AutoCloseable
- Annotations
- @throws( classOf[java.io.IOException] )
-
abstract
def
getCount(sft: SimpleFeatureType, filter: Filter = Filter.INCLUDE, exact: Boolean = false, queryHints: Hints = new Hints()): Option[Long]
Gets the number of features that will be returned for a query.
Gets the number of features that will be returned for a query. May return -1 if exact is false and estimate is unavailable.
- sft
simple feature type
- filter
cql filter
- exact
rough estimate, or precise count. note: precise count will likely be expensive.
- queryHints
query hints that should be used for query execution
- returns
count of features, if available - will always be Some if exact == true
-
abstract
def
getEnumeration[T](sft: SimpleFeatureType, attribute: String, filter: Filter = Filter.INCLUDE, exact: Boolean = false): Option[EnumerationStat[T]]
Get an enumeration stat
Get an enumeration stat
- T
attribute type - must correspond to attribute binding
- sft
simple feature type
- attribute
attribute name to query
- filter
cql filter
- exact
rough estimates, or precise values. note: precise values will likely be expensive.
-
abstract
def
getFrequency[T](sft: SimpleFeatureType, attribute: String, precision: Int, filter: Filter = Filter.INCLUDE, exact: Boolean = false): Option[Frequency[T]]
Get a frequency stat
Get a frequency stat
- T
attribute type - must correspond to attribute binding
- sft
simple feature type
- attribute
attribute name to query
- precision
precision of the estimate - @see org.locationtech.geomesa.utils.stats.Frequency
- filter
cql filter
- exact
rough estimates, or precise values. note: precise values will likely be expensive.
-
abstract
def
getHistogram[T](sft: SimpleFeatureType, attribute: String, bins: Int, min: T, max: T, filter: Filter = Filter.INCLUDE, exact: Boolean = false): Option[Histogram[T]]
Get a histogram stat
Get a histogram stat
- T
attribute type - must correspond to attribute binding
- sft
simple feature type
- attribute
attribute name to query
- bins
number of buckets used to group values
- min
minimum value used to create the initial histogram buckets
- max
maximum value used to create the initial histogram buckets
- filter
cql filter
- exact
rough estimates, or precise values. note: precise values will likely be expensive.
-
abstract
def
getMinMax[T](sft: SimpleFeatureType, attribute: String, filter: Filter = Filter.INCLUDE, exact: Boolean = false): Option[MinMax[T]]
Get the minimum and maximum values for the given attribute
Get the minimum and maximum values for the given attribute
- T
attribute type - must correspond to attribute binding
- sft
simple feature type
- attribute
attribute name to examine
- filter
cql filter
- exact
rough estimate, or precise values. note: precise values will likely be expensive.
- returns
mix/max values and overall cardinality. types will be consistent with the binding of the attribute
-
abstract
def
getStat[T <: Stat](sft: SimpleFeatureType, query: String, filter: Filter = Filter.INCLUDE, exact: Boolean = false): Option[T]
Get arbitrary stats
Get arbitrary stats
- T
type bounds, must match stat query strings
- sft
simple feature type
- query
stats string
- filter
cql filter
- exact
rough estimate, or precise values. note: precise values will likely be expensive.
- returns
stats, if any
-
abstract
def
getTopK[T](sft: SimpleFeatureType, attribute: String, filter: Filter = Filter.INCLUDE, exact: Boolean = false): Option[TopK[T]]
Get a top k stat
Get a top k stat
- T
attribute type - must correspond to attribute binding
- sft
simple feature type
- attribute
attribute name to query
- filter
cql filter
- exact
rough estimates, or precise values. note: precise values will likely be expensive.
-
abstract
def
getZ3Histogram(sft: SimpleFeatureType, geom: String, dtg: String, period: TimePeriod, bins: Int, filter: Filter = Filter.INCLUDE, exact: Boolean = false): Option[Z3Histogram]
Get a Z3 histogram stat, where values are grouped based on combined geometry + date
Get a Z3 histogram stat, where values are grouped based on combined geometry + date
- sft
simple feature type
- geom
geometry attribute to query
- dtg
date attribute to query
- period
time period used to calculate bins for each value
- bins
number of buckets used to group values
- filter
cql filter
- exact
rough estimates, or precise values. note: precise values will likely be expensive.
-
abstract
def
writer: GeoMesaStatWriter
Gets a writer for updating stats
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
getBounds(sft: SimpleFeatureType, filter: Filter = Filter.INCLUDE, exact: Boolean = false): ReferencedEnvelope
Get the bounds for data that will be returned for a query
Get the bounds for data that will be returned for a query
- sft
simple feature type
- filter
cql filter
- exact
rough estimate, or precise bounds. note: precise bounds will likely be expensive.
- returns
bounds
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
getSeqStat[T <: Stat](sft: SimpleFeatureType, queries: Seq[String], filter: Filter = Filter.INCLUDE, exact: Boolean = false): Seq[T]
Gets arbitrary stats for multiple queries
Gets arbitrary stats for multiple queries
- T
type bounds, must match stat query strings
- sft
simple feature type
- queries
stats strings
- filter
cql filter
- exact
rough estimate, or precise values. note: precise values will likely be expensive.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated