sub.assign(workspaceJVars[3].component(JExpr.lit(i)), workspaceJVars[2].component(JExpr.lit(i))); JBlock conditionalBlock = new JBlock(false, false); JConditional jc = conditionalBlock._if(inputVariables[i].getIsSet().ne(JExpr.lit(0))); jc._then().assign(JExpr.ref(workspaceJVars[3].component(JExpr.lit(i)), "valueHolder"), inputVariables[i].getHolder()); jc._else().assign(JExpr.ref(workspaceJVars[3].component(JExpr.lit(i)), "valueHolder"), JExpr._null()); sub.add(conditionalBlock); } else { sub.assign(workspaceJVars[3].component(JExpr.lit(i)), workspaceJVars[2].component(JExpr.lit(i))); sub.assign(JExpr.ref(workspaceJVars[3].component(JExpr.lit(i)), "valueHolder"), inputVariables[i].getHolder());
for(int i=0; i<argTypes.length; i++) { sub.assign( oiArray.component(JExpr.lit(i)), oih.staticInvoke("getDrillObjectInspector") .arg(mode.staticInvoke("valueOf").arg(JExpr.lit(argTypes[i].getMode().getNumber()))) workspaceJVars[2].component(JExpr.lit(i)), JExpr._new(m.directClass(DrillDeferredObject.class.getCanonicalName())));
void pack(JBlock block, JExpression item, JExpression sourceValue) { // [RESULT] // x[i++] = <rhs>; block.assign($array.component($index.incr()),item); }
void pack(JBlock block, JExpression item, JExpression sourceValue) { // [RESULT] // x[i++] = <rhs>; block.assign($array.component($index.incr()),item); }
sub.assign(workspaceJVars[3].component(JExpr.lit(i)), workspaceJVars[2].component(JExpr.lit(i))); JBlock conditionalBlock = new JBlock(false, false); JConditional jc = conditionalBlock._if(inputVariables[i].getIsSet().ne(JExpr.lit(0))); jc._then().assign(JExpr.ref(workspaceJVars[3].component(JExpr.lit(i)), "valueHolder"), inputVariables[i].getHolder()); jc._else().assign(JExpr.ref(workspaceJVars[3].component(JExpr.lit(i)), "valueHolder"), JExpr._null()); sub.add(conditionalBlock);
int[] fieldIndices = fieldId.getFieldIds(); for (int i = 0; i < fieldIndices.length; i++) { b.assign(fieldArr.component(JExpr.lit(i)), JExpr.lit(fieldIndices[i]));
next = copyLoop.body().decl( JMod.FINAL, object, "next", source.component( it ) ); ifInstanceOf._then().assign( copy.component( it ), copyExpr ); ifInstanceOf._then().assign( copy.component( it ), copyExpr ); ifInstanceOf._then().assign( copy.component( it ), copyExpr ); ifInstanceOf._then().assign( copy.component( it ), copyExpr );
.arg(JExpr.cast(g.getModel().INT, buildIndex.band(JExpr.lit((int) Character.MAX_VALUE)))) .arg(outIndex) .arg(inVV.component(JExpr.cast(g.getModel().INT, buildIndex.shrz(JExpr.lit(16))))));
.arg(outIndex) .arg( inVV.component(inIndex.shrz(JExpr.lit(16)))
.arg(outIndex) .arg( inVV.component(inIndex.shrz(JExpr.lit(16)))
.arg(recordIndexWithinBatch) .arg(outIndex) .arg(inVV.component(batchIndex))); nLJClassGenerator.rotateBlock(); fieldId++;
new TypedFieldId(fieldType, false, outputFieldId)); nLJClassGenerator.getEvalBlock().add( outVV.invoke("copyFromSafe").arg(recordIndexWithinBatch).arg(outIndex).arg(inVV.component(batchIndex)));
_for.test( JOp.lt($i,$len) ); _for.update( $i.incr() ); _for.body().assign(acc.ref(true).component($i), castToImplType(acc.box($value.component($i))));
_for.test( JOp.lt($i,$len) ); _for.update( $i.incr() ); _for.body().assign(acc.ref(true).component($i), castToImplType(acc.box($value.component($i))));
_for.test( JOp.lt($i,$len) ); _for.update( $i.incr() ); _for.body().assign(acc.ref(true).component($i), castToImplType(acc.box($value.component($i))));
_for.test( JOp.lt($i,$len) ); _for.update( $i.incr() ); _for.body().assign(acc.ref(true).component($i), castToImplType(acc.box($value.component($i))));
_for.test( JOp.lt($i,$len) ); _for.update( $i.incr() ); _for.body().assign(acc.ref(true).component($i), castToImplType(acc.box($value.component($i))));