Skip to content

Lazy-ify IncrementalIndex filtering too.#5852

Merged
jon-wei merged 2 commits intoapache:masterfrom
gianm:lazy-ii-filtering
Jun 7, 2018
Merged

Lazy-ify IncrementalIndex filtering too.#5852
jon-wei merged 2 commits intoapache:masterfrom
gianm:lazy-ii-filtering

Conversation

@gianm
Copy link
Copy Markdown
Contributor

@gianm gianm commented Jun 6, 2018

Follow-up to #5403, which only lazy-ified cursor-based filtering
on QueryableIndex.

Follow-up to apache#5403, which only lazy-ified cursor-based filtering
on QueryableIndex.
jon-wei
jon-wei previously approved these changes Jun 6, 2018
@Override
public ValueMatcher makeValueMatcher(final Predicate<String> predicate)
{
final BitSet predicateMatchingValueIds = DimensionSelectorUtils.makePredicateMatchingSet(this, predicate);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is DimensionSelectorUtils.makePredicateMatchingSet() still used or could be deleted?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It's still used in one place: ForwardingFilteredDimensionSpec. I would like to rewrite that code to be lazy in a follow up PR, and delete DimensionSelectorUtils.makePredicateMatchingSet at that time. I didn't do it in this patch since I wanted to keep it small.

@jon-wei jon-wei dismissed their stale review June 6, 2018 22:48

CI failure

@jon-wei jon-wei merged commit 3af9591 into apache:master Jun 7, 2018
gianm added a commit to implydata/druid-public that referenced this pull request Jun 7, 2018
* Lazy-ify IncrementalIndex filtering too.

Follow-up to apache#5403, which only lazy-ified cursor-based filtering
on QueryableIndex.

* Fix logic error.
gianm added a commit to implydata/druid-public that referenced this pull request Jun 7, 2018
* Lazy-ify IncrementalIndex filtering too.

Follow-up to apache#5403, which only lazy-ified cursor-based filtering
on QueryableIndex.

* Fix logic error.
@dclim dclim added this to the 0.13.0 milestone Oct 8, 2018
@gianm gianm deleted the lazy-ii-filtering branch September 23, 2022 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants