Skip to content

short_rnid_LatticeGenerator

Vidhi Jain edited this page Jul 13, 2017 · 2 revisions

Source Code

  • Executes SQL select orig_rnid from RNodes;
  • Adds the orig_rnid to ArrayList tempList
  • For each tempList, executes SQL Update in column rnid of table RNodes update RNodes set rnid='" + short_rnid + "' where orig_rnid='" + tempList.get(i) + "';

Input

Connection: con to _BN database

Output

Integer: max number of members

Calls

  1. readFirstSets() read first sest from RFunctors
  2. init() init createdSet + truncate tables + add first sets to db
  3. generateTree() generate lattice tree
  4. mapping_rnid() updates table lattice_mapping with orig_rnid and rnid

Called at

(Should be called at) BayesBaseCT_SortMerge.buildCT()

  • after transfer.sql
  • before metadata_2.sql (deprecated)
    • i.e. functorNode.sql, contingencyTables.sql, bayesNetLearning.sql