|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terrier.structures.indexing.singlepass.Inverted2DirectIndexBuilder
org.terrier.structures.indexing.singlepass.BlockInverted2DirectIndexBuilder
public class BlockInverted2DirectIndexBuilder
Create a block direct index from a BlockInvertedIndex.
Properties:
| Field Summary |
|---|
| Fields inherited from class org.terrier.structures.indexing.singlepass.Inverted2DirectIndexBuilder |
|---|
basicDirectIndexPostingIteratorClass, destinationStructure, directIndexClass, directIndexInputStreamClass, fieldCount, fieldDirectIndexPostingIteratorClass, index, logger, processTokens, saveTagInformation, sourceStructure |
| Constructor Summary | |
|---|---|
BlockInverted2DirectIndexBuilder(Index i)
constructor |
|
| Method Summary | |
|---|---|
protected PostingInRun |
getPostingReader()
returns the SPIR implementation that should be used for reading the postings written earlier |
protected Posting[] |
getPostings(int count)
get an array of posting object of the specified size. |
static void |
main(java.lang.String[] args)
main |
protected long |
traverseInvertedFile(InvertedIndexInputStream iiis,
int firstDocid,
int lastDocid,
Posting[] directPostings)
traverse the inverted file, looking for all occurrences of documents in the given range |
| Methods inherited from class org.terrier.structures.indexing.singlepass.Inverted2DirectIndexBuilder |
|---|
createDirectIndex, scanDocumentIndexForTokens |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BlockInverted2DirectIndexBuilder(Index i)
i - | Method Detail |
|---|
protected Posting[] getPostings(int count)
getPostings in class Inverted2DirectIndexBuilderprotected PostingInRun getPostingReader()
getPostingReader in class Inverted2DirectIndexBuilder
protected long traverseInvertedFile(InvertedIndexInputStream iiis,
int firstDocid,
int lastDocid,
Posting[] directPostings)
throws java.io.IOException
traverseInvertedFile in class Inverted2DirectIndexBuilderjava.io.IOException
public static void main(java.lang.String[] args)
throws java.lang.Exception
args -
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||