- All Known Implementing Classes:
public interface IOFactoryA 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_FACTORYprovides methods that are equivalent to standard Java file handling, whereas
HadoopFileSystemIOFactorymakes 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
java.io's methods instead of factory methods. Please report issues and inconsistent behaviour.
- Sebastiano Vigna
Modifier and Type Method Description
static final IOFactory FILESYSTEM_FACTORY
WritableByteChannel getWritableByteChannel(String name) throws IOException
ReadableByteChannel getReadableByteChannel(String name) throws IOException