Package com.c12e.cortex.profiles.version
Class EnvironmentCortexVersions
- java.lang.Object
-
- com.c12e.cortex.profiles.version.EnvironmentCortexVersions
-
- All Implemented Interfaces:
CortexVersionStore
public class EnvironmentCortexVersions extends java.lang.Object implements CortexVersionStore
Versions retrieved from the current processing environment
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
cortexVersion
protected java.lang.String
deltaVersion
protected java.lang.String
hadoopVersion
protected java.lang.String
sparkVersion
-
Constructor Summary
Constructors Constructor Description EnvironmentCortexVersions(org.apache.spark.sql.SparkSession sparkSession)
Retrieves Spark versions from the environment
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCortexVersion()
Cortex versionjava.lang.String
getDeltaVersion()
Delta versionjava.lang.String
getHadoopVersion()
Hadoop versionjava.lang.String
getSparkVersion()
Spark versionjava.lang.Boolean
isSupported(CortexVersionStore store)
Boolean check of version support.
-
-
-
Method Detail
-
getCortexVersion
public java.lang.String getCortexVersion()
Description copied from interface:CortexVersionStore
Cortex version- Specified by:
getCortexVersion
in interfaceCortexVersionStore
- Returns:
-
getSparkVersion
public java.lang.String getSparkVersion()
Description copied from interface:CortexVersionStore
Spark version- Specified by:
getSparkVersion
in interfaceCortexVersionStore
- Returns:
-
getHadoopVersion
public java.lang.String getHadoopVersion()
Description copied from interface:CortexVersionStore
Hadoop version- Specified by:
getHadoopVersion
in interfaceCortexVersionStore
- Returns:
-
getDeltaVersion
public java.lang.String getDeltaVersion()
Description copied from interface:CortexVersionStore
Delta version- Specified by:
getDeltaVersion
in interfaceCortexVersionStore
- Returns:
-
isSupported
public java.lang.Boolean isSupported(CortexVersionStore store)
Description copied from interface:CortexVersionStore
Boolean check of version support. Read as this isSupported by that- Specified by:
isSupported
in interfaceCortexVersionStore
- Parameters:
store
- compared version store- Returns:
- is this supported
-
-