Class Session

java.lang.Object
dev.vortex.api.Session

public final class Session extends Object
Handle to a native Vortex session. The session owns a current-thread async runtime and is the entry point for opening data sources and writers.

Sessions are safe to share across threads within a process, though concrete operations (scans, writes) remain single-threaded on the session's runtime thread.

Native resources are released automatically when the session becomes unreachable, via VortexCleaner.

  • Method Details

    • create

      public static Session create()
      Create a new session.
    • enableEdition

      public void enableEdition(String edition)
      Enable the edition with the name edition, for example core2025.10.0. The edition replaces the enabled edition of the same family. Only writers that start after this call use it.

      Select an older edition to write files that older Vortex readers can read.

    • nativePointer

      public long nativePointer()
      Internal: returns the native pointer. Do not free directly.