Package org.apache.lucene.util
Class Constants
java.lang.Object
org.apache.lucene.util.Constants
Some useful constants.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ReadAdvice
The defaultReadAdvice
used for opening index files.static final boolean
True iff running on FreeBSDstatic final boolean
true iff we know FMA has faster throughput than separate mul/add.static final boolean
true iff we know VFMA has faster throughput than separate vmul/vadd.static final boolean
True iff the Java runtime is a client runtime and C2 compiler is not enabled.static final boolean
True iff the Java VM is based on Hotspot and has the Hotspot MX bean readable by Lucene.static final boolean
True if jvmci is enabled (e.g.static final String
The value ofSystem.getProperty("java.vendor")
.static final boolean
True iff running on a 64bit JVMstatic final String
JVM vendor name.static final String
JVM vendor info.static final boolean
True iff running on Linux.static final boolean
True iff running on Mac OS Xstatic final String
The value ofSystem.getProperty("os.arch")
.static final String
The value ofSystem.getProperty("os.name")
.static final String
The value ofSystem.getProperty("os.version")
.static final boolean
True iff running on SunOS.static final boolean
True iff running on Windows. -
Method Summary
-
Field Details
-
JVM_VENDOR
JVM vendor info. -
JVM_NAME
JVM vendor name. -
OS_NAME
The value ofSystem.getProperty("os.name")
. * -
LINUX
public static final boolean LINUXTrue iff running on Linux. -
WINDOWS
public static final boolean WINDOWSTrue iff running on Windows. -
SUN_OS
public static final boolean SUN_OSTrue iff running on SunOS. -
MAC_OS_X
public static final boolean MAC_OS_XTrue iff running on Mac OS X -
FREE_BSD
public static final boolean FREE_BSDTrue iff running on FreeBSD -
OS_ARCH
The value ofSystem.getProperty("os.arch")
. -
OS_VERSION
The value ofSystem.getProperty("os.version")
. -
JAVA_VENDOR
The value ofSystem.getProperty("java.vendor")
. -
IS_CLIENT_VM
public static final boolean IS_CLIENT_VMTrue iff the Java runtime is a client runtime and C2 compiler is not enabled. -
IS_HOTSPOT_VM
public static final boolean IS_HOTSPOT_VMTrue iff the Java VM is based on Hotspot and has the Hotspot MX bean readable by Lucene. -
IS_JVMCI_VM
public static final boolean IS_JVMCI_VMTrue if jvmci is enabled (e.g. graalvm) -
JRE_IS_64BIT
public static final boolean JRE_IS_64BITTrue iff running on a 64bit JVM -
HAS_FAST_VECTOR_FMA
public static final boolean HAS_FAST_VECTOR_FMAtrue iff we know VFMA has faster throughput than separate vmul/vadd. -
HAS_FAST_SCALAR_FMA
public static final boolean HAS_FAST_SCALAR_FMAtrue iff we know FMA has faster throughput than separate mul/add. -
DEFAULT_READADVICE
The defaultReadAdvice
used for opening index files. It will beReadAdvice.RANDOM
by default, unless set by system propertyorg.apache.lucene.store.defaultReadAdvice
.
-