phasedb v0.0.2 API Reference
Modules
Statistical functions which work on enumerables and reduce values
Compile the where clauses of a %Select{}
query into a filter function
Convert a %Select{}
query into a mapper function which can be used to reduce a group of samples into a single row of results
Constructs an enumerable DataSet set from the query results, including handling interpolation
Module for manipulating Database instances
Supervisor for Database processes
Defines a Behaviour for all statistical functions
This module implements a simple GenServer which will trigger a GC flush of at a specific frequency
Supervisor for garbage collector processes
Describes an operation to insert a Sample into a series as an abstract syntax for
Use the specified interpolator to generate a sample for a gap in the result set
To implement your own interpolator you must implement this behaviour
Implements Linear Interpolation
Implements a simple nearest-neighbour interpolation
Implements a very simple zero fill algorhythm which inserts empty samples at the specified point
Implements the protocol used to handle queries and responses over a websocket, via JSON
Describes an individual data point for insertion of retrieval from a series
Describes a select operation from a series as an abstract representation
Provies an interface for creating, dropping and querying Series'
Abstracts the creation of session storage
Creates an ETS table and wraps it in a struct with relevant metadata so that we can implement the Enumerable protocol
Reduces a %Select{} query into a match spec that can be executed against an ETS or DETS table
Simple pub/sub process subscription using gproc
Helpful functions for dealing with datetimes and intervals
Simple value transforms used by our query functions
Protocols
Implements the basic API for dealing with series cursors (basically connections to various storage systems)
A protocol for instructing cursor's to run a GC sweep
Protocol implemented by Cursors who want to be able to insert data
Protocol for executing queries. Implemeted by the different types of query
Protocol for executing select queries against cursors