aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/java/com/yahoo/schema/processing/ImportedFieldsTestCase.java
blob: 6c23d1ecf91b3e9c85b20014b063e1483d700cf5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.schema.processing;

import com.yahoo.schema.Schema;
import com.yahoo.schema.ApplicationBuilder;
import com.yahoo.schema.derived.AttributeFields;
import com.yahoo.schema.document.ImportedComplexField;
import com.yahoo.schema.document.ImportedField;
import com.yahoo.schema.parser.ParseException;
import org.junit.jupiter.api.Test;

import static com.yahoo.config.model.test.TestUtil.joinLines;
import static org.junit.jupiter.api.Assertions.*;

/**
 * @author geirst
 */
public class ImportedFieldsTestCase {

    @Test
    void fields_can_be_imported_from_referenced_document_types() throws ParseException {
        Schema schema = buildAdSearch(joinLines(
                "search ad {",
                "  document ad {",
                "    field campaign_ref type reference<campaign> { indexing: attribute }",
                "    field person_ref type reference<person> { indexing: attribute }",
                "  }",
                "  import field campaign_ref.budget as my_budget {}",
                "  import field person_ref.name as my_name {}",
                "}"));
        assertEquals(2, schema.importedFields().get().fields().size());
        assertSearchContainsImportedField("my_budget", "campaign_ref", "campaign", "budget", schema);
        assertSearchContainsImportedField("my_name", "person_ref", "person", "name", schema);
    }

    @Test
    void field_reference_spec_must_include_dot() throws ParseException {
        Throwable exception = assertThrows(IllegalArgumentException.class, () -> {
            buildAdSearch(joinLines(
                    "search ad {",
                    "  document ad {}",
                    "  import field campaignrefbudget as budget {}",
                    "}"));
        });
        assertTrue(exception.getMessage().contains("Illegal field reference spec 'campaignrefbudget': Does not include a single '.'"));
    }

    @Test
    void fail_duplicate_import() throws ParseException {
        Throwable exception = assertThrows(IllegalArgumentException.class, () -> {
            Schema schema = buildAdSearch(joinLines(
                    "schema ad {",
                    "  document ad {",
                    "    field campaign_ref type reference<campaign> { indexing: attribute }",
                    "  }",
                    "  import field campaign_ref.budget as my_budget {}",
                    "  import field campaign_ref.budget as my_budget {}",
                    "}"));
        });
        assertTrue(exception.getMessage().contains("For schema 'ad', import field as 'my_budget': Field already imported"));
    }

    private static Schema buildAdSearch(String sdContent) throws ParseException {
        ApplicationBuilder builder = new ApplicationBuilder();
        builder.addSchema(joinLines(
                "schema campaign {",
                "  document campaign {",
                "    field budget type int { indexing: attribute }",
                "  }",
                "}"));
        builder.addSchema(joinLines(
                "schema person {",
                "  document person {",
                "    field name type string { indexing: attribute }",
                "  }",
                "}"));
        builder.addSchema(sdContent);
        builder.build(true);
        return builder.getSchema("ad");
    }

    private static void checkStructImport(AncestorStructSdBuilder parentBuilder) throws ParseException {
        Schema schema = buildChildSearch(parentBuilder.build(), new ChildStructSdBuilder().build());
        checkImportedStructFields(schema, parentBuilder);
    }

    private static void checkNestedStructImport(AncestorStructSdBuilder grandParentBuilder) throws ParseException {
        Schema schema = buildChildSearch(grandParentBuilder.build(),
                                         new IntermediateParentStructSdBuilder().build(),
                                         new ChildStructSdBuilder().build());
        checkImportedStructFields(schema, grandParentBuilder);
    }

    private static void checkImportedStructFields(Schema schema, AncestorStructSdBuilder ancestorBuilder) {
        assertEquals(3, schema.importedFields().get().fields().size());
        checkImportedField("my_elem_array.name", "parent_ref", "parent", "elem_array.name", schema, ancestorBuilder.elem_array_name_attr);
        checkImportedField("my_elem_array.weight", "parent_ref", "parent", "elem_array.weight", schema, ancestorBuilder.elem_array_weight_attr);
        checkImportedField("my_elem_map.key", "parent_ref", "parent", "elem_map.key", schema, ancestorBuilder.elem_map_key_attr);
        checkImportedField("my_elem_map.value.name", "parent_ref", "parent", "elem_map.value.name", schema, ancestorBuilder.elem_map_value_name_attr);
        checkImportedField("my_elem_map.value.weight", "parent_ref", "parent", "elem_map.value.weight", schema, ancestorBuilder.elem_map_value_weight_attr);
        checkImportedField("my_str_int_map.key", "parent_ref", "parent", "str_int_map.key", schema, ancestorBuilder.str_int_map_key_attr);
        checkImportedField("my_str_int_map.value", "parent_ref", "parent", "str_int_map.value", schema, ancestorBuilder.str_int_map_value_attr);
        checkImportedField("my_elem_array", "parent_ref", "parent", "elem_array", schema, true);
        checkImportedField("my_elem_map", "parent_ref", "parent", "elem_map", schema, true);
        checkImportedField("my_str_int_map", "parent_ref", "parent", "str_int_map", schema, true);
    }

    @Test
    void check_struct_import() throws ParseException {
        checkStructImport(new ParentStructSdBuilder());
        checkStructImport(new ParentStructSdBuilder().elem_array_weight_attr(false).elem_map_value_weight_attr(false));
        checkStructImport(new ParentStructSdBuilder().elem_array_name_attr(false).elem_map_value_name_attr(false));
    }

    @Test
    void check_nested_struct_import() throws ParseException {
        checkNestedStructImport(new GrandParentStructSdBuilder());
        checkNestedStructImport(new GrandParentStructSdBuilder().elem_array_weight_attr(false).elem_map_value_weight_attr(false));
        checkNestedStructImport(new GrandParentStructSdBuilder().elem_array_name_attr(false).elem_map_value_name_attr(false));
    }

    @Test
    void check_illegal_struct_import_missing_array_of_struct_attributes() throws ParseException {
        Throwable exception = assertThrows(IllegalArgumentException.class, () -> {
            checkStructImport(new ParentStructSdBuilder().elem_array_name_attr(false).elem_array_weight_attr(false));
        });
        assertTrue(exception.getMessage().contains("For schema 'child', import field 'my_elem_array': Field 'elem_array' via reference field 'parent_ref': Is not a struct containing an attribute field."));
    }

    @Test
    void check_illegal_struct_import_missing_map_of_struct_key_attribute() throws ParseException {
        Throwable exception = assertThrows(IllegalArgumentException.class, () -> {
            checkStructImport(new ParentStructSdBuilder().elem_map_key_attr(false));
        });
        assertTrue(exception.getMessage().contains("For schema 'child', import field 'my_elem_map' (nested to 'my_elem_map.key'): Field 'elem_map.key' via reference field 'parent_ref': Is not an attribute field. Only attribute fields supported"));
    }

    @Test
    void check_illegal_struct_import_missing_map_of_struct_value_attributes() throws ParseException {
        Throwable exception = assertThrows(IllegalArgumentException.class, () -> {
            checkStructImport(new ParentStructSdBuilder().elem_map_value_name_attr(false).elem_map_value_weight_attr(false));
        });
        assertTrue(exception.getMessage().contains("For schema 'child', import field 'my_elem_map' (nested to 'my_elem_map.value'): Field 'elem_map.value' via reference field 'parent_ref': Is not a struct containing an attribute field."));
    }

    @Test
    void check_illegal_struct_import_missing_map_of_primitive_key_attribute() throws ParseException {
        Throwable exception = assertThrows(IllegalArgumentException.class, () -> {
            checkStructImport(new ParentStructSdBuilder().str_int_map_key_attr(false));
        });
        assertTrue(exception.getMessage().contains("For schema 'child', import field 'my_str_int_map' (nested to 'my_str_int_map.key'): Field 'str_int_map.key' via reference field 'parent_ref': Is not an attribute field. Only attribute fields supported"));
    }

    @Test
    void check_illegal_struct_import_missing_map_of_primitive_value_attribute() throws ParseException {
        Throwable exception = assertThrows(IllegalArgumentException.class, () -> {
            checkStructImport(new ParentStructSdBuilder().str_int_map_value_attr(false));
        });
        assertTrue(exception.getMessage().contains("For schema 'child', import field 'my_str_int_map' (nested to 'my_str_int_map.value'): Field 'str_int_map.value' via reference field 'parent_ref': Is not an attribute field. Only attribute fields supported"));
    }

    private static class NamedSdBuilder {
        protected String name;
        private String fieldPrefix;

        public NamedSdBuilder(String name, String fieldPrefix) {
            this.name = name;
            this.fieldPrefix = fieldPrefix;
        }

        protected String prefixedFieldName(String name) {
            return fieldPrefix + name;
        }
    }

