public class PactConnection extends Object implements EstimateProvider, DumpableConnection<OptimizerNode>
The connections are also used by the optimization algorithm to propagate interesting properties from the sinks in the direction of the sources.
| Constructor and Description |
|---|
PactConnection(OptimizerNode source)
Creates a new Connection between two nodes.
|
PactConnection(OptimizerNode source,
OptimizerNode target)
Creates a new Connection between two nodes.
|
PactConnection(OptimizerNode source,
OptimizerNode target,
ShipStrategyType shipStrategy)
Creates a new Connection between two nodes.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearInterestingProperties() |
int |
getCostWeight() |
float |
getEstimatedAvgWidthPerOutputRecord()
Gets the estimated number of bytes per record.
|
long |
getEstimatedNumRecords()
Gets the estimated number of records in the output of this node.
|
long |
getEstimatedOutputSize()
Gets the estimated output size from this node.
|
InterestingProperties |
getInterestingProperties()
Gets the interesting properties object for this pact connection.
|
TempMode |
getMaterializationMode() |
int |
getMaxDepth() |
ShipStrategyType |
getShipStrategy()
Gets the shipping strategy for this connection.
|
OptimizerNode |
getSource()
Gets the source of the connection.
|
OptimizerNode |
getTarget()
Gets the target of the connection.
|
void |
initMaxDepth() |
boolean |
isOnDynamicPath() |
void |
setInterestingProperties(InterestingProperties props)
Sets the interesting properties for this pact connection.
|
void |
setMaterializationMode(TempMode materializationMode) |
void |
setShipStrategy(ShipStrategyType strategy)
Sets the shipping strategy for this connection.
|
String |
toString() |
public PactConnection(OptimizerNode source, OptimizerNode target)
source - The source node.target - The target node.public PactConnection(OptimizerNode source, OptimizerNode target, ShipStrategyType shipStrategy)
source - The source node.target - The target node.shipStrategy - The shipping strategy.public PactConnection(OptimizerNode source)
source - The source node.public OptimizerNode getSource()
getSource in interface DumpableConnection<OptimizerNode>public OptimizerNode getTarget()
public ShipStrategyType getShipStrategy()
getShipStrategy in interface DumpableConnection<OptimizerNode>public void setShipStrategy(ShipStrategyType strategy)
strategy - The shipping strategy to be applied to this connection.public InterestingProperties getInterestingProperties()
public void setInterestingProperties(InterestingProperties props)
props - The interesting properties.public void clearInterestingProperties()
public void initMaxDepth()
public int getMaxDepth()
public long getEstimatedOutputSize()
EstimateProvidergetEstimatedOutputSize in interface EstimateProviderpublic long getEstimatedNumRecords()
EstimateProvidergetEstimatedNumRecords in interface EstimateProviderpublic float getEstimatedAvgWidthPerOutputRecord()
EstimateProvidergetEstimatedAvgWidthPerOutputRecord in interface EstimateProviderpublic TempMode getMaterializationMode()
public void setMaterializationMode(TempMode materializationMode)
public boolean isOnDynamicPath()
public int getCostWeight()
Copyright © 2014 The Apache Software Foundation. All rights reserved.