Package com.cloudera.flume.conf

Examples of com.cloudera.flume.conf.Context


  }

  @Test
  public void testBloomGenBuilders() {
    SinkDecoBuilder b = BloomGeneratorDeco.builder();
    Context ctx = new Context();
    b.build(ctx, "2234", "123");
    b.build(ctx, "1234");
    b.build(ctx);
  }
View Full Code Here


  }

  @Test(expected = IllegalArgumentException.class)
  public void testBloomGenBuilderFail() {
    SinkDecoBuilder b = BloomGeneratorDeco.builder();
    b.build(new Context(), "2234", "123", "r3414");
  }
View Full Code Here

  }

  @Test(expected = IllegalArgumentException.class)
  public void testBloomGenBuilderFail2() {
    SinkDecoBuilder b = BloomGeneratorDeco.builder();
    b.build(new Context(), "r3414");
  }
View Full Code Here

  }

  @Test
  public void testBloomCheckBuilders() {
    SinkDecoBuilder b = BloomGeneratorDeco.builder();
    Context ctx = new Context();
    b.build(ctx, "2234", "123");
    b.build(ctx, "1234");
    b.build(ctx);
  }
View Full Code Here

  }

  @Test(expected = IllegalArgumentException.class)
  public void testBloomCheckBuilderFail() {
    SinkDecoBuilder b = BloomGeneratorDeco.builder();
    b.build(new Context(), "2234", "123", "r3414");
  }
View Full Code Here

  }

  @Test(expected = IllegalArgumentException.class)
  public void testBloomCheckBuilderFail2() {
    SinkDecoBuilder b = BloomGeneratorDeco.builder();
    b.build(new Context(), "r3414");
  }
View Full Code Here

  }

  @Test
  public void testBuildWithRptSink() throws FlumeSpecException {
    String spec = "{bloomCheck(1,2, \"text(\\\"test\\\")\") => null } ";
    FlumeBuilder.buildSink(new Context(), spec);
  }
View Full Code Here

  }

  @Test
  public void testBuilder() {
    ReorderDecorator.builder().build(new Context(), "0.0", "0.0");
  }
View Full Code Here

    ReorderDecorator.builder().build(new Context(), "0.0", "0.0");
  }

  @Test(expected = IllegalArgumentException.class)
  public void testBadBuilder1() {
    ReorderDecorator.builder().build(new Context(), "-1.0", "0.0");
  }
View Full Code Here

    ReorderDecorator.builder().build(new Context(), "-1.0", "0.0");
  }

  @Test(expected = IllegalArgumentException.class)
  public void testBadBuilder2() {
    ReorderDecorator.builder().build(new Context(), "2.0", "0.0");
  }
View Full Code Here

TOP

Related Classes of com.cloudera.flume.conf.Context

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.