com.yahoo.language.significance.impl.DocumentFrequencyFile Maven / Gradle / Ivy
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.language.significance.impl;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;
/**
*
* @author MariusArhaug
*/
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DocumentFrequencyFile {
private final String description;
private final long documentCount;
private final Map frequencies;
@JsonCreator
public DocumentFrequencyFile(
@JsonProperty("description") String description,
@JsonProperty("document-count") long documentCount,
@JsonProperty("document-frequencies") Map frequencies) {
this.description = description;
this.documentCount = documentCount;
this.frequencies = frequencies;
}
@JsonProperty("description")
public String description() { return description; }
@JsonProperty("document-count")
public long documentCount() { return documentCount; }
@JsonProperty("document-frequencies")
public Map frequencies() { return frequencies; }
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy