public interface FeaturedResultSet extends ResultSet
Modifier and Type | Method and Description |
---|---|
String |
getDefaultLabel() |
String[] |
getFeatureNames()
Gets the names of the features that have been added to this ResultSet
|
double[] |
getFeatureScores(int feature_id)
Get the feature scores for a given feature id
|
double[] |
getFeatureScores(String name)
Get all scores for the enabled docids given a feature name
|
String[] |
getLabels() |
int |
getNumberOfFeatures()
Number of features decorated for this resultset
|
void |
putFeatureScores(String name,
double[] scores)
Add a feature to this result set
|
void |
setDefaultLabel(String label) |
void |
setLabels(String[] labels) |
addMetaItem, addMetaItems, allMetaItems, getDocids, getExactResultSize, getLock, getMetaItem, getMetaItems, getMetaKeys, getOccurrences, getResultSet, getResultSet, getResultSize, getScores, getStatusCode, hasMetaItems, initialise, initialise, setExactResultSize, setResultSize, setStatusCode, sort, sort
int getNumberOfFeatures()
String[] getFeatureNames()
void putFeatureScores(String name, double[] scores)
double[] getFeatureScores(String name)
double[] getFeatureScores(int feature_id)
void setLabels(String[] labels)
String[] getLabels()
void setDefaultLabel(String label)
String getDefaultLabel()
Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow