public interface MetadataCalculationContext extends MetadataContext
Modifier and Type | Method and Description |
---|---|
CompilationLevel |
getCompilationLevel()
Returns the compilation level with which the graph is being compiled
|
LogicalOperator |
getOperator()
Returns the operator bound to this context.
|
void |
setOutputMetadata(LogicalPort logicalPort,
PortMetadata metadata)
Sets the metadata associated with the given output port
|
void |
setOutputMetadataDynamic(AbstractModelPort<?> port,
boolean dynamic)
Indicates that the metadata for the given output port is dynamic.
|
void |
setRequiredMetadata(LogicalPort logicalPort,
PortMetadata metadata)
Sets the required metadata for the given input.
|
void |
setStagingForced(LogicalPort inputPort,
boolean forced)
Can be used to force staging (writing to disk) of input data.
|
getCombinedMetadata, getEngineConfig, getFileClient, getMaxParallelism, getPath, getRequiredMetadata, getSourceMaxParallelism, getSourceMetadata, isParallel, isSourceConnected, isSourceParallel
CompilationLevel getCompilationLevel()
LogicalOperator getOperator()
MetadataUtil
methods for convenience.void setOutputMetadata(LogicalPort logicalPort, PortMetadata metadata)
logicalPort
- the output portmetadata
- the output metadatavoid setRequiredMetadata(LogicalPort logicalPort, PortMetadata metadata)
LogicalPort
.
For example:
//set the required data ordering for the "input" record port
input.setRequiredDataOrdering
(ctx,ordering)
logicalPort
- the input portmetadata
- the required metadatavoid setStagingForced(LogicalPort inputPort, boolean forced)
inputPort
- must be an input portforced
- whether to force stagingvoid setOutputMetadataDynamic(AbstractModelPort<?> port, boolean dynamic)
outputMetadata
must not be specified. The graph is compiled and
executed up until this operator. Following execution of this operator, downstream operators
can then be compiled. Note that dynamic metadata should be used sparingly as it causes
graph compilation errors to be postponed until after a (potentially) long operation.port
- the output portdynamic
- a value of true means metadata is dynamic.Copyright © 2016 Actian Corporation. All rights reserved.