object Stat
This class contains parsers which dictate how to instantiate a particular Stat. Stats are created by passing a stats string as a query hint (QueryHints.STATS_STRING).
A valid stats string should adhere to the parsers here: e.g. "MinMax(attributeName);IteratorCount" or "RangeHistogram(attributeName,10,0,100)" (see tests for more use cases)
- Alphabetic
- By Inheritance
- Stat
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- trait ImmutableStat extends Stat
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
-
def
Count(): String
String that will be parsed to a count stat
-
def
DescriptiveStats(attributes: Seq[String]): String
String that will be parsed into a multi variate descriptive stat
String that will be parsed into a multi variate descriptive stat
- attributes
attribute name to evaluate
-
def
Enumeration(attribute: String): String
String that will be parsed to a histogram stat
String that will be parsed to a histogram stat
- attribute
attribute name to histogram
-
def
Frequency(attribute: String, dtg: String, period: TimePeriod, precision: Int): String
String that will be parsed into a count min sketch stat
String that will be parsed into a count min sketch stat
- attribute
attribute to sketch
- dtg
date attribute to use for binning
- period
time period to split on
- precision
precision of the sketch - @see Frequency
-
def
Frequency(attribute: String, precision: Int): String
String that will be parsed into a count min sketch stat
String that will be parsed into a count min sketch stat
- attribute
attribute to sketch
- precision
precision of the sketch - @see Frequency
-
def
GroupBy(attribute: String, groupedStat: String): String
Groups results by attribute and runs stats for each group.
Groups results by attribute and runs stats for each group.
- attribute
attribute to group stats by
- groupedStat
stat to apply to grouped attributes
-
def
Histogram[T](attribute: String, bins: Int, min: T, max: T)(implicit ct: ClassTag[T]): String
String that will be parsed to a binned histogram stat
String that will be parsed to a binned histogram stat
- T
class type of the histogram attribute
- attribute
attribute name to histogram
- bins
the number of bins to create
- min
min value for the histogram
- max
max value for the histogram
-
def
IteratorStackCount(): String
String that will be parsed to a iterator stack counter
-
def
MinMax(attribute: String): String
String that will be parsed to a min/max stat
String that will be parsed to a min/max stat
- attribute
attribute name to min/max
-
def
SeqStat(stats: Seq[String]): String
String that will be parsed to a sequence of stat
String that will be parsed to a sequence of stat
- stats
input strings that will be parsed as individual stats
-
def
TopK(attribute: String): String
String that will be parsed into a TopK stat
String that will be parsed into a TopK stat
- attribute
attribute name to evaluate
-
def
Z3Frequency(geom: String, dtg: String, period: TimePeriod, precision: Int): String
String that will be parsed into a z3 count min sketch stat
String that will be parsed into a z3 count min sketch stat
- geom
geometry attribute
- dtg
date attribute
- period
time period to split on
- precision
precision of the z value - @see FrequencyZ3
-
def
Z3Histogram(geom: String, dtg: String, period: TimePeriod, length: Int): String
String that will be parsed into a z3 range histogram stat
String that will be parsed into a z3 range histogram stat
- geom
geometry attribute
- dtg
date attribute
- period
time period to split on
- length
number of the bins per week - @see RangeHistogramZ3
- def apply(sft: SimpleFeatureType, s: String): Stat
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
def
combine[T <: Stat](stats: Seq[T]): Option[T]
Combines a sequence of stats.
Combines a sequence of stats. This will not modify any of the inputs.
- stats
stats to combine
-
def
destringifier[T](clas: Class[T]): (String) ⇒ T
Converts a string back to a value
Converts a string back to a value
- T
type of the value class
- clas
class of the stringified value
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
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() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
def
stringifier[T](clas: Class[T], json: Boolean = false): (Any) ⇒ String
Converts a value to a string
Converts a value to a string
- T
type of input
- clas
class of the input value
- json
will the result be used in json? will quote appropriately if so
-
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