    private static class AncestorStructSdBuilder extends NamedSdBuilder {
        private boolean elem_array_name_attr;
        private boolean elem_array_weight_attr;
        private boolean elem_map_key_attr;
        private boolean elem_map_value_name_attr;
        private boolean elem_map_value_weight_attr;
        private boolean str_int_map_key_attr;
        private boolean str_int_map_value_attr;

        public AncestorStructSdBuilder(String name, String fieldPrefix) {
            super(name, fieldPrefix);
            elem_array_name_attr = true;
            elem_array_weight_attr = true;
            elem_map_key_attr = true;
            elem_map_value_name_attr = true;
            elem_map_value_weight_attr = true;
            str_int_map_key_attr = true;
            str_int_map_value_attr = true;
        }

        public AncestorStructSdBuilder elem_array_name_attr(boolean v) { elem_array_name_attr = v; return this; }
        public AncestorStructSdBuilder elem_array_weight_attr(boolean v) { elem_array_weight_attr = v; return this; }
        public AncestorStructSdBuilder elem_map_key_attr(boolean v) { elem_map_key_attr = v; return this; }
        public AncestorStructSdBuilder elem_map_value_name_attr(boolean v) { elem_map_value_name_attr = v; return this; }
        public AncestorStructSdBuilder elem_map_value_weight_attr(boolean v) { elem_map_value_weight_attr = v; return this; }
        public AncestorStructSdBuilder str_int_map_key_attr(boolean v) { str_int_map_key_attr = v; return this; }
        public AncestorStructSdBuilder str_int_map_value_attr(boolean v) { str_int_map_value_attr = v; return this; }

        public String build() {
            return joinLines("search " + name + " {",
                    "  document " + name + " {",
                    "    struct elem {",
                    "      field name type string {}",
                    "      field weight type int {}",
                    "    }",
                    "    field " + prefixedFieldName("elem_array") + " type array<elem> {",
                    "      indexing: summary",
                    "      struct-field name {",
                    structFieldSpec(elem_array_name_attr),
                    "      }",
                    "      struct-field weight {",
                    structFieldSpec(elem_array_weight_attr),
                    "      }",
                    "    }",
                    "    field " + prefixedFieldName("elem_map") + " type map<string, elem> {",
                    "      indexing: summary",
                    "      struct-field key {",
                    structFieldSpec(elem_map_key_attr),
                    "      }",
                    "      struct-field value.name {",
                    structFieldSpec(elem_map_value_name_attr),
                    "      }",
                    "      struct-field value.weight {",
                    structFieldSpec(elem_map_value_weight_attr),
                    "      }",
                    "    }",
                    "    field " + prefixedFieldName("str_int_map") + " type map<string, int> {",
                    "      indexing: summary",
                    "      struct-field key {",
                    structFieldSpec(str_int_map_key_attr),
                    "      }",
                    "      struct-field value {",
                    structFieldSpec(str_int_map_value_attr),
                    "      }",
                    "    }",
                    "  }",
                    "}");
        }

        private static String structFieldSpec(boolean isAttribute) {
            return isAttribute ? "        indexing: attribute" : "";
        }
    }

    private static class ParentStructSdBuilder extends AncestorStructSdBuilder {
        ParentStructSdBuilder() {
            super("parent", "");
        }
    }

    private static class GrandParentStructSdBuilder extends AncestorStructSdBuilder {
        GrandParentStructSdBuilder() {
            super("grandparent", "gp_");
        }
    }

    private static class DescendantSdBuilder extends NamedSdBuilder {
        protected String parentName;
        private String parentFieldPrefix;

        public DescendantSdBuilder(String name, String fieldPrefix, String parentName, String parentFieldPrefix) {
            super(name, fieldPrefix);
            this.parentName = parentName;
            this.parentFieldPrefix = parentFieldPrefix;
        }

        protected String parentRef() {
            return parentName + "_ref";
        }

        protected String importParentField(String fieldName) {
            return "  import field " + parentRef() + "." + parentFieldPrefix + fieldName + " as " + prefixedFieldName(fieldName) + " {}";
        }
    }

    private static class DescendantStructSdBuilder extends DescendantSdBuilder {
        public DescendantStructSdBuilder(String name, String fieldPrefix, String parentName, String parentFieldPrefix) {
            super(name, fieldPrefix, parentName, parentFieldPrefix);
        }

        public String build() {
            return joinLines("search " + name + " {",
                    "  document " + name + " {",
                    "    field " + parentRef() + " type reference<" + parentName + "> {",
                    "      indexing: attribute | summary",
                    "    }",
                    "  }",
                    importParentField("elem_array"),
                    importParentField("elem_map"),
                    importParentField("str_int_map"),
                    "}");
        }
    }

