Interface IndexReader<U>

Type Parameters:
U - Type of the elements of the index.
All Known Implementing Classes:
FastIndexReader

public interface IndexReader<U>
Interface for creating classes that read indexes.
  • Method Summary

    Modifier and Type Method Description
    Index<U> read​(java.io.InputStream stream)
    Reads an index from an input stream.
    Index<U> read​(java.lang.String file)
    Reads an index from a file.
  • Method Details

    • read

      Index<U> read​(java.lang.String file)
      Reads an index from a file.
      Parameters:
      file - the file.
      Returns:
      the index if everything is OK, null otherwise.
    • read

      Index<U> read​(java.io.InputStream stream)
      Reads an index from an input stream.
      Parameters:
      stream - the stream.
      Returns:
      the index if everything is OK, null otherwise.