Examples of emit()


Examples of ca.eandb.jmist.framework.Material.emit()

   */
  public ScatteredRay sample(double ru, double rv, double rj) {
    PathInfo path = getPathInfo();
    WavelengthPacket lambda = path.getWavelengthPacket();
    Material material = surf.getMaterial();
    return material.emit(surf, lambda, ru, rv, rj);
  }

  /* (non-Javadoc)
   * @see ca.eandb.jmist.framework.path.PathNode#scatter(ca.eandb.jmist.math.Vector3)
   */
 
View Full Code Here

Examples of com.alibaba.cobar.client.support.vo.CobarMRBase.emit()

                            if (MapUtils.isEmpty(dsMap)) {
                                logger
                                        .info(
                                                "can't find routing rule for {} with parameter {}, so use default data source for it.",
                                                statementName, entity);
                                mrbase.emit(getDefaultDataSourceName(), entity);
                            } else {
                                if (dsMap.size() > 1) {
                                    throw new IllegalArgumentException(
                                            "unexpected routing result, found more than 1 target data source for current entity:"
                                                    + entity);
View Full Code Here

Examples of com.asakusafw.compiler.directio.emitter.NamingClassEmitter.emit()

                        desc.getDeletePatterns());
                slots.add(slot);
            } else {
                List<CompiledOrder> orderingInfo = OutputPattern.compileOrder(desc.getOrder(), dataType);
                String outputName = output.getDescription().getName();
                Name naming = namingEmitter.emit(outputName, slots.size() + 1, dataType, namingInfo);
                Name ordering = orderingEmitter.emit(outputName, slots.size() + 1, dataType, orderingInfo);
                Slot slot = new Slot(
                        outputName,
                        output.getSources(),
                        Models.toName(f, desc.getModelType().getName()),
View Full Code Here

Examples of com.asakusafw.compiler.directio.emitter.OrderingClassEmitter.emit()

                slots.add(slot);
            } else {
                List<CompiledOrder> orderingInfo = OutputPattern.compileOrder(desc.getOrder(), dataType);
                String outputName = output.getDescription().getName();
                Name naming = namingEmitter.emit(outputName, slots.size() + 1, dataType, namingInfo);
                Name ordering = orderingEmitter.emit(outputName, slots.size() + 1, dataType, orderingInfo);
                Slot slot = new Slot(
                        outputName,
                        output.getSources(),
                        Models.toName(f, desc.getModelType().getName()),
                        desc.getBasePath(),
View Full Code Here

Examples of com.asakusafw.compiler.directio.emitter.StageEmitter.emit()

        }
        if (slots.isEmpty()) {
            return Collections.emptyList();
        }
        StageEmitter stageEmitter = new StageEmitter(getEnvironment(), MODULE_NAME);
        CompiledStage result = stageEmitter.emit(slots, getEnvironment().getEpilogueLocation(MODULE_NAME));
        return Collections.singletonList(new ExternalIoStage(getId(), result, context.getOutputContext()));
    }

    private boolean isCacheTarget(ImporterDescription desc) {
        assert desc != null;
View Full Code Here

Examples of com.asakusafw.compiler.flow.mapreduce.parallel.ParallelSortClientEmitter.emit()

            if (getEnvironment().hasError()) {
                return Collections.emptyList();
            }
            ParallelSortClientEmitter emitter = new ParallelSortClientEmitter(getEnvironment());
            String moduleId = generateModuleName(saw, entry.getKey());
            CompiledStage stage = emitter.emit(
                    moduleId,
                    resolved,
                    entry.getKey());
            results.add(new ExternalIoStage(getId(), stage, context.getOutputContext()));
        }
View Full Code Here

Examples of com.asakusafw.compiler.flow.mapreduce.parallel.ParallelSortClientEmitter.emit()

        if (getEnvironment().hasError()) {
            return Collections.emptyList();
        }

        ParallelSortClientEmitter emitter = new ParallelSortClientEmitter(getEnvironment());
        CompiledStage stage = emitter.emit(
                MODULE_NAME,
                resolved,
                getEnvironment().getEpilogueLocation(MODULE_NAME));

        return Collections.singletonList(new ExternalIoStage(getId(), stage, context.getOutputContext()));
View Full Code Here

Examples of com.asakusafw.compiler.flow.mapreduce.parallel.ParallelSortClientEmitter.emit()

            if (getEnvironment().hasError()) {
                return Collections.emptyList();
            }
            ParallelSortClientEmitter emitter = new ParallelSortClientEmitter(getEnvironment());
            String moduleId = generateModuleName(saw, entry.getKey());
            CompiledStage stage = emitter.emit(moduleId, resolved, entry.getKey());
            // TODO not sure
            results.add(new ExternalIoStage(getId(), stage, context.getOutputContext()));
        }
        return results;
    }
View Full Code Here

Examples of com.asakusafw.compiler.flow.mapreduce.parallel.ParallelSortClientEmitter.emit()

        if (getEnvironment().hasError()) {
            return Collections.emptyList();
        }

        ParallelSortClientEmitter emitter = new ParallelSortClientEmitter(getEnvironment());
        CompiledStage stage = emitter.emit(
                MODULE_NAME,
                resolved,
                getEnvironment().getEpilogueLocation(MODULE_NAME));

        return Collections.singletonList(new ExternalIoStage(getId(), stage, context.getOutputContext()));
View Full Code Here

Examples of com.asakusafw.dmdl.java.emitter.JavaModelClassGenerator.emit()

        JavaModelClassGenerator generator = new JavaModelClassGenerator(semantics, conf, driver);
        Collection<ModelDeclaration> models = semantics.getDeclaredModels();
        LOG.info(Messages.getString("GenerateTask.monitorGenerateStarting"), models.size()); //$NON-NLS-1$
        for (ModelDeclaration model : models) {
            LOG.info(Messages.getString("GenerateTask.monitorGenerateModel"), model.getName()); //$NON-NLS-1$
            generator.emit(model);
        }
        LOG.info(Messages.getString("GenerateTask.monitorGenerateFinishing")); //$NON-NLS-1$
    }

    private DmdlSemantics analyze() throws IOException {
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.