Example - Aster Execution Engine

Teradata Aster® Developer Guide

Product
Aster Execution Engine
Release Number
7.00.02
Published
July 2017
Language
English (United States)
Last Update
2018-04-13
dita:mapPath
xnl1494366523182.ditamap
dita:ditavalPath
Generic_no_ie_no_tempfilter.ditaval
dita:id
ffu1489104705746
lifecycle
previous
Product Category
Software
...
Distribution inDistribution = null;
ListColumnDefinition inDistrCols = null;
DistributionType inDistrType = null;

// read in distribution
if (planInputInfo.hasDistribution())
{
  inDistribution = planInputInfo.getDistribution();
  inDistrCols = inDistribution.getDistributionColumns();
  inDistrType = inDistribution.getDistributionType();
}
...
// Input distribution passes through as output distribution,
// specified in the completedPlanningContract method.
Distribution outDistribution = null;
...
{
  outDistribution = inDistribution;
}
else if (planInputInfo.hasDistribution())
{
...
}
...
  outDistrType = inDistrType;
}
  outDistribution = new Distribution.Builder()
    .setDistributionColumns(outDistrCols)
    .setDistributionType(outDistrType)
    .toDistribution();
}
...
planOutputInfo = new PlanOutputInfo.Builder()
  .setDistribution(outDistribution)
...

For full context, see Examples.