Skip to content

Introduce Range Query, Null and Generalized args generators in Java version#19

Open
Altickium wants to merge 4 commits intoITMO-PTDC-Team:masterfrom
Altickium:java-range-queries
Open

Introduce Range Query, Null and Generalized args generators in Java version#19
Altickium wants to merge 4 commits intoITMO-PTDC-Team:masterfrom
Altickium:java-range-queries

Conversation

@Altickium
Copy link
Copy Markdown
Contributor

No description provided.

@Mr-Ravil
Copy link
Copy Markdown
Member

Mr-Ravil commented Oct 1, 2025

Для тестирования rangeQuery заведи адаптер над стандартным ConcurrentSkipListMap. Вот сам запрос rabgeQuery: https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ConcurrentSkipListMap.html#subMap-K-K-

@Mr-Ravil
Copy link
Copy Markdown
Member

Mr-Ravil commented Oct 1, 2025

Хотя возможно даже не надо создавать адаптер, а просто передавать сам класс в качестве параметра

Для тестирования rangeQuery заведи адаптер над стандартным ConcurrentSkipListMap. Вот сам запрос rabgeQuery: https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ConcurrentSkipListMap.html#subMap-K-K-

@Altickium Altickium force-pushed the java-range-queries branch 3 times, most recently from 53caa4d to 40776f3 Compare October 15, 2025 16:36
Comment thread java/src/contention/benchmark/workload/thread/loops/impls/DefaultThreadLoop.java Outdated
Comment thread java/src/contention/benchmark/workload/thread/loops/abstractions/ThreadLoop.java Outdated
public StringBuilder toStringBuilder(int indents) {
return new StringBuilder()
.append(indentedTitleWithData("Type", "Default", indents))
.append(indentedTitleWithData("Type", "DEFAULT", indents))
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.

можно без капса

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.

А у нас же у каждого ArgsGeneratorBuilder указано капсом

Comment thread java/src/contention/abstractions/CompositionalMap.java Outdated
@Mr-Ravil Mr-Ravil self-requested a review December 4, 2025 10:31

int nextRemove();

Pair<Integer, Integer> nextRange();
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.

как вариант, чтобы не приходилось постоянно прописывать:

    @Override
    public Pair<Integer, Integer> nextRange() {
        throw new UnsupportedOperationException("Range Query not supported");
    }

можно переделать из интерфейса в абстрактный класс, и прописать под каждой операцией заглушку UnsupportedOperationException

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