    private static class ChildStructSdBuilder extends DescendantStructSdBuilder {
        public ChildStructSdBuilder() {
            super("child", "my_", "parent", "");
        }
    }

    private static class IntermediateParentStructSdBuilder extends DescendantStructSdBuilder {
        public IntermediateParentStructSdBuilder() {
            super("parent", "", "grandparent", "gp_");
        }
    }

    private static Schema buildChildSearch(String parentSdContent, String sdContent) throws ParseException {
        ApplicationBuilder builder = new ApplicationBuilder();
        builder.addSchema(parentSdContent);
        builder.addSchema(sdContent);
        builder.build(true);
        return builder.getSchema("child");
    }

    private static Schema buildChildSearch(String grandParentSdContent, String parentSdContent, String sdContent) throws ParseException {
        ApplicationBuilder builder = new ApplicationBuilder();
        builder.addSchema(grandParentSdContent);
        builder.addSchema(parentSdContent);
        builder.addSchema(sdContent);
        builder.build(true);
        return builder.getSchema("child");
    }

    private static class AncestorPosSdBuilder extends NamedSdBuilder {
        public AncestorPosSdBuilder(String name, String fieldPrefix) {
            super(name, fieldPrefix);
        }

        public String build() {
            return joinLines("search " + name + " {",
                    "  document " + name + " {",
                    "field " + prefixedFieldName("pos") + " type position {",
                    "indexing: attribute | summary",
                    "    }",
                    "  }",
                    "}");
        }
    }

    private static class ParentPosSdBuilder extends AncestorPosSdBuilder {
        public ParentPosSdBuilder() { super("parent", ""); }
    }

    private static class GrandParentPosSdBuilder extends AncestorPosSdBuilder {
        public GrandParentPosSdBuilder() { super("grandparent", "gp_"); }
    }

    private static class DescendantPosSdBuilder extends DescendantSdBuilder {
        private boolean import_pos_zcurve_before;

        public DescendantPosSdBuilder(String name, String fieldPrefix, String parentName, String parentFieldPrefix) {
            super(name, fieldPrefix, parentName, parentFieldPrefix);
            import_pos_zcurve_before = false;
        }

        DescendantPosSdBuilder import_pos_zcurve_before(boolean v) { import_pos_zcurve_before = v; return this; }

        public String build() {
            return joinLines("search " + name + " {",
                    "  document " + name + " {",
                    "    field " + parentRef() + " type reference<" + parentName + "> {",
                    "      indexing: attribute | summary",
                    "    }",
                    "  }",
                    importPosZCurve(import_pos_zcurve_before),
                    importParentField("pos"),
                    "}");
        }

        private static String importPosZCurve(boolean doImport) {
            return doImport ? "import field parent_ref.pos_zcurve as my_pos_zcurve {}" : "";
        }
    }

    private static class ChildPosSdBuilder extends DescendantPosSdBuilder {
        public ChildPosSdBuilder() {
            super("child", "my_", "parent", "");
        }
    }

    private static class IntermediateParentPosSdBuilder extends DescendantPosSdBuilder {
        public IntermediateParentPosSdBuilder() {
            super("parent", "", "grandparent", "gp_");
        }
    }

    private static void checkPosImport(ParentPosSdBuilder parentBuilder, DescendantPosSdBuilder childBuilder) throws ParseException {
        Schema schema = buildChildSearch(parentBuilder.build(), childBuilder.build());
        checkImportedPosFields(schema);
    }

    private static void checkNestedPosImport(GrandParentPosSdBuilder grandParentBuilder, DescendantPosSdBuilder childBuilder) throws ParseException {
        Schema schema = buildChildSearch(grandParentBuilder.build(), new IntermediateParentPosSdBuilder().build(), childBuilder.build());
        checkImportedPosFields(schema);
    }

    private static void checkImportedPosFields(Schema schema) {
        assertEquals(2, schema.importedFields().get().fields().size());
        assertSearchContainsImportedField("my_pos_zcurve", "parent_ref", "parent", "pos_zcurve", schema);
        assertSearchContainsImportedField("my_pos", "parent_ref", "parent", "pos", schema);
    }

    @Test
    void check_pos_import() throws ParseException {
        checkPosImport(new ParentPosSdBuilder(), new ChildPosSdBuilder());
    }

    @Test
    void check_nested_pos_import() throws ParseException {
        checkNestedPosImport(new GrandParentPosSdBuilder(), new ChildPosSdBuilder());
    }

