Package com.linkedin.databus.client

Examples of com.linkedin.databus.client.DbusEventAvroDecoder


                          new SchemaId(METADATA_SCHEMA_CHECKSUM),
                          CORRECT_METADATA_SCHEMA,
                          true)// preserve original string

    // now create the decoder and attempt to use it to extract and decode the event's metadata
    DbusEventAvroDecoder eventDecoder = createDecoder(metadataSchemaSet);
    try
    {
      GenericRecord reuse = null;
      GenericRecord decodedMetadata = eventDecoder.getMetadata(event, reuse);
      Assert.assertNull(decodedMetadata, "getMetadata() should have returned null;");
    }
    catch (Exception ex)
    {
      Assert.fail("getMetadata() should not have thrown exception: " + ex);
View Full Code Here

TOP

Related Classes of com.linkedin.databus.client.DbusEventAvroDecoder

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.