Class AlterEnvironmentRequest
org.apache.avro.generic.GenericContainer, org.apache.avro.generic.IndexedRecordGPUdb.alterEnvironment.
Alters an existing environment which can be referenced by a user-defined function (UDF).
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA set of string constants for theAlterEnvironmentRequestparameteraction.static final classA set of string constants for theAlterEnvironmentRequestparameteroptions.Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionbooleanget(int index) This method supports the Avro framework and is not intended to be called directly by the user.Modification operation to be applied.static org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.Name of the environment to be altered.Optional parameters.org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.getValue()The value of the modification, depending onaction.inthashCode()voidThis method supports the Avro framework and is not intended to be called directly by the user.Modification operation to be applied.setEnvironmentName(String environmentName) Name of the environment to be altered.setOptions(Map<String, String> options) Optional parameters.The value of the modification, depending onaction.toString()
Constructor Details
AlterEnvironmentRequest
public AlterEnvironmentRequest()Constructs an AlterEnvironmentRequest object with default parameters.AlterEnvironmentRequest
public AlterEnvironmentRequest(String environmentName, String action, String value, Map<String, String> options) Constructs an AlterEnvironmentRequest object with the specified parameters.Parameters:environmentName- Name of the environment to be altered.action- Modification operation to be applied. Supported values:INSTALL_PACKAGE: Install a python package from PyPI, an external data source or KiFS.INSTALL_REQUIREMENTS: Install packages from a requirements file.UNINSTALL_PACKAGE: Uninstall a python package.UNINSTALL_REQUIREMENTS: Uninstall packages from a requirements file.RESET: Uninstalls all packages in the environment and resets it to the original state at time of creation.REBUILD: Recreates the environment and re-installs all packages, upgrades the packages if necessary based on dependencies.
value- The value of the modification, depending onaction. For example, ifactionisINSTALL_PACKAGE, this would be the python package name. IfactionisINSTALL_REQUIREMENTS, this would be the path of a requirements file from which to install packages. If an external data source is specified inDATASOURCE_NAME, this can be the path to a wheel file or source archive. Alternatively, if installing from a file (wheel or source archive), the value may be a reference to a file in KiFS.options- Optional parameters.DATASOURCE_NAME: Name of an existing external data source from which packages specified invaluecan be loaded.
Map.
Method Details
getClassSchema
public static org.apache.avro.Schema getClassSchema()This method supports the Avro framework and is not intended to be called directly by the user.Returns:The schema for the class.setEnvironmentName
Name of the environment to be altered.Parameters:environmentName- The new value forenvironmentName.Returns:thisto mimic the builder pattern.getAction
Modification operation to be applied. Supported values:INSTALL_PACKAGE: Install a python package from PyPI, an external data source or KiFS.INSTALL_REQUIREMENTS: Install packages from a requirements file.UNINSTALL_PACKAGE: Uninstall a python package.UNINSTALL_REQUIREMENTS: Uninstall packages from a requirements file.RESET: Uninstalls all packages in the environment and resets it to the original state at time of creation.REBUILD: Recreates the environment and re-installs all packages, upgrades the packages if necessary based on dependencies.
Returns:The current value ofaction.setAction
Modification operation to be applied. Supported values:INSTALL_PACKAGE: Install a python package from PyPI, an external data source or KiFS.INSTALL_REQUIREMENTS: Install packages from a requirements file.UNINSTALL_PACKAGE: Uninstall a python package.UNINSTALL_REQUIREMENTS: Uninstall packages from a requirements file.RESET: Uninstalls all packages in the environment and resets it to the original state at time of creation.REBUILD: Recreates the environment and re-installs all packages, upgrades the packages if necessary based on dependencies.
Parameters:action- The new value foraction.Returns:thisto mimic the builder pattern.getValue
The value of the modification, depending onaction. For example, ifactionisINSTALL_PACKAGE, this would be the python package name.If
actionisINSTALL_REQUIREMENTS, this would be the path of a requirements file from which to install packages.If an external data source is specified in
DATASOURCE_NAME, this can be the path to a wheel file or source archive. Alternatively, if installing from a file (wheel or source archive), the value may be a reference to a file in KiFS.Returns:The current value ofvalue.setValue
The value of the modification, depending onaction. For example, ifactionisINSTALL_PACKAGE, this would be the python package name.If
actionisINSTALL_REQUIREMENTS, this would be the path of a requirements file from which to install packages.If an external data source is specified in
DATASOURCE_NAME, this can be the path to a wheel file or source archive. Alternatively, if installing from a file (wheel or source archive), the value may be a reference to a file in KiFS.Parameters:value- The new value forvalue.Returns:thisto mimic the builder pattern.setOptions
Optional parameters.DATASOURCE_NAME: Name of an existing external data source from which packages specified invaluecan be loaded.
Map.Parameters:options- The new value foroptions.Returns:thisto mimic the builder pattern.getSchema
public org.apache.avro.Schema getSchema()This method supports the Avro framework and is not intended to be called directly by the user.Specified by:getSchemain interfaceorg.apache.avro.generic.GenericContainerReturns:The schema object describing this class.get
This method supports the Avro framework and is not intended to be called directly by the user.Specified by:getin interfaceorg.apache.avro.generic.IndexedRecordParameters:index- the position of the field to getReturns:value of the field with the given index.Throws:put
This method supports the Avro framework and is not intended to be called directly by the user.Specified by:putin interfaceorg.apache.avro.generic.IndexedRecordParameters:index- the position of the field to setvalue- the value to setThrows: