Search in sources :

Example 6 with SparkStructuredStreamingPipelineOptions

use of org.apache.beam.runners.spark.structuredstreaming.SparkStructuredStreamingPipelineOptions in project beam by apache.

the class GroupByKeyTest method beforeClass.

@BeforeClass
public static void beforeClass() {
    SparkStructuredStreamingPipelineOptions options = PipelineOptionsFactory.create().as(SparkStructuredStreamingPipelineOptions.class);
    options.setRunner(SparkStructuredStreamingRunner.class);
    options.setTestMode(true);
    pipeline = Pipeline.create(options);
}
Also used : SparkStructuredStreamingPipelineOptions(org.apache.beam.runners.spark.structuredstreaming.SparkStructuredStreamingPipelineOptions) BeforeClass(org.junit.BeforeClass)

Example 7 with SparkStructuredStreamingPipelineOptions

use of org.apache.beam.runners.spark.structuredstreaming.SparkStructuredStreamingPipelineOptions in project beam by apache.

the class CombineTest method beforeClass.

@BeforeClass
public static void beforeClass() {
    SparkStructuredStreamingPipelineOptions options = PipelineOptionsFactory.create().as(SparkStructuredStreamingPipelineOptions.class);
    options.setRunner(SparkStructuredStreamingRunner.class);
    options.setTestMode(true);
    pipeline = Pipeline.create(options);
}
Also used : SparkStructuredStreamingPipelineOptions(org.apache.beam.runners.spark.structuredstreaming.SparkStructuredStreamingPipelineOptions) BeforeClass(org.junit.BeforeClass)

Example 8 with SparkStructuredStreamingPipelineOptions

use of org.apache.beam.runners.spark.structuredstreaming.SparkStructuredStreamingPipelineOptions in project beam by apache.

the class FlattenTest method beforeClass.

@BeforeClass
public static void beforeClass() {
    SparkStructuredStreamingPipelineOptions options = PipelineOptionsFactory.create().as(SparkStructuredStreamingPipelineOptions.class);
    options.setRunner(SparkStructuredStreamingRunner.class);
    options.setTestMode(true);
    pipeline = Pipeline.create(options);
}
Also used : SparkStructuredStreamingPipelineOptions(org.apache.beam.runners.spark.structuredstreaming.SparkStructuredStreamingPipelineOptions) BeforeClass(org.junit.BeforeClass)

Example 9 with SparkStructuredStreamingPipelineOptions

use of org.apache.beam.runners.spark.structuredstreaming.SparkStructuredStreamingPipelineOptions in project beam by apache.

the class WindowAssignTest method beforeClass.

@BeforeClass
public static void beforeClass() {
    SparkStructuredStreamingPipelineOptions options = PipelineOptionsFactory.create().as(SparkStructuredStreamingPipelineOptions.class);
    options.setRunner(SparkStructuredStreamingRunner.class);
    options.setTestMode(true);
    pipeline = Pipeline.create(options);
}
Also used : SparkStructuredStreamingPipelineOptions(org.apache.beam.runners.spark.structuredstreaming.SparkStructuredStreamingPipelineOptions) BeforeClass(org.junit.BeforeClass)

Example 10 with SparkStructuredStreamingPipelineOptions

use of org.apache.beam.runners.spark.structuredstreaming.SparkStructuredStreamingPipelineOptions in project beam by apache.

the class SimpleSourceTest method beforeClass.

@BeforeClass
public static void beforeClass() {
    SparkStructuredStreamingPipelineOptions options = PipelineOptionsFactory.create().as(SparkStructuredStreamingPipelineOptions.class);
    options.setRunner(SparkStructuredStreamingRunner.class);
    options.setTestMode(true);
    pipeline = Pipeline.create(options);
}
Also used : SparkStructuredStreamingPipelineOptions(org.apache.beam.runners.spark.structuredstreaming.SparkStructuredStreamingPipelineOptions) BeforeClass(org.junit.BeforeClass)

Aggregations

SparkStructuredStreamingPipelineOptions (org.apache.beam.runners.spark.structuredstreaming.SparkStructuredStreamingPipelineOptions)10 BeforeClass (org.junit.BeforeClass)9 SuppressFBWarnings (edu.umd.cs.findbugs.annotations.SuppressFBWarnings)1 HashMap (java.util.HashMap)1 HashSet (java.util.HashSet)1 List (java.util.List)1 Map (java.util.Map)1 Set (java.util.Set)1 Collectors (java.util.stream.Collectors)1 SerializablePipelineOptions (org.apache.beam.runners.core.construction.SerializablePipelineOptions)1 TransformInputs (org.apache.beam.runners.core.construction.TransformInputs)1 EncoderHelpers (org.apache.beam.runners.spark.structuredstreaming.translation.helpers.EncoderHelpers)1 Coder (org.apache.beam.sdk.coders.Coder)1 VoidCoder (org.apache.beam.sdk.coders.VoidCoder)1 AppliedPTransform (org.apache.beam.sdk.runners.AppliedPTransform)1 PTransform (org.apache.beam.sdk.transforms.PTransform)1 WindowedValue (org.apache.beam.sdk.util.WindowedValue)1 PCollection (org.apache.beam.sdk.values.PCollection)1 PCollectionView (org.apache.beam.sdk.values.PCollectionView)1 PValue (org.apache.beam.sdk.values.PValue)1