Class AlignedBuffersDirectFileIOFactory

  • All Implemented Interfaces:
    Serializable, FileIOFactory

    public class AlignedBuffersDirectFileIOFactory
    extends Object
    implements FileIOFactory
    Direct native IO factory for block IO operations on aligned memory structures.
    This limited functionality is used for page store operations.
    Note: This type of IO not applicable for WAL or other files.

    This IO tries to minimize cache effects of the I/O (page caching by OS).

    In general this will degrade performance, but it is useful in special situations, such as when applications do their own caching.
    See Also:
    Serialized Form
    • Constructor Detail

      • AlignedBuffersDirectFileIOFactory

        public AlignedBuffersDirectFileIOFactory​(IgniteLogger log,
                                                 File storePath,
                                                 int pageSize,
                                                 FileIOFactory backupFactory)
        Creates direct native IO factory.
        Parameters:
        log - Logger.
        storePath - Storage path, used to check FS settings.
        pageSize - durable memory page size.
        backupFactory - fallback factory if init failed.