Detect periods of activity from a data file of scala.Tuple3 of scala.Doubles where each Tuple consists of time, current, and voltage values.
Split text file lines into 8 fields, separated by spaces, and bucket the lines by hour,
assuming that messages are sorted by date and time,
the 6th field is a numeric date in the month and
the 7th field is a time in the form HH:MM:SS
.
Split text file lines into 8 fields, separated by spaces, and bucket the lines by hour,
assuming that messages are sorted by date and time,
the 6th field is a numeric date in the month and
the 7th field is a time in the form HH:MM:SS
.
The SparkContext
The path to the file with all the log messages.
The amount of minutes of logs stored in each bucket. Currently unused.
Map a line of text of comma-separated numbers into an scala.Array of scala.Doubles.
Map a line of text of comma-separated numbers into an scala.Array of scala.Doubles.
the line of text to split.
The separator (regexp). Default ","
Create the SparkContext and set caching class.
Create the SparkContext and set caching class.
the Mesos Master, or local[number of threads] for running Spark locally.
The name of the caching system to use. One of "kryo" or "bounded". Other values are treated as leaving the caching scheme unchanged. The null value is allowed. Default: null.
The name of the application for Spark. Default: "TimeSeriesSpark".
A new SparkContext
Set the caching class.
Set the caching class. Called by init(). Use this method if you do not need a new SparkContext (such as from the spark scala interpreter).
The name of the caching system to use. One of "kryo" or "bounded". Other values are treated as leaving the caching scheme unchanged. The null value is allowed. Default: null.
Map a current and voltage pair into their product.
Map a current and voltage pair into their product.
the time, in s
the current, in mA
the voltage, in volts
amp*volt
scala.this.deprecated.init$default$1
Map a line of text of comma-separated numbers into a (Double,Double,Double) ignoring the first on each line (measurement number).
Map a line of text of comma-separated numbers into a (Double,Double,Double) ignoring the first on each line (measurement number).
the line of text to split.
scala.this.deprecated.init$default$1
Time Series Spark main class. Implements a generic time series data analysis API using RunRDD and scala.Arrays of values. The class includes functions for setting the caching method, creating a Spark Context, splitting up data into scala.Arrays of numbers, and splitting data files into buckets based on their common properties.
For log data examples, see spark.timeseries.BucketLogsByHour.
Energy measurement specific example functions, such as the IdleEnergyArrayDetector class are deprecated. For current implementations, see IdleEnergyArrayDetector and the spark.timeseries.EnergyOps example class.
A secondary API using spark.timeseries.MeasurementRunRDD restricts to the use of scala.Tuple3. This is deprecated.