Class SparkEnvironment
- java.lang.Object
-
- it.bancaditalia.oss.vtl.impl.environment.spark.SparkEnvironment
-
- All Implemented Interfaces:
Environment
public class SparkEnvironment extends Object implements Environment
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SparkEnvironment.VTLKryoRegistrator
-
Field Summary
Fields Modifier and Type Field Description static VTLProperty
VTL_SPARK_MASTER_CONNECTION
static VTLProperty
VTL_SPARK_PAGE_SIZE
static VTLProperty
VTL_SPARK_UI_ENABLED
static VTLProperty
VTL_SPARK_UI_PORT
-
Constructor Summary
Constructors Constructor Description SparkEnvironment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(String name)
Checks if this environment provides a VTL object with the specified name.Optional<VTLValue>
getValue(String name)
Returns anOptional
reference to a VTL object with the specified name in this environment.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface it.bancaditalia.oss.vtl.environment.Environment
getValueMetadata, init
-
-
-
-
Field Detail
-
VTL_SPARK_MASTER_CONNECTION
public static final VTLProperty VTL_SPARK_MASTER_CONNECTION
-
VTL_SPARK_UI_ENABLED
public static final VTLProperty VTL_SPARK_UI_ENABLED
-
VTL_SPARK_UI_PORT
public static final VTLProperty VTL_SPARK_UI_PORT
-
VTL_SPARK_PAGE_SIZE
public static final VTLProperty VTL_SPARK_PAGE_SIZE
-
-
Method Detail
-
contains
public boolean contains(String name)
Description copied from interface:Environment
Checks if this environment provides a VTL object with the specified name.- Specified by:
contains
in interfaceEnvironment
- Parameters:
name
- The name of requested object.- Returns:
- true if this environment provides the specified object.
-
getValue
public Optional<VTLValue> getValue(String name)
Description copied from interface:Environment
Returns anOptional
reference to a VTL object with the specified name in this environment.- Specified by:
getValue
in interfaceEnvironment
- Parameters:
name
- The name of requested object.- Returns:
- An Optional with a reference to the requested object o
Optional.empty()
if the object is not found in this environment.
-
-