Package es.uam.eps.ir.relison.io.index
Class FastIndexReader<U>
java.lang.Object
es.uam.eps.ir.relison.io.index.FastIndexReader<U>
- Type Parameters:
U
- Type of the elements to read in the index.
- All Implemented Interfaces:
IndexReader<U>
public class FastIndexReader<U> extends java.lang.Object implements IndexReader<U>
Reads an index from a file.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description FastIndexReader(org.ranksys.formats.parsing.Parser<U> parser)
Constructor. -
Method Summary
-
Field Details
-
parser
A parser.
-
-
Constructor Details
-
FastIndexReader
Constructor.- Parameters:
parser
- a parser, for reading the elements in the index.
-
-
Method Details
-
read
Description copied from interface:IndexReader
Reads an index from a file.- Specified by:
read
in interfaceIndexReader<U>
- Parameters:
file
- the file.- Returns:
- the index if everything is OK, null otherwise.
-
read
Description copied from interface:IndexReader
Reads an index from an input stream.- Specified by:
read
in interfaceIndexReader<U>
- Parameters:
stream
- the stream.- Returns:
- the index if everything is OK, null otherwise.
-