Interface IOFactory

  • All Known Implementing Classes:

    public interface IOFactory
    A factory for streams.

    Instances of this factory are used to make (at least partially) index construction and access independent of the file system implementation. For instance, FILESYSTEM_FACTORY provides methods that are equivalent to standard Java file handling, whereas HadoopFileSystemIOFactory makes it possible to use a Hadoop file system like HDFS to build indices.

    Warning: I/O factories were introduced in 5.1, and they are still somewhat experimental. Some parts of the code of MG4J might still open directly files using's methods instead of factory methods. Please report issues and inconsistent behaviour.

    Sebastiano Vigna