Last active
July 5, 2020 06:31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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