2021-10-13 00:23:56 +02:00
|
|
|
package it.cavallium.dbengine;
|
|
|
|
|
2021-10-28 17:18:23 +02:00
|
|
|
import it.cavallium.dbengine.client.Sort;
|
2021-10-16 00:32:04 +02:00
|
|
|
import it.cavallium.dbengine.client.query.BasicType;
|
|
|
|
|
|
|
|
record ExpectedQueryType(boolean shard, boolean sorted, boolean sortedByScore, boolean complete, boolean onlyCount) {
|
|
|
|
|
2021-10-28 17:18:23 +02:00
|
|
|
public ExpectedQueryType(boolean shard, Sort multiSort, boolean complete, boolean onlyCount) {
|
|
|
|
this(shard, multiSort.isSorted(), multiSort.querySort().getBasicType$() == BasicType.ScoreSort, complete, onlyCount);
|
2021-10-16 00:32:04 +02:00
|
|
|
}
|
|
|
|
}
|