-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Metadata improvements to show identifier and status indexes details #…
- Loading branch information
1 parent
2df1b4c
commit 61e5034
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
matching-ws/src/main/java/life/catalogue/matching/IndexMetadata.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,32 @@ | ||
package life.catalogue.matching; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.Data; | ||
|
||
/** | ||
* Metadata about an index. | ||
*/ | ||
@JsonInclude(JsonInclude.Include.NON_EMPTY) | ||
@Data | ||
@Schema(description = "Metadata about an index", title = "IndexMetadata", type = "object") | ||
public class IndexMetadata { | ||
@Schema(description = "The dataset key") | ||
String datasetKey; | ||
@Schema(description = "The GBIF key") | ||
String gbifKey; | ||
@Schema(description = "The dataset description") | ||
String datasetTitle; | ||
@Schema(description = "The size of the index in MB") | ||
Long sizeInMB = 0L; | ||
@Schema(description = "The number of name usages in the index") | ||
Long taxonCount = 0L; | ||
@Schema(description = "The number of name usages matched to main index") | ||
Long matchesToMain = 0L; | ||
@Schema(description = "Counts of taxa by rank") | ||
Map<String, Long> taxaByRankCount = new HashMap<>(); | ||
} |