Package org.apache.flume.channel.jdbc.impl

Examples of org.apache.flume.channel.jdbc.impl.PersistableEvent$Builder


    runTest(s8, null);
  }


  private void runTest(byte[] payload, Map<String, String> headers) {
    PersistableEvent pe = new PersistableEvent("test",
        new MockEvent(payload, headers, null));
    Assert.assertArrayEquals(payload, pe.getBody());
    Map<String, String> h = pe.getHeaders();
    if (h == null) {
      Assert.assertTrue(headers == null || headers.size() == 0);
    } else {
      Assert.assertTrue(headers.size() == h.size());
      for (String key : h.keySet()) {
View Full Code Here

TOP

Related Classes of org.apache.flume.channel.jdbc.impl.PersistableEvent$Builder

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.