|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.terrier.structures.postings.PostingUtil
public class PostingUtil
Handy methods for Posting classes, such as obtaining all ids in a posting list, or selecting the minimum id in an array of posting lists.
Constructor Summary | |
---|---|
PostingUtil()
|
Method Summary | |
---|---|
static int[] |
getIds(IterablePosting ip)
Get an array of all the ids in a given IterablePosting stream |
static int[] |
getIds(IterablePosting ip,
int numPointers)
Get an array of all the ids in a given IterablePosting stream, where the length of the stream is known |
static int |
selectMinimumDocId(IterablePosting[] postingListArray)
Returns the minimum docid of the current postings in the array of IterablePostings |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PostingUtil()
Method Detail |
---|
public static int[] getIds(IterablePosting ip) throws java.io.IOException
java.io.IOException
public static int[] getIds(IterablePosting ip, int numPointers) throws java.io.IOException
java.io.IOException
public static int selectMinimumDocId(IterablePosting[] postingListArray)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |