public class FatCandidateResultSet extends CandidateResultSet implements org.apache.hadoop.io.Writable, FatResultSet
| Modifier and Type | Field and Description |
|---|---|
protected WritablePosting[][] |
postings |
docids, exactResultSize, lock, occurrences, resultSize, scores, statusCode| Constructor and Description |
|---|
FatCandidateResultSet() |
FatCandidateResultSet(List<CandidateResult> q,
CollectionStatistics cs,
String[] queryTerms,
EntryStatistics[] entryStats,
double[] keyFrequency) |
FatCandidateResultSet(Queue<CandidateResult> q,
CollectionStatistics cs,
String[] queryTerms,
EntryStatistics[] entryStats,
double[] keyFrequency) |
| Modifier and Type | Method and Description |
|---|---|
CollectionStatistics |
getCollectionStatistics()
Get the collection statistics that should be applied when (re)scoring any
documents in this query
|
EntryStatistics[] |
getEntryStatistics()
Return the EntryStatistics of each of the query terms in the query
|
double[] |
getKeyFrequencies()
Return the frequencies of each of the query terms in the query
|
WritablePosting[][] |
getPostings()
Returns a 2D array of posting objects for the document and terms in this result set.
|
String[] |
getQueryTerms()
Get the query terms in this query.
|
FatResultSet |
getResultSet(int start,
int length)
Crops the existing result file and extracts a subset
from the given starting point, with the given length.
|
void |
readFields(DataInput in) |
void |
setCollectionStatistics(CollectionStatistics cs) |
void |
setDocids(int[] ds) |
void |
setEntryStatistics(EntryStatistics[] es) |
void |
setKeyFrequencies(double[] ks) |
void |
setOccurrences(short[] os) |
void |
setPostings(WritablePosting[][] wp) |
void |
setQueryTerms(String[] qs) |
void |
setScores(double[] ss) |
void |
sort(int topDocs)
Sorts the top topDocs document in this resultset be first.
|
void |
write(DataOutput out) |
addMetaItem, addMetaItems, getDocids, getExactResultSize, getLock, getMetaItem, getMetaItems, getMetaKeys, getOccurrences, getResultSet, getResultSize, getScores, getStatusCode, hasMetaItems, initialise, initialise, setExactResultSize, setResultSize, setStatusCode, sortclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddMetaItem, addMetaItems, getDocids, getExactResultSize, getLock, getMetaItem, getMetaItems, getMetaKeys, getOccurrences, getResultSet, getResultSize, getScores, getStatusCode, hasMetaItems, initialise, initialise, setExactResultSize, setResultSize, setStatusCode, sortprotected WritablePosting[][] postings
public FatCandidateResultSet()
public FatCandidateResultSet(Queue<CandidateResult> q, CollectionStatistics cs, String[] queryTerms, EntryStatistics[] entryStats, double[] keyFrequency)
public FatCandidateResultSet(List<CandidateResult> q, CollectionStatistics cs, String[] queryTerms, EntryStatistics[] entryStats, double[] keyFrequency)
public WritablePosting[][] getPostings()
FatResultSetgetPostings in interface FatResultSetpublic double[] getKeyFrequencies()
FatResultSetgetKeyFrequencies in interface FatResultSetpublic EntryStatistics[] getEntryStatistics()
FatResultSetgetEntryStatistics in interface FatResultSetpublic CollectionStatistics getCollectionStatistics()
FatResultSetgetCollectionStatistics in interface FatResultSetpublic String[] getQueryTerms()
FatResultSetgetQueryTerms in interface FatResultSetpublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionpublic void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic FatResultSet getResultSet(int start, int length)
CandidateResultSetgetResultSet in interface ResultSetgetResultSet in class CandidateResultSetstart - the beginning of the subset.length - the length of the subset.public void sort(int topDocs)
ResultSetsort in interface ResultSetsort in class CandidateResultSettopDocs - number of documents to top-rankpublic void setPostings(WritablePosting[][] wp)
setPostings in interface FatResultSetpublic void setKeyFrequencies(double[] ks)
setKeyFrequencies in interface FatResultSetpublic void setEntryStatistics(EntryStatistics[] es)
setEntryStatistics in interface FatResultSetpublic void setCollectionStatistics(CollectionStatistics cs)
setCollectionStatistics in interface FatResultSetpublic void setQueryTerms(String[] qs)
setQueryTerms in interface FatResultSetpublic void setDocids(int[] ds)
setDocids in interface FatResultSetpublic void setOccurrences(short[] os)
setOccurrences in interface FatResultSetpublic void setScores(double[] ss)
setScores in interface FatResultSetTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow