public class FeaturedQueryResultSet extends QueryResultSet implements FeaturedResultSet
metadata, metaMaparraysInitialised, 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, allMetaItems, getMetaItem, getMetaItems, getMetaKeys, hasMetaItems, initialise, sort, sortgetDocids, getExactResultSize, getLock, getOccurrences, getResultSize, getScores, getStatusCode, initialise, setExactResultSize, setResultSize, setStatusCodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddMetaItem, addMetaItems, allMetaItems, getDocids, getExactResultSize, getLock, getMetaItem, getMetaItems, getMetaKeys, getOccurrences, getResultSize, getScores, getStatusCode, hasMetaItems, initialise, initialise, setExactResultSize, setResultSize, setStatusCode, sort, sortpublic FeaturedQueryResultSet(ResultSet resultSet)
public FeaturedQueryResultSet(int length)
public String[] getFeatureNames()
getFeatureNames in interface FeaturedResultSetpublic void setLabels(String[] labels)
setLabels in interface FeaturedResultSetpublic String[] getLabels()
getLabels in interface FeaturedResultSetpublic void setDefaultLabel(String defLabel)
setDefaultLabel in interface FeaturedResultSetpublic String getDefaultLabel()
getDefaultLabel in interface FeaturedResultSetpublic void putFeatureScores(String name, double[] scores)
putFeatureScores in interface FeaturedResultSetpublic double[] getFeatureScores(String name)
getFeatureScores in interface FeaturedResultSetpublic double[] getFeatureScores(int id)
getFeatureScores in interface FeaturedResultSetpublic int getNumberOfFeatures()
getNumberOfFeatures in interface FeaturedResultSetpublic ResultSet getResultSet(int startPosition, int length)
getResultSet in interface ResultSetgetResultSet in class QueryResultSetstartPosition - the beginning of the subset.length - the number of entries to get.public ResultSet getResultSet(int[] positions)
getResultSet in interface ResultSetgetResultSet in class QueryResultSetpositions - int[] the list of elements in the current
list that should be kept.protected QueryResultSet makeNewResultSet(int length)
makeNewResultSet in class QueryResultSetTerrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow