Apple Newton Utilities Guide de l'utilisateur Page 441

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 942
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 440
CHAPTER 11
Data Storage and Retrieval
About Data Storage on Newton Devices 11-9
You can create your own specialized indexes for any soup. You need to create an
index for each slot or set of slots on which the soup will be searched frequently. It
is preferable to dene your indexes in the appropriate soup denition, but you can
add indexes to an existing soup if necessary.
An index generated against a single key value is called a single-slot index. A
single-slot index selects and sorts soup entries according to the value of a single
slot specied when the index is created. An index generated against multiple key
values is called a multiple-slot index. A multiple-slot index can select and sort
soup entries according to the values of multiple slots. A multiple-slot index can
associate up to a total of six key values with each entry it indexes. You can create
multiple indexes for any soup.
The characteristics of an index are specied by an index specication frame or
index spec. The values in the index spec frame indicate the kind of index to build,
which slot values to use as index data, and the kind of data stored in the indexed
slots. The precise format of the index spec frame varies according to whether it
denes a single-slot index or a multiple-slot index. For complete descriptions of
index specs, see “Single-Slot Index Specication Frame” on page 9-5 and
“Multiple-Slot Index Specication Frame” (page 9-6) in Newton Programmers
Reference.
A tag is an optional developer-dened symbol used to mark one or more soup
entries. Tags reside in a developer-specied slot that can be indexed, with the
results stored in a special index called the tags index.
The tags index is used to select soup entries according to their associated symbolic
values without reading the entries into memory; for example, one could select the
subset of entries tagged
'business from the ROM_CardFileSoupName soup
used by the built-in Names application. In fact, “ling” Newton data items in
“folders” is a user-interface illusion—the data really resides in soup entries and its
display is ltered for the user according to the tags associated with each soup entry.
Note that the system allows only one tags index per soup. Each soup can contain a
maximum of 624 tags. The system treats missing tags as
nil values. For more
information, see “Tag-based Queries” on page 11-14.
A tags index specication frame, or tags index spec, denes the characteristics of
a soup’s tags index. Like an index spec, a tags index spec can be used to create a
default tags index on a new soup or add a tags index to an existing soup. For a
complete description of the slots in a tags index spec frame, see the section “Tags
Index Specication Frame” (page 9-8) in Newton Programmers Reference.
To better support the use of languages other than English, soup indexes and queries
can be made sensitive to case and diacritical marks in string values. (Normally,
string comparison in NewtonScript is insensitive to case and diacritics.) This
behavior is intended to allow applications to support the introduction of non-
English data easily; for example, the user might insert a PCMCIA card containing
Vue de la page 440
1 2 ... 436 437 438 439 440 441 442 443 444 445 446 ... 941 942

Commentaires sur ces manuels

Pas de commentaire