Skip to content

Commit

Permalink
address review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jimczi committed Jun 7, 2024
1 parent 690c0ad commit e01a601
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,18 @@ public Set<String> requiredStoredFields() {
};

/**
* Load {@code _source} from doc values.
* Reconstructs {@code _source} from doc values anf stored fields.
*/
class Synthetic implements SourceLoader {
private final Supplier<SyntheticFieldLoader> syntheticFieldLoaderLeafSupplier;
private final Set<String> requiredStoredFields;
private final SourceFieldMetrics metrics;

/**
* Creates a {@link SourceLoader} to reconstruct {@code _source} from doc values anf stored fields.
* @param fieldLoaderSupplier A supplier to create {@link SyntheticFieldLoader}, one for each leaf.
* @param metrics Metrics for profiling.
*/
public Synthetic(Supplier<SyntheticFieldLoader> fieldLoaderSupplier, SourceFieldMetrics metrics) {
this.syntheticFieldLoaderLeafSupplier = fieldLoaderSupplier;
this.requiredStoredFields = syntheticFieldLoaderLeafSupplier.get()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
import org.elasticsearch.search.aggregations.support.ValuesSourceRegistry;
import org.elasticsearch.search.internal.SubSearchContext;
import org.elasticsearch.search.lookup.SearchLookup;
import org.elasticsearch.search.lookup.Source;
import org.elasticsearch.search.lookup.SourceProvider;
import org.elasticsearch.search.sort.BucketedSort;
import org.elasticsearch.search.sort.BucketedSort.ExtraData;
Expand Down

0 comments on commit e01a601

Please sign in to comment.