|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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[][] |
getAllPostings(IterablePosting ip)
Get an array of all the ids in a given IterablePosting stream, where the length of the stream is known |
static int[][] |
getAllPostings(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[] |
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 IOException
IOException
public static int[] getIds(IterablePosting ip,
int numPointers)
throws IOException
IOException
public static int[][] getAllPostings(IterablePosting ip,
int numPointers)
throws IOException
IOException
public static int[][] getAllPostings(IterablePosting ip)
throws IOException
IOExceptionpublic static int selectMinimumDocId(IterablePosting[] postingListArray)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||