Package org.terrier.structures.postings
Class ArrayOfBlockIterablePosting
- java.lang.Object
-
- org.terrier.structures.postings.IterablePostingImpl
-
- org.terrier.structures.postings.ArrayOfIdsIterablePosting
-
- org.terrier.structures.postings.ArrayOfBasicIterablePosting
-
- org.terrier.structures.postings.ArrayOfBlockIterablePosting
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Cloneable
,BlockPosting
,IterablePosting
,Posting
public class ArrayOfBlockIterablePosting extends ArrayOfBasicIterablePosting implements BlockPosting
An array structure that golds BlockIterablePostings- Since:
- 4.0
- Author:
- Craig Macdonald
-
-
Field Summary
-
Fields inherited from class org.terrier.structures.postings.ArrayOfBasicIterablePosting
doclens, frequencies
-
Fields inherited from class org.terrier.structures.postings.ArrayOfIdsIterablePosting
id, ids, indice
-
Fields inherited from interface org.terrier.structures.postings.IterablePosting
END_OF_LIST, EOL
-
-
Constructor Summary
Constructors Constructor Description ArrayOfBlockIterablePosting(int[] _ids, int[] _freqs, int[] posCount, int[] allpos)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]
getPositions()
Return the positions of occurrences of the term in the current document.int
next()
Move this iterator to the next posting.-
Methods inherited from class org.terrier.structures.postings.ArrayOfBasicIterablePosting
getDocumentLength, getFrequency
-
Methods inherited from class org.terrier.structures.postings.ArrayOfIdsIterablePosting
asWritablePosting, clone, close, endOfPostings, getId, reset
-
Methods inherited from class org.terrier.structures.postings.IterablePostingImpl
next
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.terrier.structures.postings.Posting
asWritablePosting, getDocumentLength, getFrequency, getId, setId
-
-
-
-
Method Detail
-
getPositions
public int[] getPositions()
Description copied from interface:BlockPosting
Return the positions of occurrences of the term in the current document.- Specified by:
getPositions
in interfaceBlockPosting
- Returns:
- the positions of occurrences of the term in the current document.
-
next
public int next() throws java.io.IOException
Description copied from class:ArrayOfIdsIterablePosting
Move this iterator to the next posting.- Specified by:
next
in interfaceIterablePosting
- Overrides:
next
in classArrayOfIdsIterablePosting
- Returns:
- id of next posting, or EOL if end of posting list.
- Throws:
java.io.IOException
-
-