phasedb v0.0.2 PhaseDB.Storage.MatchSpec

Reduces a %Select{} query into a match spec that can be executed against an ETS or DETS table.

Match Specs can't express our entire Select AST, but they can reduce the work required in code by pushing as much as possible back to the VM.

For more information about Erlang match specs see: http://erlang.org/doc/man/ets.html#select-2

Summary

Functions

add_range_guard(guards, map, timestamp)
contains_recorded_at_eq_guard?(guards)
guards_for(select)
match_spec(select, cursor, query_time \\ now_in_usecs)