Class Environment

java.lang.Object
org.gridgain.internal.columnar.Environment

public final class Environment extends Object
Class describing underlying system environment: operating system and it's architecture. It's used to resolve native libraries correctly.
  • Constructor Details

    • Environment

      public Environment(String os, String arch)
    • Environment

      public Environment(String os, String arch, boolean isMuslEnvironment)
      Constructs an instance of the Environment class with specified operating system and architecture.
      Parameters:
      os - The name of the operating system.
      arch - The name of the architecture.
      isMuslEnvironment - Indicates whether the environment uses musl libc.
  • Method Details

    • os

      public String os()
    • arch

      public String arch()
    • isAarch64

      public boolean isAarch64()
    • isS390x

      public boolean isS390x()
    • isWindows

      public boolean isWindows()
    • isMac

      public boolean isMac()
    • isAix

      public boolean isAix()
    • isUnix

      public boolean isUnix()
    • isSolaris

      public boolean isSolaris()
    • getJniLibraryFileName

      public String getJniLibraryFileName(String name)
      Returns a jni library full file name with correct os and arch selectors for described environment.
      Parameters:
      name - base library name.
      Returns:
      jni file library name that can be used with System.load.
    • getFallbackJniLibraryFileName

      @Nullable public @Nullable String getFallbackJniLibraryFileName(String name)
      Returns a fallback jni library full file name with correct os and arch selectors for described environment.
      Parameters:
      name - base library name.
      Returns:
      jni file library name that can be used with System.load.
    • toString

      public String toString()
      Overrides:
      toString in class Object