@@ -594,14 +594,14 @@ A [=/key=] has an associated <dfn>type</dfn> which is one of:
594
594
*string*,
595
595
*binary*,
596
596
or
597
- *array *.
597
+ *composite *.
598
598
599
599
A [=/key=] also has an associated <dfn>value</dfn> , which will
600
600
be either:
601
601
an {{unrestricted double}} if type is *number* or *date*,
602
602
a {{DOMString}} if type is *string*,
603
603
a [=byte sequence=] if type is *binary*,
604
- or a [=/list=] of other [=/keys=] if type is *array *.
604
+ or a [=/list=] of other [=/keys=] if type is *composite *.
605
605
606
606
</div>
607
607
@@ -627,9 +627,9 @@ following the steps to [=convert a value to a key=].
627
627
will fail.
628
628
</div>
629
629
630
- An <dfn>array key</dfn> is a [=/key=] with [=key/type=] *array *.
631
- The <dfn>subkeys</dfn> of an [=array key=] are the [=list/items=] of the
632
- [=array key=] 's [=key/value=] .
630
+ An <dfn>composite key</dfn> is a [=/key=] with [=key/type=] *composite *.
631
+ The <dfn>subkeys</dfn> of an [=composite key=] are the [=list/items=] of the
632
+ [=composite key=] 's [=key/value=] .
633
633
634
634
<div algorithm>
635
635
@@ -641,8 +641,8 @@ To <dfn>compare two keys</dfn> |a| and |b|, run these steps:
641
641
642
642
1. If |ta| does not equal |tb|, then run these steps:
643
643
644
- 1. If |ta| is *array *, then return 1.
645
- 1. If |tb| is *array *, then return -1.
644
+ 1. If |ta| is *composite *, then return 1.
645
+ 1. If |tb| is *composite *, then return -1.
646
646
1. If |ta| is *binary*, then return 1.
647
647
1. If |tb| is *binary*, then return -1.
648
648
1. If |ta| is *string*, then return 1.
@@ -677,7 +677,7 @@ To <dfn>compare two keys</dfn> |a| and |b|, run these steps:
677
677
1. If |vb| is [=byte less than=] |va|, then return 1.
678
678
1. Return 0.
679
679
680
- : *array *
680
+ : *composite *
681
681
::
682
682
1. Let |length| be the lesser of |va|'s [=list/size=] and |vb|' s [=list/size=] .
683
683
1. Let |i| be 0.
@@ -712,9 +712,9 @@ NOTE:
712
712
*Number* keys are less than *date* keys.
713
713
*Date* keys are less than *string* keys.
714
714
*String* keys are less than *binary* keys.
715
- *Binary* keys are less than *array * keys.
715
+ *Binary* keys are less than *composite * keys.
716
716
There is no highest possible [=/key=] value.
717
- This is because an array of any candidate highest [=/key=]
717
+ This is because a *composite* key of any candidate highest [=/key=]
718
718
followed by another [=/key=] is even higher.
719
719
720
720
NOTE:
@@ -834,8 +834,8 @@ object store fails.
834
834
835
835
An [=/index=] has a <dfn>multiEntry flag</dfn> . This flag affects how
836
836
the index behaves when the result of evaluating the index's
837
- [=index/key path=] yields an [=array key=] . If its [=index/multiEntry flag=]
838
- is false, then a single [=object-store/record=] whose [=/key=] is an [=array key=]
837
+ [=index/key path=] yields an [=composite key=] . If its [=index/multiEntry flag=]
838
+ is false, then a single [=object-store/record=] whose [=/key=] is an [=composite key=]
839
839
is added to the index. If its [=index/multiEntry flag=] is true, then
840
840
one [=object-store/record=] is added to the index for each of the [=subkeys=] .
841
841
@@ -1582,7 +1582,7 @@ be updated.
1582
1582
1583
1583
Only specified keys of [=key/type=] *number* can affect the
1584
1584
[=key generator/current number=] of the key generator. Keys of [=key/type=]
1585
- *date*, *array * (regardless of the other keys they
1585
+ *date*, *composite * (regardless of the other keys they
1586
1586
contain), *binary*, or *string* (regardless of whether
1587
1587
they could be parsed as numbers) have no effect on the [=key generator/current
1588
1588
number=] of the key generator. Keys of [=key/type=]
@@ -5583,29 +5583,29 @@ To <dfn>store a record into an object store</dfn> with
5583
5583
An exception thrown in this step is not rethrown.
5584
5584
5585
5585
1. If |index|'s [=index/multiEntry flag=] is false, or if |index key|
5586
- is not an [=array key=] , and if |index| already contains a
5586
+ is not an [=composite key=] , and if |index| already contains a
5587
5587
[=object-store/record=] with [=/key=] [=equal to=] |index
5588
5588
key|, and |index|'s [=index/unique flag=] is true, then this
5589
5589
operation failed with a "{{ConstraintError}} " {{DOMException}} . Abort this
5590
5590
algorithm without taking any further steps.
5591
5591
5592
5592
1. If |index|'s [=index/multiEntry flag=] is true and |index key| is
5593
- an [=array key=] , and if |index| already contains a
5593
+ an [=composite key=] , and if |index| already contains a
5594
5594
[=object-store/record=] with [=/key=] [=equal to=] any of the
5595
5595
[=subkeys=] of |index key|, and |index|'s [=index/unique
5596
5596
flag=] is true, then this operation failed with a
5597
5597
"{{ConstraintError}} " {{DOMException}} . Abort this algorithm without taking any
5598
5598
further steps.
5599
5599
5600
5600
1. If |index|'s [=index/multiEntry flag=] is false, or if |index key|
5601
- is not an [=array key=] then store a record in |index|
5601
+ is not an [=composite key=] then store a record in |index|
5602
5602
containing |index key| as its key and |key| as its value. The
5603
5603
record is stored in |index|'s [=index/list of records=]
5604
5604
such that the list is sorted primarily on the records keys,
5605
5605
and secondarily on the records values, in [=ascending=] order.
5606
5606
5607
5607
1. If |index|'s [=index/multiEntry flag=] is true and |index key| is
5608
- an [=array key=] , then for each |subkey| of the
5608
+ an [=composite key=] , then for each |subkey| of the
5609
5609
[=subkeys=] of |index key| store a record in |index|
5610
5610
containing |subkey| as its key and |key| as its value. The
5611
5611
records are stored in |index|'s [=index/list of
@@ -5618,10 +5618,10 @@ To <dfn>store a record into an object store</dfn> with
5618
5618
no records are added to the index.
5619
5619
5620
5620
NOTE:
5621
- Even if any member of [=subkeys=] is itself an [=array key=] ,
5621
+ Even if any member of [=subkeys=] is itself an [=composite key=] ,
5622
5622
the member is used directly as the key for the index record.
5623
- Nested [=array keys=] are not flattened or "unpacked" to
5624
- produce multiple rows; only the outer-most [=array key=] is.
5623
+ Nested [=composite keys=] are not flattened or "unpacked" to
5624
+ produce multiple rows; only the outer-most [=composite key=] is.
5625
5625
5626
5626
1. Return |key|.
5627
5627
@@ -6290,7 +6290,7 @@ The steps return an ECMAScript value.
6290
6290
in |value|.
6291
6291
1. Return |buffer|.
6292
6292
6293
- : *array *
6293
+ : *composite *
6294
6294
::
6295
6295
1. Let |array| be the result of executing the ECMAScript Array
6296
6296
constructor with no arguments.
@@ -6370,7 +6370,7 @@ steps may throw an exception.
6370
6370
1. Return a new [=/key=] with [=key/type=]
6371
6371
*binary* and [=key/value=] |bytes|.
6372
6372
6373
- <!-- Array -->
6373
+ <!-- Composite ( Array) -->
6374
6374
: If |input| is an [=ECMAScript/Array exotic object=]
6375
6375
::
6376
6376
1. Let |len| be [=ECMAScript/?=] [$ToLength$] ( [=ECMAScript/?=] [$Get$] (|input|,
@@ -6399,7 +6399,7 @@ steps may throw an exception.
6399
6399
6400
6400
1. Increase |index| by 1.
6401
6401
6402
- 1. Return a new [=array key=] with [=key/value=]
6402
+ 1. Return a new [=composite key=] with [=key/value=]
6403
6403
|keys|.
6404
6404
6405
6405
@@ -6443,7 +6443,7 @@ steps may throw an exception.
6443
6443
6444
6444
1. Increase |index| by 1.
6445
6445
6446
- 1. Return a new [=array key=] with [=key/value=] set to |keys|.
6446
+ 1. Return a new [=composite key=] with [=key/value=] set to |keys|.
6447
6447
6448
6448
1. Otherwise, return the result of [=/converting a
6449
6449
value to a key=] with argument |input|.
@@ -6457,7 +6457,7 @@ NOTE:
6457
6457
not be converted to keys are ignored, and duplicates are removed.
6458
6458
6459
6459
For example, the value `[10, 20, null, 30, 20] ` is
6460
- converted to an [=array key=] with [=subkeys=] 10, 20, 30.
6460
+ converted to an [=composite key=] with [=subkeys=] 10, 20, 30.
6461
6461
6462
6462
6463
6463
<!-- ============================================================ -->
0 commit comments