-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Specify column qualifier as regex pattern when defining data types. F…
- Loading branch information
Showing
41 changed files
with
639 additions
and
448 deletions.
There are no files selected for viewing
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
24 changes: 24 additions & 0 deletions
24
src/main/java/com/erikmafo/btviewer/model/CellDefinitionMatcherUtil.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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.erikmafo.btviewer.model; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
|
||
import java.util.Collection; | ||
import java.util.Optional; | ||
|
||
public class CellDefinitionMatcherUtil { | ||
|
||
@NotNull | ||
public static Optional<CellDefinition> findBestMatch( | ||
@NotNull Collection<CellDefinition> cellDefinitions, | ||
BigtableColumn column) { | ||
return cellDefinitions | ||
.stream() | ||
.filter(c -> c.matchesExact(column)) | ||
.findFirst() | ||
.or(() -> cellDefinitions | ||
.stream() | ||
.sorted(SortUtil::byQualifierLengthDescending) | ||
.filter(c -> c.matches(column)) | ||
.findFirst()); | ||
} | ||
} |
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
2 changes: 1 addition & 1 deletion
2
src/main/java/com/erikmafo/btviewer/services/internal/AppDataUtil.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
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
65 changes: 0 additions & 65 deletions
65
src/main/java/com/erikmafo/btviewer/ui/dialogs/CredentialsPathDialog.java
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
src/main/java/com/erikmafo/btviewer/ui/dialogs/DialogController.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.