Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace Map<String,Object> with IntObjectHashMap for DV producer #13961

Merged
merged 2 commits into from
Oct 29, 2024

Conversation

bugmakerrrrrr
Copy link
Contributor

Description

Add back #13686, which is reverted previously due to #13805.

Copy link
Contributor

@jpountz jpountz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would rather keep SlowCompositeReaderWrapper on the field name than field number, otherwise LGTM. Can you add an entry to lucene/CHANGES.txt?

@@ -377,7 +376,7 @@ private static class SlowCompositeDocValuesProducerWrapper extends DocValuesProd
private final CodecReader[] codecReaders;
private final DocValuesProducer[] producers;
private final int[] docStarts;
private final Map<String, OrdinalMap> cachedOrdMaps = new HashMap<>();
private final IntObjectHashMap<OrdinalMap> cachedOrdMaps = new IntObjectHashMap<>();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would rather keep this one keyed on the String field name since there's some ambiguity about whether it doc values sohuld be retrieved by segment field infos or by merged field infos.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted. Btw, I wonder if we should change the DocValuesProducer/NormsProducer API to take a String rather than a FieldInfo right now as mentioned in issue#13805 and issue#13685.

@jpountz jpountz merged commit 60ddd08 into apache:main Oct 29, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants