public class PostingUtil extends Object
Constructor and Description |
---|
PostingUtil() |
Modifier and Type | Method and Description |
---|---|
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 and frequencies in a given IterablePosting stream,
where the length of the stream is unknown
|
static int[][] |
getAllPostingsWithFields(IterablePosting ip,
int numPointers,
int fieldCount)
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
|
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[][] getAllPostingsWithFields(IterablePosting ip, int numPointers, int fieldCount) throws IOException
IOException
public static int[][] getAllPostings(IterablePosting ip) throws IOException
IOException
public static int selectMinimumDocId(IterablePosting[] postingListArray)
Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow