public class Environment extends Object
In future versions, we might restrict the merging or enrichment of deployment properties to not allow overwriting of a deployment by a session.
Modifier and Type | Field and Description |
---|---|
static String |
DEPLOYMENT_ENTRY |
static String |
EXECUTION_ENTRY |
Constructor and Description |
---|
Environment() |
Modifier and Type | Method and Description |
---|---|
static Environment |
enrich(Environment env,
Map<String,String> properties,
Map<String,ViewEntry> views)
Enriches an environment with new/modified properties or views and returns the new instance.
|
DeploymentEntry |
getDeployment() |
ExecutionEntry |
getExecution() |
Map<String,FunctionEntry> |
getFunctions() |
Map<String,TableEntry> |
getTables() |
static Environment |
merge(Environment env1,
Environment env2)
Merges two environments.
|
static Environment |
parse(String content)
Parses an environment file from an String.
|
static Environment |
parse(URL url)
Parses an environment file from an URL.
|
void |
setDeployment(Map<String,Object> config) |
void |
setExecution(Map<String,Object> config) |
void |
setFunctions(List<Map<String,Object>> functions) |
void |
setTables(List<Map<String,Object>> tables) |
String |
toString() |
public static final String EXECUTION_ENTRY
public static final String DEPLOYMENT_ENTRY
public Map<String,TableEntry> getTables()
public Map<String,FunctionEntry> getFunctions()
public ExecutionEntry getExecution()
public DeploymentEntry getDeployment()
public static Environment parse(URL url) throws IOException
IOException
public static Environment parse(String content) throws IOException
IOException
public static Environment merge(Environment env1, Environment env2)
public static Environment enrich(Environment env, Map<String,String> properties, Map<String,ViewEntry> views)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.