Package org.terrier.realtime.multi
Class MultiInverted
- java.lang.Object
-
- org.terrier.realtime.multi.MultiInverted
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,PostingIndex<Pointer>
public class MultiInverted extends java.lang.Object implements PostingIndex<Pointer>
An inverted file implementation for a MultIndex. It wraps around multiple inverted files from the shards in the MultiIndex.- Since:
- 4.0
- Author:
- Richard McCreadie, Stuart Mackie
-
-
Constructor Summary
Constructors Constructor Description MultiInverted(PostingIndex<Pointer>[] postings, int[] offsets, boolean blocks)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Not implemented.IterablePosting
getPostings(Pointer _multiPointer)
Returns the posting iterator given a pointer.
-
-
-
Constructor Detail
-
MultiInverted
public MultiInverted(PostingIndex<Pointer>[] postings, int[] offsets, boolean blocks)
Constructor.
-
-
Method Detail
-
getPostings
public IterablePosting getPostings(Pointer _multiPointer) throws java.io.IOException
Returns the posting iterator given a pointer.- Specified by:
getPostings
in interfacePostingIndex<Pointer>
- Returns:
- the posting iterator given a pointer.
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
Not implemented.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
-