colRefLineItem, colRefOrders);
final ColumnReference colRefLineItemExtPrice = new ColumnReference(_doubleConv, 3);
final ColumnReference colRefOrdersTotalPrice = new ColumnReference(_doubleConv, 1);
final ValueSpecification val10 = new ValueSpecification(_doubleConv, 10.0);
final Multiplication mult = new Multiplication(val10, colRefLineItemExtPrice);
final ComparisonPredicate predL_O2 = new ComparisonPredicate(ComparisonPredicate.LESS_OP,
mult, colRefOrdersTotalPrice);
final AndPredicate predL_O = new AndPredicate(predL_O1, predL_O2);
Component LINEITEMS_ORDERSjoin = ThetaJoinComponentFactory
.createThetaJoinOperator(Theta_JoinType, relationLineitem, relationOrders,
_queryPlan).setJoinPredicate(predL_O)
.addOperator(new ProjectOperator(new int[] { 1, 2, 3, 4 }));
// -------------------------------------------------------------------------------------
final SelectOperator selectionPartSupp = new SelectOperator(new ComparisonPredicate(
ComparisonPredicate.GREATER_OP, new ColumnReference(_intConv, 2),
new ValueSpecification(_intConv, 9990)));
final ColumnReference colRefSupplier = new ColumnReference(_intConv, 0);
final ColumnReference colRefPartSupp = new ColumnReference(_intConv, 1);
final ComparisonPredicate predS_P = new ComparisonPredicate(ComparisonPredicate.EQUAL_OP,
colRefSupplier, colRefPartSupp);
Component SUPPLIER_PARTSUPPjoin = ThetaJoinComponentFactory
.createThetaJoinOperator(Theta_JoinType, relationSupplier, relationPartsupp,
_queryPlan).setJoinPredicate(predS_P)
.addOperator(new ProjectOperator(new int[] { 0, 1, 3 }))
.addOperator(selectionPartSupp);
// -------------------------------------------------------------------------------------
// set up aggregation function on the StormComponent(Bolt) where join is
// performed
// 1 - discount
final ValueExpression<Double> substract = new Subtraction(new ValueSpecification(
_doubleConv, 1.0), new ColumnReference(_doubleConv, 3));
// extendedPrice*(1-discount)
final ValueExpression<Double> product = new Multiplication(new ColumnReference(_doubleConv,
2), substract);
final AggregateOperator agg = new AggregateSumOperator(product, conf);
final ColumnReference colRefL_OPartKey = new ColumnReference(_intConv, 0);
final ColumnReference colRefS_PPartKey = new ColumnReference(_intConv, 1);