Package net.hydromatic.optiq.rules.java

Examples of net.hydromatic.optiq.rules.java.PhysType


            Expressions.call(Arrays.class, "asList", //
                Expressions.newArrayInit(String.class, Functions.apply(fieldNameList, TO_LITERAL)) //
                ),
            Expressions.constant(Object.class), //
            Expressions.variable(DataContext.class, "root"))).toBlock();
    final PhysType physType = PhysTypeImpl.of(implementor.getTypeFactory(), getRowType(),
        pref.prefer(JavaRowFormat.ARRAY));
    return new Result(expr, physType, JavaRowFormat.ARRAY);
  }
View Full Code Here


    VolcanoPlanner planner = (VolcanoPlanner) getCluster().getPlanner();

    if( pref == Prefer.CUSTOM )
      throw new RuntimeException( "cannot return custom format" );

    final PhysType physType = PhysTypeImpl.of( implementor.getTypeFactory(), table.getRowType(), JavaRowFormat.ARRAY );

    TableHolder tableHolder = new TableHolder( physType, tableDef, getPlatformBroker(), planner );
    long ordinal = CascadingTapEnumerable.addHolder( tableHolder );
    Constructor<CascadingTapEnumerable> constructor = CascadingEnumerableRel.getConstructorFor( CascadingTapEnumerable.class );
View Full Code Here

    CascadingRelNode input = (CascadingRelNode) getChild();
    Branch branch = input.visitChild( new Stack() );

    VolcanoPlanner planner = (VolcanoPlanner) getCluster().getPlanner();

    PhysType physType = PhysTypeImpl.of( implementor.getTypeFactory(), input.getRowType(), JavaRowFormat.ARRAY );

    BlockStatement block;

    if( branch.tuples != null )
      block = handleInsert( branch, planner );
View Full Code Here

TOP

Related Classes of net.hydromatic.optiq.rules.java.PhysType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.