1 | /* | |
2 | * Copyright OpenSearch Contributors | |
3 | * SPDX-License-Identifier: Apache-2.0 | |
4 | */ | |
5 | ||
6 | ||
7 | package org.opensearch.sql.storage.bindingtuple; | |
8 | ||
9 | import java.util.function.Supplier; | |
10 | import lombok.RequiredArgsConstructor; | |
11 | import org.opensearch.sql.data.model.ExprTupleValue; | |
12 | import org.opensearch.sql.data.model.ExprValue; | |
13 | import org.opensearch.sql.expression.ReferenceExpression; | |
14 | ||
15 | /** | |
16 | * Lazy Implementation of {@link BindingTuple}. | |
17 | */ | |
18 | @RequiredArgsConstructor | |
19 | public class LazyBindingTuple extends BindingTuple { | |
20 | private final Supplier<ExprTupleValue> lazyBinding; | |
21 | ||
22 | @Override | |
23 | public ExprValue resolve(ReferenceExpression ref) { | |
24 |
1
1. resolve : replaced return value with null for org/opensearch/sql/storage/bindingtuple/LazyBindingTuple::resolve → KILLED |
return ref.resolve(lazyBinding.get()); |
25 | } | |
26 | } | |
Mutations | ||
24 |
1.1 |