Package com.asakusafw.windgate.core

Examples of com.asakusafw.windgate.core.ParameterList


     */
    @Test
    public void source() throws Exception {
        set("testing", "Hello, world!");

        HadoopFsMirror resource = new HadoopFsMirror(conf, profile(), new ParameterList());
        try {
            ProcessScript<Text> process = source("target", "testing");
            resource.prepare(script(process));

            SourceDriver<Text> driver = resource.createSource(process);
View Full Code Here


        set("testing", "Hello, world!");

        HadoopFsMirror resource = new HadoopFsMirror(
                conf,
                profile(),
                new ParameterList(Collections.singletonMap("var", "testing")));
        try {
            ProcessScript<Text> process = source("target", "${var}");
            resource.prepare(script(process));

            SourceDriver<Text> driver = resource.createSource(process);
View Full Code Here

     */
    @Test
    public void source_multivalue() throws Exception {
        set("testing", "Hello1, world!", "Hello2, world!", "Hello3, world!");

        HadoopFsMirror resource = new HadoopFsMirror(conf, profile(), new ParameterList());
        try {
            ProcessScript<Text> process = source("target", "testing");
            resource.prepare(script(process));

            SourceDriver<Text> driver = resource.createSource(process);
View Full Code Here

    public void source_multisource() throws Exception {
        set("testing1", "Hello1, world!");
        set("testing2", "Hello2, world!");
        set("testing3", "Hello3, world!");

        HadoopFsMirror resource = new HadoopFsMirror(conf, profile(), new ParameterList());
        try {
            ProcessScript<Text> process = source("target", "testing1", "testing2", "testing3");
            resource.prepare(script(process));

            SourceDriver<Text> driver = resource.createSource(process);
View Full Code Here

    public void source_glob() throws Exception {
        set("testing-1", "Hello1, world!");
        set("testing-2", "Hello2, world!");
        set("testing-3", "Hello3, world!");

        HadoopFsMirror resource = new HadoopFsMirror(conf, profile(), new ParameterList());
        try {
            ProcessScript<Text> process = source("target", "testing-*");
            resource.prepare(script(process));

            SourceDriver<Text> driver = resource.createSource(process);
View Full Code Here

     */
    @Test
    public void source_sim() throws Exception {
        RuntimeContext.set(RuntimeContext.DEFAULT.mode(ExecutionMode.SIMULATION));

        HadoopFsMirror resource = new HadoopFsMirror(conf, profile(), new ParameterList());
        try {
            assertThat(RuntimeContext.get().canExecute(resource), is(true));

            ProcessScript<Text> process = source("target", "testing");
            resource.prepare(script(process));
View Full Code Here

     * Attempts to read missing source.
     * @throws Exception if failed
     */
    @Test
    public void source_missing() throws Exception {
        HadoopFsMirror resource = new HadoopFsMirror(conf, profile(), new ParameterList());
        try {
            ProcessScript<Text> process = source("target", "MISSING");
            resource.prepare(script(process));

            SourceDriver<Text> driver = resource.createSource(process);
View Full Code Here

     * no sources.
     * @throws Exception if failed
     */
    @Test
    public void source_nosource() throws Exception {
        HadoopFsMirror resource = new HadoopFsMirror(conf, profile(), new ParameterList());
        try {
            ProcessScript<Text> process = source("target");
            resource.prepare(script(process));

            SourceDriver<Text> driver = resource.createSource(process);
View Full Code Here

     * source with invalid parameter.
     * @throws Exception if failed
     */
    @Test
    public void source_invalid_parameter() throws Exception {
        HadoopFsMirror resource = new HadoopFsMirror(conf, profile(), new ParameterList());
        try {
            ProcessScript<Text> process = source("target", "${INVALID}");
            resource.prepare(script(process));

            SourceDriver<Text> driver = resource.createSource(process);
View Full Code Here

     * simple drain.
     * @throws Exception if failed
     */
    @Test
    public void drain() throws Exception {
        HadoopFsMirror resource = new HadoopFsMirror(conf, profile(), new ParameterList());
        try {
            ProcessScript<Text> process = drain("target", "testing");
            resource.prepare(script(process));
            DrainDriver<Text> driver = resource.createDrain(process);
            try {
View Full Code Here

TOP

Related Classes of com.asakusafw.windgate.core.ParameterList

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.