Package org.terrier.structures
Class AbstractPostingOutputStream
- java.lang.Object
-
- org.terrier.structures.AbstractPostingOutputStream
-
- Direct Known Subclasses:
DirectInvertedOutputStream
public abstract class AbstractPostingOutputStream extends java.lang.Object
Abstract class that is extended by other posting output stream implementations- Since:
- 4.0
- Author:
- Craig Macdonald
-
-
Constructor Summary
Constructors Constructor Description AbstractPostingOutputStream()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract void
close()
abstract int
getLastDocidWritten()
abstract BitFilePosition
getOffset()
abstract java.lang.Class<? extends IterablePosting>
getPostingIteratorClass()
abstract BitIndexPointer
writePostings(int[][] postings, int startOffset, int Length, int firstId)
abstract BitIndexPointer
writePostings(java.util.Iterator<Posting> iterator)
abstract BitIndexPointer
writePostings(java.util.Iterator<Posting> iterator, int previousId)
abstract BitIndexPointer
writePostings(IterablePosting postings)
abstract BitIndexPointer
writePostings(IterablePosting postings, int previousId)
-
-
-
Method Detail
-
getOffset
public abstract BitFilePosition getOffset()
-
getLastDocidWritten
public abstract int getLastDocidWritten()
-
close
public abstract void close()
-
writePostings
public abstract BitIndexPointer writePostings(int[][] postings, int startOffset, int Length, int firstId) throws java.io.IOException
- Throws:
java.io.IOException
-
writePostings
public abstract BitIndexPointer writePostings(IterablePosting postings) throws java.io.IOException
- Throws:
java.io.IOException
-
writePostings
public abstract BitIndexPointer writePostings(IterablePosting postings, int previousId) throws java.io.IOException
- Throws:
java.io.IOException
-
writePostings
public abstract BitIndexPointer writePostings(java.util.Iterator<Posting> iterator, int previousId) throws java.io.IOException
- Throws:
java.io.IOException
-
writePostings
public abstract BitIndexPointer writePostings(java.util.Iterator<Posting> iterator) throws java.io.IOException
- Throws:
java.io.IOException
-
getPostingIteratorClass
public abstract java.lang.Class<? extends IterablePosting> getPostingIteratorClass()
-
-