public class FeaturedQueryResultSet extends QueryResultSet implements FeaturedResultSet
metadata, metaMap
arraysInitialised, docids, exactResultSize, lock, occurrences, resultSize, scores, statusCode
Constructor and Description |
---|
FeaturedQueryResultSet(int length) |
FeaturedQueryResultSet(ResultSet 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 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
|
ResultSet |
getResultSet(int[] positions)
Extracts a subset of the resultset given by the list parameter,
which contains a list of positions in the resultset that
should be saved.
|
ResultSet |
getResultSet(int startPosition,
int length)
Crops the existing result file and extracts a subset
from the given starting point to the ending point.
|
protected QueryResultSet |
makeNewResultSet(int length) |
void |
putFeatureScores(String name,
double[] scores)
Add a feature to this result set
|
void |
setDefaultLabel(String defLabel) |
void |
setLabels(String[] labels) |
addMetaItem, addMetaItems, addMetaType, getMetaItem, getMetaItems, getMetaKeys, hasMetaItems, initialise
getDocids, getExactResultSize, getLock, getOccurrences, getResultSize, getScores, getStatusCode, initialise, setExactResultSize, setResultSize, setStatusCode, sort, sort
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addMetaItem, addMetaItems, getDocids, getExactResultSize, getLock, getMetaItem, getMetaItems, getMetaKeys, getOccurrences, getResultSize, getScores, getStatusCode, hasMetaItems, initialise, initialise, setExactResultSize, setResultSize, setStatusCode, sort, sort
public FeaturedQueryResultSet(ResultSet resultSet)
public FeaturedQueryResultSet(int length)
public String[] getFeatureNames()
getFeatureNames
in interface FeaturedResultSet
public void setLabels(String[] labels)
setLabels
in interface FeaturedResultSet
public String[] getLabels()
getLabels
in interface FeaturedResultSet
public void setDefaultLabel(String defLabel)
setDefaultLabel
in interface FeaturedResultSet
public String getDefaultLabel()
getDefaultLabel
in interface FeaturedResultSet
public void putFeatureScores(String name, double[] scores)
putFeatureScores
in interface FeaturedResultSet
public double[] getFeatureScores(String name)
getFeatureScores
in interface FeaturedResultSet
public double[] getFeatureScores(int id)
getFeatureScores
in interface FeaturedResultSet
public int getNumberOfFeatures()
getNumberOfFeatures
in interface FeaturedResultSet
public ResultSet getResultSet(int startPosition, int length)
getResultSet
in interface ResultSet
getResultSet
in class QueryResultSet
startPosition
- the beginning of the subset.length
- the number of entries to get.public ResultSet getResultSet(int[] positions)
getResultSet
in interface ResultSet
getResultSet
in class QueryResultSet
positions
- int[] the list of elements in the current
list that should be kept.protected QueryResultSet makeNewResultSet(int length)
makeNewResultSet
in class QueryResultSet
Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow