Skip to content

Commit

Permalink
Metadata improvements to show identifier and status indexes details #…
Browse files Browse the repository at this point in the history
  • Loading branch information
djtfmartin committed Jun 27, 2024
1 parent 2df1b4c commit 61e5034
Showing 1 changed file with 32 additions and 0 deletions.
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<>();
}

0 comments on commit 61e5034

Please sign in to comment.