This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
admin:basics:rawdata:delimited:ofx [2011/03/02 20:51] els |
— (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ~~NOTOC~~ | ||
| - | {{page>:top_add&nofooter&noeditbtn}} | ||
| - | |||
| - | ====== Administration: Omnidex Fundamentals ====== | ||
| - | |||
| - | ===== Raw Data Files: Delimited Files ===== | ||
| - | |||
| - | [[admin:basics:rawdata:delimited:home|Overview]] | | ||
| - | [[admin:basics:rawdata:delimited:files|Declaring Files]] | | ||
| - | [[admin:basics:rawdata:delimited:options|Options]] | | ||
| - | [[admin:basics:rawdata:delimited:layout|Record Layouts]] | | ||
| - | **[[admin:basics:rawdata:delimited:ofx|Offset Indexes]]** | | ||
| - | [[admin:basics:rawdata:delimited:limitations|Limitations]] | ||
| - | |||
| - | ---- | ||
| - | |||
| - | ==== Offset Indexes ==== | ||
| - | |||
| - | Delimited files have variable length rows, and this makes it difficult to locate a particular row. The offset for a particular row in a fixed-length file is easy to calculate by multiplying the record length times the row number. Delimited files require a different approach. Omnidex uses an Offset Index (OFX) to record the offsets for each row. | ||
| - | |||
| - | An Offset Index is a file maintained in the same location as the data file that contains an array of offsets for each row. The offset for the first row is located in the first eight bytes of the file; the offset for the second row is located in the next eight bytes of the file; and so on. This file is accessed whenever a row number needs to be translated into a physical offset of the file, and is required if a delimited file will be indexed with Omnidex. | ||
| - | |||
| - | This file must be regenerated when the delimited file changes. To create an Offset Index, connect to the environment and issue the LOAD OFX command: | ||
| - | |||
| - | > load ofx for table states | ||
| - | Loaded ofx for STATES with 76 entries | ||
| - | |||
| - | |||
| - | |||
| - | ===== ===== | ||
| - | |||
| - | **[[admin:basics:rawdata:delimited:layout|Prev]]** | | ||
| - | **[[admin:basics:rawdata:delimited:limitations|Next]]** | ||
| - | |||
| - | ====== Additional Resources ====== | ||
| - | |||
| - | See also: | ||
| - | |||
| - | {{page>:admin:basics:see_also&nofooter&noeditbtn}} | ||
| - | |||
| - | {{page>:bottom_add&nofooter&noeditbtn}} | ||