org.apache.storm.sql.runtime.serde.avro

## Class AvroScheme

- java.lang.Object
- - org.apache.storm.sql.runtime.serde.avro.AvroScheme

- All Implemented Interfaces:
    Serializable, Scheme

      public class AvroScheme
      extends Object
      implements Scheme

  AvroScheme uses generic(without code generation) instead of specific(with code generation) readers.

  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AvroScheme(String schemaString, List<String> fieldNames)` AvroScheme Constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `List<Object>` | `deserialize(ByteBuffer ser)`
    `Fields` | `getOutputFields()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### AvroScheme

          public AvroScheme(String schemaString,
                            List<String> fieldNames)

      AvroScheme Constructor.

      Parameters:
        `schemaString` - schema string
        `fieldNames` - field names

  - ### Method Detail

    - #### deserialize

          public List<Object> deserialize(ByteBuffer ser)

      Specified by:
        `deserialize` in interface `Scheme`

    - #### getOutputFields

          public Fields getOutputFields()

      Specified by:
        `getOutputFields` in interface `Scheme`

Copyright © 2019 The Apache Software Foundation. All rights reserved.