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

IGNITE-14830 Introduce index internal API #518

Merged
merged 54 commits into from Feb 7, 2022

Conversation

tledkov
Copy link

@tledkov tledkov commented Dec 22, 2021

No description provided.

tledkov added 17 commits December 15, 2021 11:15
# Conflicts:
#	modules/table/src/main/java/org/apache/ignite/internal/table/TableImpl.java
#	modules/table/src/main/java/org/apache/ignite/internal/table/distributed/TableManager.java
List<String> tblColIds = new ArrayList<>(tbl.schemaView().schema().columnNames());
Set<String> idxColIds = columns().stream().map(Column::name).collect(Collectors.toSet());

boolean needLookup = proj.stream().anyMatch(order -> !idxColIds.contains(tblColIds.get(order)));
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
boolean needLookup = proj.stream().anyMatch(order -> !idxColIds.contains(tblColIds.get(order)));
boolean indexOnly = proj.stream().map(tblColIds::get).allMatch(idxColIds::contains);

Or better avoid streams.

Taras Ledkov and others added 7 commits February 3, 2022 16:22
…/SortedIndexDescriptor.java

Co-authored-by: Andrew V. Mashenkov <AMashenkov@users.noreply.github.com>
…/SortedIndexDescriptor.java

Co-authored-by: Andrew V. Mashenkov <AMashenkov@users.noreply.github.com>
# Conflicts:
#	modules/sql-engine/src/test/java/org/apache/ignite/internal/sql/engine/exec/MockedStructuresTest.java
#	modules/table/src/main/java/org/apache/ignite/internal/table/TableImpl.java
@tledkov tledkov merged commit 99fe791 into apache:ignite-14925-sorted-indexes Feb 7, 2022
@tledkov tledkov deleted the ignite-14830 branch February 7, 2022 16:45
korlov42 pushed a commit to gridgain/apache-ignite-3 that referenced this pull request Feb 23, 2022
ygerzhedovich pushed a commit that referenced this pull request Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants