Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
get_table_from_key [2013/08/08 18:52] admin |
get_table_from_key [2015/10/12 00:30] admin |
||
---|---|---|---|
Line 8: | Line 8: | ||
^ Name ^ Type ^ Description ^ | ^ Name ^ Type ^ Description ^ | ||
- | | Table | [[Table Type|Table]] | The input table. | | + | | Table | [[Table Type]] | The input table. | |
- | | Keys | [[Tuple Type|Tuple]] | Chain of keys identifying the sub-table that will be retrieved. | | + | | Keys | [[Tuple Type]] | Chain of keys identifying the sub-table that will be retrieved. | |
===== Outputs ===== | ===== Outputs ===== | ||
- | ^ Name ^ Type ^ Description ^ | + | ^ Name ^ Type ^ Description ^ |
- | | Result | [[Table Type|Table]] | The resulting sub-table. | | + | | Result | [[Table Type]] | The resulting sub-table. | |
===== Group ===== | ===== Group ===== | ||
Line 70: | Line 70: | ||
If the resulting sub-table does not have at least one column of keys or if the given tuple of keys is not present in the input table, an error is reported. | If the resulting sub-table does not have at least one column of keys or if the given tuple of keys is not present in the input table, an error is reported. | ||
- | It is not possible to retrieve a sub-table indexed by keys from arbitrary key columns. For example, in the example above, it is not possible to retrieve a sub-table corresponding to keys ''<2, 22>'', where 2 corresponds to the first column ("Key1") and 22 corresponds to the third column ("Key3"). To do this, first reorder the key columns using the [[Reorder Table Columns]] functor. | + | It is not possible to retrieve a sub-table indexed by keys from arbitrary key columns. For example, in the example above, it is not possible to retrieve a sub-table corresponding to keys ''<2, 22>'', where 2 corresponds to the first column ("Key1") and 22 corresponds to the third column ("Key3"). To do this, first reorder the key columns using the [[Reorder Table Column]] functor. |
===== Internal Name ===== | ===== Internal Name ===== |