Package org.apache.spark.util
Interface SparkSystemUtils
public interface SparkSystemUtils
-
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the underlying Java version is at least 21.booleanWhether the underlying Java version is at most 17.booleanisLinux()Whether the underlying operating system is Linux.booleanisMac()Whether the underlying operating system is Mac OS X.booleanWhether the underlying operating system is Mac OS X and processor is Apple Silicon.booleanisUnix()Whether the underlying operating system is UNIX.booleanWhether the underlying operating system is Windows.Thejava.versionsystem property.osArch()Theos.archsystem property.osName()Theos.namesystem property.Theos.versionsystem property.
-
Method Details
-
osName
String osName()Theos.namesystem property.- Returns:
- (undocumented)
-
osVersion
String osVersion()Theos.versionsystem property.- Returns:
- (undocumented)
-
osArch
String osArch()Theos.archsystem property.- Returns:
- (undocumented)
-
javaVersion
String javaVersion()Thejava.versionsystem property.- Returns:
- (undocumented)
-
isJavaVersionAtMost17
boolean isJavaVersionAtMost17()Whether the underlying Java version is at most 17.- Returns:
- (undocumented)
-
isJavaVersionAtLeast21
boolean isJavaVersionAtLeast21()Whether the underlying Java version is at least 21.- Returns:
- (undocumented)
-
isWindows
boolean isWindows()Whether the underlying operating system is Windows.- Returns:
- (undocumented)
-
isMac
boolean isMac()Whether the underlying operating system is Mac OS X.- Returns:
- (undocumented)
-
isMacOnAppleSilicon
boolean isMacOnAppleSilicon()Whether the underlying operating system is Mac OS X and processor is Apple Silicon.- Returns:
- (undocumented)
-
isLinux
boolean isLinux()Whether the underlying operating system is Linux.- Returns:
- (undocumented)
-
isUnix
boolean isUnix()Whether the underlying operating system is UNIX.- Returns:
- (undocumented)
-