Enum Class IoBackendType

java.lang.Object
java.lang.Enum<IoBackendType>
org.zvec.binding.IoBackendType
All Implemented Interfaces:
Serializable, Comparable<IoBackendType>, Constable

public enum IoBackendType extends Enum<IoBackendType>
I/O backend types used for DiskAnn disk reads (zvec ≥ v0.7.0). Maps to ZVEC_IO_BACKEND_TYPE_* in c_api.h.

On Linux, zvec selects the first usable backend in this order: IO_URING, LIBAIO, then PREAD. macOS uses PREAD.

  • Enum Constant Details

    • PREAD

      public static final IoBackendType PREAD
      Synchronous pread(); no async I/O.
    • LIBAIO

      public static final IoBackendType LIBAIO
      libaio loaded at runtime via dlopen().
    • IO_URING

      public static final IoBackendType IO_URING
      io_uring via raw kernel syscalls (zero dependency).
  • Method Details

    • values

      public static IoBackendType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static IoBackendType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getCode

      public int getCode()
    • fromCode

      public static IoBackendType fromCode(int code)
    • getName

      public String getName()
      Human-readable backend name as reported by the native library.