Examples of toBlock()


Examples of com.bergerkiller.bukkit.common.bases.IntVector3.toBlock()

      World world = owner.getWorld();
      for (Entry<IntVector3, MinecartMember<?>> entry : blockSpace.entrySet()) {
        IntVector3 pos = entry.getKey();
        for (RailType type : RailType.values()) {
          if (type.isRail(world, pos.x, pos.y, pos.z)) {
            Block block = pos.toBlock(world);
            List<Block> signs = entry.getValue().getBlockTracker().liveActiveSigns;
            Util.addSignsFromRails(signs, block, type.getSignColumnDirection(block));
          }
        }
      }
View Full Code Here

Examples of net.hydromatic.linq4j.expressions.BlockBuilder.toBlock()

            Expressions.call(
                SparkMethod.AS_ENUMERABLE.method,
                rdd));
    list.add(
        Expressions.return_(null, enumerable));
    return implementor.result(physType, list.toBlock());
  }

  /** Implementation of
   * {@link net.hydromatic.optiq.impl.spark.SparkRel.Implementor}. */
  private static class SparkImplementorImpl extends SparkRel.Implementor {
View Full Code Here

Examples of net.hydromatic.linq4j.expressions.BlockBuilder.toBlock()

            Expressions.call(
                SparkMethod.AS_ENUMERABLE.method,
                rdd));
    list.add(
        Expressions.return_(null, enumerable));
    return implementor.result(physType, list.toBlock());
  }

  /** Implementation of
   * {@link net.hydromatic.optiq.impl.spark.SparkRel.Implementor}. */
  private static class SparkImplementorImpl extends SparkRel.Implementor {
View Full Code Here

Examples of net.hydromatic.linq4j.expressions.BlockBuilder.toBlock()

    // create a filter to remove records that don't meet the expression
    Expression nullToFalse = Expressions.call( Functions.class, "falseIfNull", condition );
    Expression not = Expressions.not( nullToFalse ); // matches #isRemove semantics in Filter

    statements.add( Expressions.return_( null, not ) );
    BlockStatement block = statements.toBlock();
    String expression = Expressions.toString( block );

    LOG.debug( "filter parameters: {}", incomingFields );
    LOG.debug( "filter expression: {}", expression );
View Full Code Here

Examples of net.hydromatic.linq4j.expressions.BlockBuilder.toBlock()

    record = Expressions.new_( getConstructor(), record );

    statements.add( Expressions.return_( null, record ) );

    BlockStatement block = statements.toBlock();
    String expression = Expressions.toString( block );

    Fields outgoingFields = createTypedFields( cluster, program.getOutputRowType(), false );

    LOG.debug( "function parameters: {}", program.getInputRowType() );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.