org.molgenis.semanticsearch.explain.bean.ExplainedAttribute Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of molgenis-semantic-search Show documentation
Show all versions of molgenis-semantic-search Show documentation
Semantic data search service functionality.
The newest version!
package org.molgenis.semanticsearch.explain.bean;
import com.google.auto.value.AutoValue;
import java.util.Set;
import org.molgenis.data.meta.model.Attribute;
@AutoValue
@SuppressWarnings("java:S1610") // Abstract classes without fields should be converted to interfaces
public abstract class ExplainedAttribute {
public abstract Attribute getAttribute();
public abstract Set getExplainedQueryStrings();
public abstract boolean isHighQuality();
public static ExplainedAttribute create(
Attribute attribute, Set explainedQueryStrings, boolean isHighQuality) {
return new AutoValue_ExplainedAttribute(attribute, explainedQueryStrings, isHighQuality);
}
}