Module jc_analyzer

This gen_server provides update_statistcs/2 that is called by jc_store whenever a json_query is used.

Copyright © (C) 2015, Jim Rosenblum

Behaviours: gen_server.

Authors: Jim Rosenblum (jrosenblum@Jims-MBP.attlocal.net).

Description

This gen_server provides update_statistcs/2 that is called by jc_store whenever a json_query is used. Frequency of use is tracked, and if the {Map, Json Query} is used sufficiently often, an index is created.

Data Types

map_name()

map_name() = any()

Function Index

dump/0
start_link/0Start the server and link the caller to it.
update_statistic/2

Function Details

dump/0

dump() -> [#auto_index{map_path = undefined | {map_name(), tuple()} | '_', count = undefined | non_neg_integer() | '_', first = undefined | integer() | '_', last = undefined | integer() | '_', times = undefined | [integer()] | '_', indexed = undefined | boolean() | '_', success = undefined | boolean() | '_', error_message = undefined | term() | '_'}] | {error, timeout}

start_link/0

start_link() -> {ok, pid()} | ignore | {error, any()}

Start the server and link the caller to it.

update_statistic/2

update_statistic(Map::#{}, Path::tuple()) -> ok


Generated by EDoc, May 24 2016, 22:38:40.