    @Test
    void check_pos_import_after_pos_zcurve_import() throws ParseException {
        Throwable exception = assertThrows(IllegalArgumentException.class, () -> {
            checkPosImport(new ParentPosSdBuilder(), new ChildPosSdBuilder().import_pos_zcurve_before(true));
        });
        assertTrue(exception.getMessage().contains("For schema 'child', import field 'my_pos_zcurve': Field 'pos_zcurve' via reference field 'parent_ref': Field already imported"));
    }

    private static ImportedField getImportedField(String name, Schema schema) {
        if (name.contains(".")) {
            assertNull(schema.importedFields().get().fields().get(name));
            String superFieldName = name.substring(0,name.indexOf("."));
            String subFieldName = name.substring(name.indexOf(".")+1);
            ImportedField superField = schema.importedFields().get().fields().get(superFieldName);
            if (superField != null && superField instanceof ImportedComplexField) {
                return ((ImportedComplexField)superField).getNestedField(subFieldName);
            }
            return null;
        }
        return schema.importedFields().get().fields().get(name);
    }

    private static void assertSearchNotContainsImportedField(String fieldName, Schema schema) {
        ImportedField importedField = getImportedField(fieldName, schema);
        assertNull(importedField);
    }

    private static void assertSearchContainsImportedField(String fieldName,
                                                          String referenceFieldName,
                                                          String referenceDocType,
                                                          String targetFieldName,
                                                          Schema schema) {
        ImportedField importedField = getImportedField(fieldName, schema);
        assertNotNull(importedField);
        assertEquals(fieldName, importedField.fieldName());
        assertEquals(referenceFieldName, importedField.reference().referenceField().getName());
        assertEquals(referenceDocType, importedField.reference().targetSearch().getName());
        assertEquals(targetFieldName, importedField.targetField().getName());
    }

    private static void checkImportedField(String fieldName, String referenceFieldName, String referenceDocType,
                                           String targetFieldName, Schema schema, boolean present) {
        if (present) {
            assertSearchContainsImportedField(fieldName, referenceFieldName, referenceDocType, targetFieldName, schema);
        } else {
            assertSearchNotContainsImportedField(fieldName, schema);
        }
    }

    @Test
    void field_with_struct_field_attributes_can_be_imported_from_parents_that_use_inheritance() throws ParseException {
        var builder = buildParentsUsingInheritance();

        assertParentContainsEntriesAttributes(builder.getSchema("parent_a"));
        assertParentContainsEntriesAttributes(builder.getSchema("parent_b"));

        var child = builder.getSchema("child");
        checkImportedField("entries_from_a", "ref_parent_a", "parent_a", "entries", child, true);
        checkImportedField("entries_from_a.key", "ref_parent_a", "parent_a", "entries.key", child, true);
        checkImportedField("entries_from_a.value", "ref_parent_a", "parent_a", "entries.value", child, true);

        checkImportedField("entries_from_b", "ref_parent_b", "parent_b", "entries", child, true);
        checkImportedField("entries_from_b.key", "ref_parent_b", "parent_b", "entries.key", child, true);
        checkImportedField("entries_from_b.value", "ref_parent_b", "parent_b", "entries.value", child, true);
    }

    private void assertParentContainsEntriesAttributes(Schema parent) {
        var attrs = new AttributeFields(parent);
        assertTrue(attrs.containsAttribute("entries.key"));
        assertTrue(attrs.containsAttribute("entries.value"));
    }

    private ApplicationBuilder buildParentsUsingInheritance() throws ParseException {
        var builder = new ApplicationBuilder();
        builder.addSchema(joinLines("schema parent_a {",
                                    "document parent_a {",
                                    "  struct Entry {",
                                    "    field key type string {}",
                                    "    field value type string {}",
                                    "  }",
                                    "  field entries type array<Entry> {",
                                    "    indexing: summary",
                                    "    struct-field key { indexing: attribute }",
                                    "    struct-field value { indexing: attribute }",
                                    "  }",
                                    "}",
                                    "}"));

        builder.addSchema(joinLines("schema parent_b {",
                                    "document parent_b inherits parent_a {",
                                    "}",
                                    "}"));

        builder.addSchema(joinLines("schema child {",
                                    "document child {",
                                    "  field ref_parent_a type reference<parent_a> {",
                                    "    indexing: attribute",
                                    "  }",
                                    "  field ref_parent_b type reference<parent_b> {",
                                    "    indexing: attribute",
                                    "  }",
                                    "}",
                                    "import field ref_parent_a.entries as entries_from_a {}",
                                    "import field ref_parent_b.entries as entries_from_b {}",
                                    "}"));

        builder.build(true);
        return builder;
    }

    }