-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2027 from bakdata/feature/resolve-with-prefetch
Adds option to list all elements instead of doing a search
- Loading branch information
Showing
7 changed files
with
495 additions
and
414 deletions.
There are no files selected for viewing
20 changes: 17 additions & 3 deletions
20
backend/src/main/java/com/bakdata/conquery/apiv1/frontend/FEValue.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,37 @@ | ||
package com.bakdata.conquery.apiv1.frontend; | ||
|
||
import java.util.Comparator; | ||
import java.util.Map; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
/** | ||
* This class represents a values of a SELECT filter. | ||
*/ | ||
@Data @AllArgsConstructor | ||
public class FEValue { | ||
|
||
@Data | ||
@AllArgsConstructor | ||
public class FEValue implements Comparable<FEValue> { | ||
private static final Comparator<FEValue> COMPARATOR = Comparator.comparing(FEValue::getLabel).thenComparing(FEValue::getValue); | ||
|
||
@NotNull | ||
private final String label; | ||
|
||
@NotNull | ||
private final String value; | ||
|
||
private Map<String, String> templateValues; | ||
|
||
private String optionValue; | ||
|
||
public FEValue(String label, String value) { | ||
this.label = label; | ||
this.value = value; | ||
} | ||
|
||
@Override | ||
public int compareTo(@NotNull FEValue o) { | ||
return COMPARATOR.compare(this, o); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.