public final class RequestedGlobalProperties extends Object implements Cloneable
Currently, the properties are the following: A partitioning type (ANY, HASH, RANGE), and EITHER an ordering (for range partitioning) or an FieldSet with the hash partitioning columns.
| Constructor and Description |
|---|
RequestedGlobalProperties()
Initializes the global properties with no partitioning.
|
| Modifier and Type | Method and Description |
|---|---|
RequestedGlobalProperties |
clone() |
boolean |
equals(Object obj) |
RequestedGlobalProperties |
filterByNodesConstantSet(OptimizerNode node,
int input)
Filters these properties by what can be preserved by the given node when propagated down
to the given input.
|
DataDistribution |
getDataDistribution()
Gets the data distribution.
|
Ordering |
getOrdering()
Gets the key order.
|
FieldSet |
getPartitionedFields()
Gets the fields on which the data is partitioned.
|
PartitioningProperty |
getPartitioning()
Gets the partitioning property.
|
int |
hashCode() |
boolean |
isMetBy(GlobalProperties props)
Checks, if this set of interesting properties, is met by the given
produced properties.
|
boolean |
isTrivial()
Checks, if the properties in this object are trivial, i.e.
|
void |
parameterizeChannel(Channel channel,
boolean globalDopChange)
Parameterizes the ship strategy fields of a channel such that the channel produces the desired global properties.
|
void |
reset()
This method resets the properties to a state where no properties are given.
|
void |
setAnyPartitioning(FieldSet partitionedFields) |
void |
setForceRebalancing() |
void |
setFullyReplicated() |
void |
setHashPartitioned(FieldSet partitionedFields)
Sets the partitioning property for the global properties.
|
void |
setRandomDistribution() |
void |
setRangePartitioned(Ordering ordering) |
void |
setRangePartitioned(Ordering ordering,
DataDistribution dataDistribution) |
String |
toString() |
public RequestedGlobalProperties()
public void setHashPartitioned(FieldSet partitionedFields)
partitionedFields - public void setRangePartitioned(Ordering ordering)
public void setRangePartitioned(Ordering ordering, DataDistribution dataDistribution)
public void setAnyPartitioning(FieldSet partitionedFields)
public void setRandomDistribution()
public void setFullyReplicated()
public void setForceRebalancing()
public PartitioningProperty getPartitioning()
public FieldSet getPartitionedFields()
public Ordering getOrdering()
public DataDistribution getDataDistribution()
public boolean isTrivial()
public void reset()
public RequestedGlobalProperties filterByNodesConstantSet(OptimizerNode node, int input)
node - The node representing the contract.input - The index of the input.public boolean isMetBy(GlobalProperties props)
props - The properties for which to check whether they meet these properties.public void parameterizeChannel(Channel channel, boolean globalDopChange)
channel - The channel to parameterize.globalDopChange - public RequestedGlobalProperties clone()
Copyright © 2014 The Apache Software Foundation. All rights reserved.