Table of Contents

Search

  1. preface
  2. Introduction
  3. Defining a System
  4. Flattening IDTs
  5. Link Tables
  6. Loading a System
  7. Static Clustering
  8. Simple Search
  9. Search Performance
  10. Miscellaneous Issues
  11. Limitations
  12. Error Messages

Syntax

Syntax

Flattening is enabled by defining:
  • the layout of the denormalized (joined) data,
  • the layout of the flattened IDT, including the maximum number of occurrences for repeating fields,
  • the columns used to determine how to group denormalized data (Flattening-Keys), and
  • Flattening-Options.

IDT-Definition

The
Denormalized-View
keyword is used to define the name of the
View-Definition
that provides the layout of the denormalized data. The denormalized data can be read from either a flat-file or UST. If read from a flat-file, you must provide a View-Definition. The view’s name must be the IDT name, suffixed with
"-DENORM"
. If the data is sourced from USTs, a View-Definition is generated automatically from the
User-Source-Tables
section.
A denormalized view is only generated when the UST Definition contains repeating fields defined with the [ ] notation.
The
Flatten-Keys
keyword is used to define the IDT columns used to group (sort) denormalized rows. If more than one column is specified, use a comma-separated list surrounded by quotes ("). The denormalized data are sorted by the
Flatten-Keys
and all rows with the same key value are packed into the same flattened row. Refer to the
Flattening Process
section for details.
The Options keyword in the IDT-Definition is used to specify various flattening options that affect how data is packed into the repeating groups. Refer to the
Flattening Options
section for details.
For example,
IDT-Definition *================== NAME= IDT112 DENORMALIZED-VIEW= IDT112-DENORM FLATTEN-KEYS= "EmpId,EmpName" OPTIONS= Flat-Remove-Identical

IDT Layout

The IDT layout can be provided as a
File-Definition
(when sourcing from a flat-file) or from the
User-Source-Table
section when sourcing from USTs. The IDT layout must be identical to the Denormalized-View (same column names, types, and order) with the exception that some columns are defined to repeat.
Repeating fields are defined by immediately following the target-field name with [n] where n represents the maximum number of occurrences for a repeating field.
All columns extracted from non-primary (M) tables should use [n] notation.
For example,
Section: User-Source-Tables create_idt IDT112 sourced_from odb:99:ssa/ssa@ora817 Employee.EmpId (PK1) EmpId, Employee.Name EmpName, Address.CompanyId CompanyId [6], Address.Address Address [6], Phone.Num Phone [6] join_by Employee.EmpId = Address.EmpFK, Address.CompanyId = Phone.CompanyId sync

0 COMMENTS

We’d like to hear from you!