org.molgenis.semanticsearch.explain.bean.AttributeSearchResults 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 org.molgenis.data.meta.model.Attribute;
import org.molgenis.semanticsearch.semantic.Hits;
@AutoValue
@SuppressWarnings("java:S1610") // Abstract classes without fields should be converted to interfaces
public abstract class AttributeSearchResults {
public abstract Attribute getAttribute();
public abstract Hits getHits();
public static AttributeSearchResults create(Attribute attribute, Hits hits) {
return new AutoValue_AttributeSearchResults(attribute, hits);
}
}