Package org.apache.spark.streaming

Examples of org.apache.spark.streaming.StreamingContext


        assertThat(scjf.sparkContext, is(jsc.sc()));
    }

    @Test
    public void testJavaFunctions2() throws Exception {
        StreamingContext ssc = mock(StreamingContext.class);
        StreamingContextJavaFunctions scjf = javaFunctions(ssc);
        assertThat(scjf.ssc, is(ssc));
    }
View Full Code Here


    }

    @Test
    public void testJavaFunctions3() throws Exception {
        JavaStreamingContext jsc = mock(JavaStreamingContext.class);
        StreamingContext ssc = mock(StreamingContext.class);
        when(jsc.ssc()).thenReturn(ssc);
        StreamingContextJavaFunctions scjf = javaFunctions(jsc);
        assertThat(scjf.ssc, is(ssc));
    }
View Full Code Here

TOP

Related Classes of org.apache.spark.streaming.StreamingContext

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.