Package com.asakusafw.vocabulary.external

Examples of com.asakusafw.vocabulary.external.ExporterDescription


                        name);
                return;
            }
            Class<? extends ExporterDescription> aClass = parameter.exporter.description();

            ExporterDescription exporter;
            try {
                exporter = aClass.newInstance();
            } catch (Exception e) {
                error(
                        e,
                        "エクスポーター記述{0} ({1}番目の引数) の解析に失敗しました (インスタンス化に失敗しました)",
                        aClass.getName(),
                        parameter.getPosition());
                return;
            }

            if (exporter.getModelType() == null) {
                error(
                        null,
                        "エクスポーター記述{0} ({1}番目の引数) の解析に失敗しました (エクスポーター記述にデータの種類が指定されていません)",
                        aClass.getName(),
                        parameter.getPosition());
                return;
            }
            if (dataType.equals(exporter.getModelType()) == false) {
                error(
                        null,
                        "エクスポーター記述{0} ({1}番目の引数) の解析に失敗しました (出力の型とエクスポーター記述の型が一致しません)",
                        aClass.getName(),
                        parameter.getPosition());
View Full Code Here


        assertThat(input.get(0).getValue(), is(113)); // from second
        assertThat(input.get(1).getValue(), is(114)); // from side
    }

    private Location seqfile(Export exporter) {
        ExporterDescription desc = exporter.getDescription().getExporterDescription();
        assertThat(desc, instanceOf(TemporaryOutputDescription.class));
        TemporaryOutputDescription d = (TemporaryOutputDescription) desc;
        return Location.fromPath(d.getPathPrefix(), '/');
    }
View Full Code Here

        return (TemporaryInputDescription) importer;
    }

    private TemporaryOutputDescription extract(OutputDescription description) {
        assert description != null;
        ExporterDescription exporter = description.getExporterDescription();
        assert exporter != null;
        return (TemporaryOutputDescription) exporter;
    }
View Full Code Here

    }

    @Override
    public ExternalIoDescriptionProcessor findProcessor(OutputDescription description) {
        Precondition.checkMustNotBeNull(description, "description"); //$NON-NLS-1$
        ExporterDescription desc = description.getExporterDescription();
        if (desc == null) {
            return null;
        }
        Class<?> keyClass = desc.getClass();
        return findProcessor(keyClass);
    }
View Full Code Here

        return (WindGateImporterDescription) importer;
    }

    private WindGateExporterDescription extract(OutputDescription description) {
        assert description != null;
        ExporterDescription exporter = description.getExporterDescription();
        assert exporter != null;
        assert exporter instanceof WindGateExporterDescription;
        return (WindGateExporterDescription) exporter;
    }
View Full Code Here

        return (DirectFileInputDescription) importer;
    }

    private DirectFileOutputDescription extract(OutputDescription description) {
        assert description != null;
        ExporterDescription exporter = description.getExporterDescription();
        assert exporter != null;
        assert exporter instanceof DirectFileOutputDescription;
        return (DirectFileOutputDescription) exporter;
    }
View Full Code Here

            for (DriverOutputBase<?> output : outputs) {
                DataModelSourceFactory source = output.getSource();
                if (source != null) {
                    String name = output.getName();
                    LOG.debug("出力{}を配置しています: {}", name, source);
                    ExporterDescription description = info.findExporter(name);
                    if (description == null) {
                        throw new IllegalStateException(MessageFormat.format(
                                "出力{0}はフロー{1}で定義されていません",
                                name,
                                info.getJobflow().getFlowId()));
View Full Code Here

        if (context.isSkipVerify() == false) {
            StringBuilder sb = new StringBuilder();
            boolean sawError = false;
            for (DriverOutputBase<?> output : outputs) {
                String name = output.getName();
                ExporterDescription description = info.findExporter(name);
                if (description == null) {
                    throw new IllegalStateException(MessageFormat.format(
                            "出力{0}はフロー{1}で定義されていません",
                            name,
                            info.getJobflow().getFlowId()));
View Full Code Here

        String tableName = testUtils.getTablenameByClass(modelType);
        addCreateOut(tableName, tableName);
        String path = FlowPartDriverUtils.createOutputLocation(driverContext, tableName).toPath('/');
        LOG.info("DirectExporterDescription生成:Path=" + path);
        ExporterDescription desc = new DirectExporterDescription(modelType, path);
        return flowDescriptionDriver.createOut(tableName, desc);
    }
View Full Code Here

        return (BulkLoadImporterDescription) importer;
    }

    private BulkLoadExporterDescription extract(OutputDescription description) {
        assert description != null;
        ExporterDescription exporter = description.getExporterDescription();
        assert exporter != null;
        assert exporter instanceof BulkLoadExporterDescription;
        return (BulkLoadExporterDescription) exporter;
    }
View Full Code Here

TOP

Related Classes of com.asakusafw.vocabulary.external.ExporterDescription

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.