Skip to content

Instantly share code, notes, and snippets.

@ferozed
Last active July 5, 2020 06:31
Show Gist options
  • Save ferozed/eaf5500695d1eb9388730b7760d81d6e to your computer and use it in GitHub Desktop.
Save ferozed/eaf5500695d1eb9388730b7760d81d6e to your computer and use it in GitHub Desktop.
/**
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
*/
package com.example;
import org.apache.avro.generic.GenericArray;
import org.apache.avro.specific.SpecificData;
import org.apache.avro.util.Utf8;
import org.apache.avro.message.BinaryMessageEncoder;
import org.apache.avro.message.BinaryMessageDecoder;
import org.apache.avro.message.SchemaStore;
@org.apache.avro.specific.AvroGenerated
public class FullName extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
private static final long serialVersionUID = 4560514203639509981L;
public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"FullName\",\"namespace\":\"com.example\",\"fields\":[{\"name\":\"first\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"last\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}]}");
public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
private static SpecificData MODEL$ = new SpecificData();
private static final BinaryMessageEncoder<FullName> ENCODER =
new BinaryMessageEncoder<FullName>(MODEL$, SCHEMA$);
private static final BinaryMessageDecoder<FullName> DECODER =
new BinaryMessageDecoder<FullName>(MODEL$, SCHEMA$);
/**
* Return the BinaryMessageEncoder instance used by this class.
* @return the message encoder used by this class
*/
public static BinaryMessageEncoder<FullName> getEncoder() {
return ENCODER;
}
/**
* Return the BinaryMessageDecoder instance used by this class.
* @return the message decoder used by this class
*/
public static BinaryMessageDecoder<FullName> getDecoder() {
return DECODER;
}
<snip>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment