Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
calc_lookup_table_intersection [2013/07/18 19:52]
admin [Notes]
calc_lookup_table_intersection [2026/08/28 03:11] (current)
hermann Sync from local documentation review
Line 1: Line 1:
-====== Calc Lookup Table Intersection ====== ​+====== Calc Lookup Table Intersection ======
  
 ===== Description ===== ===== Description =====
  
-This functor calculates a lookup table that is the intersection of two lookup tables.+Calculates the lookup table that is the intersection of two lookup tables.
  
 ===== Inputs ===== ===== Inputs =====
  
-^ Name          ^ Type                                  ^ Description ​              ​+^ Name  ^ Type  ^ Description ​ 
-| First Table   ​| [[Lookup Table Type|Lookup Table  ​]]  | The first lookup table. ​  ​+| First Table  | [[Lookup Table Type]] ​ | The first lookup table. ​ 
-| Second Table  | [[Lookup Table Type|Lookup Table  ​]]  | The second lookup table. ​ |+| Second Table  | [[Lookup Table Type]] ​ | The second lookup table. ​ |
  
 ===== Optional Inputs ===== ===== Optional Inputs =====
  
-^ Name                                     ​^ Type                  ^ Description ​                                                                                                                              ​^ Default Value ^ +^ Name  ^ Type  ^ Description ​ ^ Default Value  
-use First Table To Solve Duplicated Key  | [[Bool Type|Bool  ​]]  | If true, in the case of duplicated keys, the value of the first table is selectedotherwise, the value of the second table is selected.  | True          |+Use First Table To Solve Duplicated Key  | [[Boolean Value Type]] ​ | If true, and a key occurs ​in both tables, the value from First Table is keptif false, the value from Second Table is kept instead.  | True  |
  
-===== Output ​=====+===== Outputs ​=====
  
-^ Name     ​^ Type                                  ^ Description ​                 +^ Name  ^ Type  ^ Description ​ 
-result ​  | [[Lookup Table Type|Lookup Table  ​]]  | The resulting lookup table. ​ |+Result  ​| [[Lookup Table Type]] ​ | The resulting lookup table, containing only the keys present in both First Table and Second Table.  |
  
 ===== Group ===== ===== Group =====
  
-[[Functor List#Table | Table]]+[[Functor List#Lookup ​Table | Lookup ​Table]]
  
 ===== Notes ===== ===== Notes =====
  
-The column names from the first input table are assigned to the output table.+The key and value column names of Result ​are inherited from First Table. 
 + 
 +For background on this operation, see [[https://​en.wikipedia.org/​wiki/​Intersection_(set_theory)|set intersection]].
  
-For further information about set intersection,​ see [[wp>​Set_intersection]]. 
 ===== Internal Name ===== ===== Internal Name =====
  
 CalcLookupTableIntersection CalcLookupTableIntersection