com.yahoo.bullet.dsl.SmartAvro Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bullet-dsl Show documentation
Show all versions of bullet-dsl Show documentation
This library provides a code-less way to get your data into Bullet without
The newest version!
/**
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
*/
package com.yahoo.bullet.dsl;
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 SmartAvro extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
private static final long serialVersionUID = -9168072454435930961L;
public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"SmartAvro\",\"namespace\":\"com.yahoo.bullet.dsl\",\"fields\":[{\"name\":\"myInt\",\"type\":\"int\"},{\"name\":\"myLong\",\"type\":\"long\"},{\"name\":\"myFloat\",\"type\":\"float\"},{\"name\":\"myDouble\",\"type\":\"double\"},{\"name\":\"myBool\",\"type\":\"boolean\"},{\"name\":\"myString\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"myIntMap\",\"type\":{\"type\":\"map\",\"values\":\"int\",\"avro.java.string\":\"String\"}},{\"name\":\"myLongMap\",\"type\":{\"type\":\"map\",\"values\":\"long\",\"avro.java.string\":\"String\"}},{\"name\":\"myFloatMap\",\"type\":{\"type\":\"map\",\"values\":\"float\",\"avro.java.string\":\"String\"}},{\"name\":\"myDoubleMap\",\"type\":{\"type\":\"map\",\"values\":\"double\",\"avro.java.string\":\"String\"}},{\"name\":\"myBoolMap\",\"type\":{\"type\":\"map\",\"values\":\"boolean\",\"avro.java.string\":\"String\"}},{\"name\":\"myStringMap\",\"type\":{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"}},{\"name\":\"myIntMapMap\",\"type\":{\"type\":\"map\",\"values\":{\"type\":\"map\",\"values\":\"int\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"}},{\"name\":\"myLongMapMap\",\"type\":{\"type\":\"map\",\"values\":{\"type\":\"map\",\"values\":\"long\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"}},{\"name\":\"myFloatMapMap\",\"type\":{\"type\":\"map\",\"values\":{\"type\":\"map\",\"values\":\"float\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"}},{\"name\":\"myDoubleMapMap\",\"type\":{\"type\":\"map\",\"values\":{\"type\":\"map\",\"values\":\"double\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"}},{\"name\":\"myBoolMapMap\",\"type\":{\"type\":\"map\",\"values\":{\"type\":\"map\",\"values\":\"boolean\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"}},{\"name\":\"myStringMapMap\",\"type\":{\"type\":\"map\",\"values\":{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"}},{\"name\":\"myIntList\",\"type\":{\"type\":\"array\",\"items\":\"int\"}},{\"name\":\"myLongList\",\"type\":{\"type\":\"array\",\"items\":\"long\"}},{\"name\":\"myFloatList\",\"type\":{\"type\":\"array\",\"items\":\"float\"}},{\"name\":\"myDoubleList\",\"type\":{\"type\":\"array\",\"items\":\"double\"}},{\"name\":\"myBoolList\",\"type\":{\"type\":\"array\",\"items\":\"boolean\"}},{\"name\":\"myStringList\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}},{\"name\":\"myIntMapList\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"map\",\"values\":\"int\",\"avro.java.string\":\"String\"}}},{\"name\":\"myLongMapList\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"map\",\"values\":\"long\",\"avro.java.string\":\"String\"}}},{\"name\":\"myFloatMapList\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"map\",\"values\":\"float\",\"avro.java.string\":\"String\"}}},{\"name\":\"myDoubleMapList\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"map\",\"values\":\"double\",\"avro.java.string\":\"String\"}}},{\"name\":\"myBoolMapList\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"map\",\"values\":\"boolean\",\"avro.java.string\":\"String\"}}},{\"name\":\"myStringMapList\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"}}}]}");
public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
private static SpecificData MODEL$ = new SpecificData();
private static final BinaryMessageEncoder ENCODER =
new BinaryMessageEncoder(MODEL$, SCHEMA$);
private static final BinaryMessageDecoder DECODER =
new BinaryMessageDecoder(MODEL$, SCHEMA$);
/**
* Return the BinaryMessageEncoder instance used by this class.
* @return the message encoder used by this class
*/
public static BinaryMessageEncoder getEncoder() {
return ENCODER;
}
/**
* Return the BinaryMessageDecoder instance used by this class.
* @return the message decoder used by this class
*/
public static BinaryMessageDecoder getDecoder() {
return DECODER;
}
/**
* Create a new BinaryMessageDecoder instance for this class that uses the specified {@link SchemaStore}.
* @param resolver a {@link SchemaStore} used to find schemas by fingerprint
* @return a BinaryMessageDecoder instance for this class backed by the given SchemaStore
*/
public static BinaryMessageDecoder createDecoder(SchemaStore resolver) {
return new BinaryMessageDecoder(MODEL$, SCHEMA$, resolver);
}
/**
* Serializes this SmartAvro to a ByteBuffer.
* @return a buffer holding the serialized data for this instance
* @throws java.io.IOException if this instance could not be serialized
*/
public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {
return ENCODER.encode(this);
}
/**
* Deserializes a SmartAvro from a ByteBuffer.
* @param b a byte buffer holding serialized data for an instance of this class
* @return a SmartAvro instance decoded from the given buffer
* @throws java.io.IOException if the given bytes could not be deserialized into an instance of this class
*/
public static SmartAvro fromByteBuffer(
java.nio.ByteBuffer b) throws java.io.IOException {
return DECODER.decode(b);
}
@Deprecated public int myInt;
@Deprecated public long myLong;
@Deprecated public float myFloat;
@Deprecated public double myDouble;
@Deprecated public boolean myBool;
@Deprecated public java.lang.String myString;
@Deprecated public java.util.Map myIntMap;
@Deprecated public java.util.Map myLongMap;
@Deprecated public java.util.Map myFloatMap;
@Deprecated public java.util.Map myDoubleMap;
@Deprecated public java.util.Map myBoolMap;
@Deprecated public java.util.Map myStringMap;
@Deprecated public java.util.Map> myIntMapMap;
@Deprecated public java.util.Map> myLongMapMap;
@Deprecated public java.util.Map> myFloatMapMap;
@Deprecated public java.util.Map> myDoubleMapMap;
@Deprecated public java.util.Map> myBoolMapMap;
@Deprecated public java.util.Map> myStringMapMap;
@Deprecated public java.util.List myIntList;
@Deprecated public java.util.List myLongList;
@Deprecated public java.util.List myFloatList;
@Deprecated public java.util.List myDoubleList;
@Deprecated public java.util.List myBoolList;
@Deprecated public java.util.List myStringList;
@Deprecated public java.util.List> myIntMapList;
@Deprecated public java.util.List> myLongMapList;
@Deprecated public java.util.List> myFloatMapList;
@Deprecated public java.util.List> myDoubleMapList;
@Deprecated public java.util.List> myBoolMapList;
@Deprecated public java.util.List> myStringMapList;
/**
* Default constructor. Note that this does not initialize fields
* to their default values from the schema. If that is desired then
* one should use newBuilder()
.
*/
public SmartAvro() {}
/**
* All-args constructor.
* @param myInt The new value for myInt
* @param myLong The new value for myLong
* @param myFloat The new value for myFloat
* @param myDouble The new value for myDouble
* @param myBool The new value for myBool
* @param myString The new value for myString
* @param myIntMap The new value for myIntMap
* @param myLongMap The new value for myLongMap
* @param myFloatMap The new value for myFloatMap
* @param myDoubleMap The new value for myDoubleMap
* @param myBoolMap The new value for myBoolMap
* @param myStringMap The new value for myStringMap
* @param myIntMapMap The new value for myIntMapMap
* @param myLongMapMap The new value for myLongMapMap
* @param myFloatMapMap The new value for myFloatMapMap
* @param myDoubleMapMap The new value for myDoubleMapMap
* @param myBoolMapMap The new value for myBoolMapMap
* @param myStringMapMap The new value for myStringMapMap
* @param myIntList The new value for myIntList
* @param myLongList The new value for myLongList
* @param myFloatList The new value for myFloatList
* @param myDoubleList The new value for myDoubleList
* @param myBoolList The new value for myBoolList
* @param myStringList The new value for myStringList
* @param myIntMapList The new value for myIntMapList
* @param myLongMapList The new value for myLongMapList
* @param myFloatMapList The new value for myFloatMapList
* @param myDoubleMapList The new value for myDoubleMapList
* @param myBoolMapList The new value for myBoolMapList
* @param myStringMapList The new value for myStringMapList
*/
public SmartAvro(java.lang.Integer myInt, java.lang.Long myLong, java.lang.Float myFloat, java.lang.Double myDouble, java.lang.Boolean myBool, java.lang.String myString, java.util.Map myIntMap, java.util.Map myLongMap, java.util.Map myFloatMap, java.util.Map myDoubleMap, java.util.Map myBoolMap, java.util.Map myStringMap, java.util.Map> myIntMapMap, java.util.Map> myLongMapMap, java.util.Map> myFloatMapMap, java.util.Map> myDoubleMapMap, java.util.Map> myBoolMapMap, java.util.Map> myStringMapMap, java.util.List myIntList, java.util.List myLongList, java.util.List myFloatList, java.util.List myDoubleList, java.util.List myBoolList, java.util.List myStringList, java.util.List> myIntMapList, java.util.List> myLongMapList, java.util.List> myFloatMapList, java.util.List> myDoubleMapList, java.util.List> myBoolMapList, java.util.List> myStringMapList) {
this.myInt = myInt;
this.myLong = myLong;
this.myFloat = myFloat;
this.myDouble = myDouble;
this.myBool = myBool;
this.myString = myString;
this.myIntMap = myIntMap;
this.myLongMap = myLongMap;
this.myFloatMap = myFloatMap;
this.myDoubleMap = myDoubleMap;
this.myBoolMap = myBoolMap;
this.myStringMap = myStringMap;
this.myIntMapMap = myIntMapMap;
this.myLongMapMap = myLongMapMap;
this.myFloatMapMap = myFloatMapMap;
this.myDoubleMapMap = myDoubleMapMap;
this.myBoolMapMap = myBoolMapMap;
this.myStringMapMap = myStringMapMap;
this.myIntList = myIntList;
this.myLongList = myLongList;
this.myFloatList = myFloatList;
this.myDoubleList = myDoubleList;
this.myBoolList = myBoolList;
this.myStringList = myStringList;
this.myIntMapList = myIntMapList;
this.myLongMapList = myLongMapList;
this.myFloatMapList = myFloatMapList;
this.myDoubleMapList = myDoubleMapList;
this.myBoolMapList = myBoolMapList;
this.myStringMapList = myStringMapList;
}
public org.apache.avro.specific.SpecificData getSpecificData() { return MODEL$; }
public org.apache.avro.Schema getSchema() { return SCHEMA$; }
// Used by DatumWriter. Applications should not call.
public java.lang.Object get(int field$) {
switch (field$) {
case 0: return myInt;
case 1: return myLong;
case 2: return myFloat;
case 3: return myDouble;
case 4: return myBool;
case 5: return myString;
case 6: return myIntMap;
case 7: return myLongMap;
case 8: return myFloatMap;
case 9: return myDoubleMap;
case 10: return myBoolMap;
case 11: return myStringMap;
case 12: return myIntMapMap;
case 13: return myLongMapMap;
case 14: return myFloatMapMap;
case 15: return myDoubleMapMap;
case 16: return myBoolMapMap;
case 17: return myStringMapMap;
case 18: return myIntList;
case 19: return myLongList;
case 20: return myFloatList;
case 21: return myDoubleList;
case 22: return myBoolList;
case 23: return myStringList;
case 24: return myIntMapList;
case 25: return myLongMapList;
case 26: return myFloatMapList;
case 27: return myDoubleMapList;
case 28: return myBoolMapList;
case 29: return myStringMapList;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
// Used by DatumReader. Applications should not call.
@SuppressWarnings(value="unchecked")
public void put(int field$, java.lang.Object value$) {
switch (field$) {
case 0: myInt = (java.lang.Integer)value$; break;
case 1: myLong = (java.lang.Long)value$; break;
case 2: myFloat = (java.lang.Float)value$; break;
case 3: myDouble = (java.lang.Double)value$; break;
case 4: myBool = (java.lang.Boolean)value$; break;
case 5: myString = value$ != null ? value$.toString() : null; break;
case 6: myIntMap = (java.util.Map)value$; break;
case 7: myLongMap = (java.util.Map)value$; break;
case 8: myFloatMap = (java.util.Map)value$; break;
case 9: myDoubleMap = (java.util.Map)value$; break;
case 10: myBoolMap = (java.util.Map)value$; break;
case 11: myStringMap = (java.util.Map)value$; break;
case 12: myIntMapMap = (java.util.Map>)value$; break;
case 13: myLongMapMap = (java.util.Map>)value$; break;
case 14: myFloatMapMap = (java.util.Map>)value$; break;
case 15: myDoubleMapMap = (java.util.Map>)value$; break;
case 16: myBoolMapMap = (java.util.Map>)value$; break;
case 17: myStringMapMap = (java.util.Map>)value$; break;
case 18: myIntList = (java.util.List)value$; break;
case 19: myLongList = (java.util.List)value$; break;
case 20: myFloatList = (java.util.List)value$; break;
case 21: myDoubleList = (java.util.List)value$; break;
case 22: myBoolList = (java.util.List)value$; break;
case 23: myStringList = (java.util.List)value$; break;
case 24: myIntMapList = (java.util.List>)value$; break;
case 25: myLongMapList = (java.util.List>)value$; break;
case 26: myFloatMapList = (java.util.List>)value$; break;
case 27: myDoubleMapList = (java.util.List>)value$; break;
case 28: myBoolMapList = (java.util.List>)value$; break;
case 29: myStringMapList = (java.util.List>)value$; break;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
/**
* Gets the value of the 'myInt' field.
* @return The value of the 'myInt' field.
*/
public int getMyInt() {
return myInt;
}
/**
* Sets the value of the 'myInt' field.
* @param value the value to set.
*/
public void setMyInt(int value) {
this.myInt = value;
}
/**
* Gets the value of the 'myLong' field.
* @return The value of the 'myLong' field.
*/
public long getMyLong() {
return myLong;
}
/**
* Sets the value of the 'myLong' field.
* @param value the value to set.
*/
public void setMyLong(long value) {
this.myLong = value;
}
/**
* Gets the value of the 'myFloat' field.
* @return The value of the 'myFloat' field.
*/
public float getMyFloat() {
return myFloat;
}
/**
* Sets the value of the 'myFloat' field.
* @param value the value to set.
*/
public void setMyFloat(float value) {
this.myFloat = value;
}
/**
* Gets the value of the 'myDouble' field.
* @return The value of the 'myDouble' field.
*/
public double getMyDouble() {
return myDouble;
}
/**
* Sets the value of the 'myDouble' field.
* @param value the value to set.
*/
public void setMyDouble(double value) {
this.myDouble = value;
}
/**
* Gets the value of the 'myBool' field.
* @return The value of the 'myBool' field.
*/
public boolean getMyBool() {
return myBool;
}
/**
* Sets the value of the 'myBool' field.
* @param value the value to set.
*/
public void setMyBool(boolean value) {
this.myBool = value;
}
/**
* Gets the value of the 'myString' field.
* @return The value of the 'myString' field.
*/
public java.lang.String getMyString() {
return myString;
}
/**
* Sets the value of the 'myString' field.
* @param value the value to set.
*/
public void setMyString(java.lang.String value) {
this.myString = value;
}
/**
* Gets the value of the 'myIntMap' field.
* @return The value of the 'myIntMap' field.
*/
public java.util.Map getMyIntMap() {
return myIntMap;
}
/**
* Sets the value of the 'myIntMap' field.
* @param value the value to set.
*/
public void setMyIntMap(java.util.Map value) {
this.myIntMap = value;
}
/**
* Gets the value of the 'myLongMap' field.
* @return The value of the 'myLongMap' field.
*/
public java.util.Map getMyLongMap() {
return myLongMap;
}
/**
* Sets the value of the 'myLongMap' field.
* @param value the value to set.
*/
public void setMyLongMap(java.util.Map value) {
this.myLongMap = value;
}
/**
* Gets the value of the 'myFloatMap' field.
* @return The value of the 'myFloatMap' field.
*/
public java.util.Map getMyFloatMap() {
return myFloatMap;
}
/**
* Sets the value of the 'myFloatMap' field.
* @param value the value to set.
*/
public void setMyFloatMap(java.util.Map value) {
this.myFloatMap = value;
}
/**
* Gets the value of the 'myDoubleMap' field.
* @return The value of the 'myDoubleMap' field.
*/
public java.util.Map getMyDoubleMap() {
return myDoubleMap;
}
/**
* Sets the value of the 'myDoubleMap' field.
* @param value the value to set.
*/
public void setMyDoubleMap(java.util.Map value) {
this.myDoubleMap = value;
}
/**
* Gets the value of the 'myBoolMap' field.
* @return The value of the 'myBoolMap' field.
*/
public java.util.Map getMyBoolMap() {
return myBoolMap;
}
/**
* Sets the value of the 'myBoolMap' field.
* @param value the value to set.
*/
public void setMyBoolMap(java.util.Map value) {
this.myBoolMap = value;
}
/**
* Gets the value of the 'myStringMap' field.
* @return The value of the 'myStringMap' field.
*/
public java.util.Map getMyStringMap() {
return myStringMap;
}
/**
* Sets the value of the 'myStringMap' field.
* @param value the value to set.
*/
public void setMyStringMap(java.util.Map value) {
this.myStringMap = value;
}
/**
* Gets the value of the 'myIntMapMap' field.
* @return The value of the 'myIntMapMap' field.
*/
public java.util.Map> getMyIntMapMap() {
return myIntMapMap;
}
/**
* Sets the value of the 'myIntMapMap' field.
* @param value the value to set.
*/
public void setMyIntMapMap(java.util.Map> value) {
this.myIntMapMap = value;
}
/**
* Gets the value of the 'myLongMapMap' field.
* @return The value of the 'myLongMapMap' field.
*/
public java.util.Map> getMyLongMapMap() {
return myLongMapMap;
}
/**
* Sets the value of the 'myLongMapMap' field.
* @param value the value to set.
*/
public void setMyLongMapMap(java.util.Map> value) {
this.myLongMapMap = value;
}
/**
* Gets the value of the 'myFloatMapMap' field.
* @return The value of the 'myFloatMapMap' field.
*/
public java.util.Map> getMyFloatMapMap() {
return myFloatMapMap;
}
/**
* Sets the value of the 'myFloatMapMap' field.
* @param value the value to set.
*/
public void setMyFloatMapMap(java.util.Map> value) {
this.myFloatMapMap = value;
}
/**
* Gets the value of the 'myDoubleMapMap' field.
* @return The value of the 'myDoubleMapMap' field.
*/
public java.util.Map> getMyDoubleMapMap() {
return myDoubleMapMap;
}
/**
* Sets the value of the 'myDoubleMapMap' field.
* @param value the value to set.
*/
public void setMyDoubleMapMap(java.util.Map> value) {
this.myDoubleMapMap = value;
}
/**
* Gets the value of the 'myBoolMapMap' field.
* @return The value of the 'myBoolMapMap' field.
*/
public java.util.Map> getMyBoolMapMap() {
return myBoolMapMap;
}
/**
* Sets the value of the 'myBoolMapMap' field.
* @param value the value to set.
*/
public void setMyBoolMapMap(java.util.Map> value) {
this.myBoolMapMap = value;
}
/**
* Gets the value of the 'myStringMapMap' field.
* @return The value of the 'myStringMapMap' field.
*/
public java.util.Map> getMyStringMapMap() {
return myStringMapMap;
}
/**
* Sets the value of the 'myStringMapMap' field.
* @param value the value to set.
*/
public void setMyStringMapMap(java.util.Map> value) {
this.myStringMapMap = value;
}
/**
* Gets the value of the 'myIntList' field.
* @return The value of the 'myIntList' field.
*/
public java.util.List getMyIntList() {
return myIntList;
}
/**
* Sets the value of the 'myIntList' field.
* @param value the value to set.
*/
public void setMyIntList(java.util.List value) {
this.myIntList = value;
}
/**
* Gets the value of the 'myLongList' field.
* @return The value of the 'myLongList' field.
*/
public java.util.List getMyLongList() {
return myLongList;
}
/**
* Sets the value of the 'myLongList' field.
* @param value the value to set.
*/
public void setMyLongList(java.util.List value) {
this.myLongList = value;
}
/**
* Gets the value of the 'myFloatList' field.
* @return The value of the 'myFloatList' field.
*/
public java.util.List getMyFloatList() {
return myFloatList;
}
/**
* Sets the value of the 'myFloatList' field.
* @param value the value to set.
*/
public void setMyFloatList(java.util.List value) {
this.myFloatList = value;
}
/**
* Gets the value of the 'myDoubleList' field.
* @return The value of the 'myDoubleList' field.
*/
public java.util.List getMyDoubleList() {
return myDoubleList;
}
/**
* Sets the value of the 'myDoubleList' field.
* @param value the value to set.
*/
public void setMyDoubleList(java.util.List value) {
this.myDoubleList = value;
}
/**
* Gets the value of the 'myBoolList' field.
* @return The value of the 'myBoolList' field.
*/
public java.util.List getMyBoolList() {
return myBoolList;
}
/**
* Sets the value of the 'myBoolList' field.
* @param value the value to set.
*/
public void setMyBoolList(java.util.List value) {
this.myBoolList = value;
}
/**
* Gets the value of the 'myStringList' field.
* @return The value of the 'myStringList' field.
*/
public java.util.List getMyStringList() {
return myStringList;
}
/**
* Sets the value of the 'myStringList' field.
* @param value the value to set.
*/
public void setMyStringList(java.util.List value) {
this.myStringList = value;
}
/**
* Gets the value of the 'myIntMapList' field.
* @return The value of the 'myIntMapList' field.
*/
public java.util.List> getMyIntMapList() {
return myIntMapList;
}
/**
* Sets the value of the 'myIntMapList' field.
* @param value the value to set.
*/
public void setMyIntMapList(java.util.List> value) {
this.myIntMapList = value;
}
/**
* Gets the value of the 'myLongMapList' field.
* @return The value of the 'myLongMapList' field.
*/
public java.util.List> getMyLongMapList() {
return myLongMapList;
}
/**
* Sets the value of the 'myLongMapList' field.
* @param value the value to set.
*/
public void setMyLongMapList(java.util.List> value) {
this.myLongMapList = value;
}
/**
* Gets the value of the 'myFloatMapList' field.
* @return The value of the 'myFloatMapList' field.
*/
public java.util.List> getMyFloatMapList() {
return myFloatMapList;
}
/**
* Sets the value of the 'myFloatMapList' field.
* @param value the value to set.
*/
public void setMyFloatMapList(java.util.List> value) {
this.myFloatMapList = value;
}
/**
* Gets the value of the 'myDoubleMapList' field.
* @return The value of the 'myDoubleMapList' field.
*/
public java.util.List> getMyDoubleMapList() {
return myDoubleMapList;
}
/**
* Sets the value of the 'myDoubleMapList' field.
* @param value the value to set.
*/
public void setMyDoubleMapList(java.util.List> value) {
this.myDoubleMapList = value;
}
/**
* Gets the value of the 'myBoolMapList' field.
* @return The value of the 'myBoolMapList' field.
*/
public java.util.List> getMyBoolMapList() {
return myBoolMapList;
}
/**
* Sets the value of the 'myBoolMapList' field.
* @param value the value to set.
*/
public void setMyBoolMapList(java.util.List> value) {
this.myBoolMapList = value;
}
/**
* Gets the value of the 'myStringMapList' field.
* @return The value of the 'myStringMapList' field.
*/
public java.util.List> getMyStringMapList() {
return myStringMapList;
}
/**
* Sets the value of the 'myStringMapList' field.
* @param value the value to set.
*/
public void setMyStringMapList(java.util.List> value) {
this.myStringMapList = value;
}
/**
* Creates a new SmartAvro RecordBuilder.
* @return A new SmartAvro RecordBuilder
*/
public static com.yahoo.bullet.dsl.SmartAvro.Builder newBuilder() {
return new com.yahoo.bullet.dsl.SmartAvro.Builder();
}
/**
* Creates a new SmartAvro RecordBuilder by copying an existing Builder.
* @param other The existing builder to copy.
* @return A new SmartAvro RecordBuilder
*/
public static com.yahoo.bullet.dsl.SmartAvro.Builder newBuilder(com.yahoo.bullet.dsl.SmartAvro.Builder other) {
if (other == null) {
return new com.yahoo.bullet.dsl.SmartAvro.Builder();
} else {
return new com.yahoo.bullet.dsl.SmartAvro.Builder(other);
}
}
/**
* Creates a new SmartAvro RecordBuilder by copying an existing SmartAvro instance.
* @param other The existing instance to copy.
* @return A new SmartAvro RecordBuilder
*/
public static com.yahoo.bullet.dsl.SmartAvro.Builder newBuilder(com.yahoo.bullet.dsl.SmartAvro other) {
if (other == null) {
return new com.yahoo.bullet.dsl.SmartAvro.Builder();
} else {
return new com.yahoo.bullet.dsl.SmartAvro.Builder(other);
}
}
/**
* RecordBuilder for SmartAvro instances.
*/
@org.apache.avro.specific.AvroGenerated
public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
implements org.apache.avro.data.RecordBuilder {
private int myInt;
private long myLong;
private float myFloat;
private double myDouble;
private boolean myBool;
private java.lang.String myString;
private java.util.Map myIntMap;
private java.util.Map myLongMap;
private java.util.Map myFloatMap;
private java.util.Map myDoubleMap;
private java.util.Map myBoolMap;
private java.util.Map myStringMap;
private java.util.Map> myIntMapMap;
private java.util.Map> myLongMapMap;
private java.util.Map> myFloatMapMap;
private java.util.Map> myDoubleMapMap;
private java.util.Map> myBoolMapMap;
private java.util.Map> myStringMapMap;
private java.util.List myIntList;
private java.util.List myLongList;
private java.util.List myFloatList;
private java.util.List myDoubleList;
private java.util.List myBoolList;
private java.util.List myStringList;
private java.util.List> myIntMapList;
private java.util.List> myLongMapList;
private java.util.List> myFloatMapList;
private java.util.List> myDoubleMapList;
private java.util.List> myBoolMapList;
private java.util.List> myStringMapList;
/** Creates a new Builder */
private Builder() {
super(SCHEMA$);
}
/**
* Creates a Builder by copying an existing Builder.
* @param other The existing Builder to copy.
*/
private Builder(com.yahoo.bullet.dsl.SmartAvro.Builder other) {
super(other);
if (isValidValue(fields()[0], other.myInt)) {
this.myInt = data().deepCopy(fields()[0].schema(), other.myInt);
fieldSetFlags()[0] = other.fieldSetFlags()[0];
}
if (isValidValue(fields()[1], other.myLong)) {
this.myLong = data().deepCopy(fields()[1].schema(), other.myLong);
fieldSetFlags()[1] = other.fieldSetFlags()[1];
}
if (isValidValue(fields()[2], other.myFloat)) {
this.myFloat = data().deepCopy(fields()[2].schema(), other.myFloat);
fieldSetFlags()[2] = other.fieldSetFlags()[2];
}
if (isValidValue(fields()[3], other.myDouble)) {
this.myDouble = data().deepCopy(fields()[3].schema(), other.myDouble);
fieldSetFlags()[3] = other.fieldSetFlags()[3];
}
if (isValidValue(fields()[4], other.myBool)) {
this.myBool = data().deepCopy(fields()[4].schema(), other.myBool);
fieldSetFlags()[4] = other.fieldSetFlags()[4];
}
if (isValidValue(fields()[5], other.myString)) {
this.myString = data().deepCopy(fields()[5].schema(), other.myString);
fieldSetFlags()[5] = other.fieldSetFlags()[5];
}
if (isValidValue(fields()[6], other.myIntMap)) {
this.myIntMap = data().deepCopy(fields()[6].schema(), other.myIntMap);
fieldSetFlags()[6] = other.fieldSetFlags()[6];
}
if (isValidValue(fields()[7], other.myLongMap)) {
this.myLongMap = data().deepCopy(fields()[7].schema(), other.myLongMap);
fieldSetFlags()[7] = other.fieldSetFlags()[7];
}
if (isValidValue(fields()[8], other.myFloatMap)) {
this.myFloatMap = data().deepCopy(fields()[8].schema(), other.myFloatMap);
fieldSetFlags()[8] = other.fieldSetFlags()[8];
}
if (isValidValue(fields()[9], other.myDoubleMap)) {
this.myDoubleMap = data().deepCopy(fields()[9].schema(), other.myDoubleMap);
fieldSetFlags()[9] = other.fieldSetFlags()[9];
}
if (isValidValue(fields()[10], other.myBoolMap)) {
this.myBoolMap = data().deepCopy(fields()[10].schema(), other.myBoolMap);
fieldSetFlags()[10] = other.fieldSetFlags()[10];
}
if (isValidValue(fields()[11], other.myStringMap)) {
this.myStringMap = data().deepCopy(fields()[11].schema(), other.myStringMap);
fieldSetFlags()[11] = other.fieldSetFlags()[11];
}
if (isValidValue(fields()[12], other.myIntMapMap)) {
this.myIntMapMap = data().deepCopy(fields()[12].schema(), other.myIntMapMap);
fieldSetFlags()[12] = other.fieldSetFlags()[12];
}
if (isValidValue(fields()[13], other.myLongMapMap)) {
this.myLongMapMap = data().deepCopy(fields()[13].schema(), other.myLongMapMap);
fieldSetFlags()[13] = other.fieldSetFlags()[13];
}
if (isValidValue(fields()[14], other.myFloatMapMap)) {
this.myFloatMapMap = data().deepCopy(fields()[14].schema(), other.myFloatMapMap);
fieldSetFlags()[14] = other.fieldSetFlags()[14];
}
if (isValidValue(fields()[15], other.myDoubleMapMap)) {
this.myDoubleMapMap = data().deepCopy(fields()[15].schema(), other.myDoubleMapMap);
fieldSetFlags()[15] = other.fieldSetFlags()[15];
}
if (isValidValue(fields()[16], other.myBoolMapMap)) {
this.myBoolMapMap = data().deepCopy(fields()[16].schema(), other.myBoolMapMap);
fieldSetFlags()[16] = other.fieldSetFlags()[16];
}
if (isValidValue(fields()[17], other.myStringMapMap)) {
this.myStringMapMap = data().deepCopy(fields()[17].schema(), other.myStringMapMap);
fieldSetFlags()[17] = other.fieldSetFlags()[17];
}
if (isValidValue(fields()[18], other.myIntList)) {
this.myIntList = data().deepCopy(fields()[18].schema(), other.myIntList);
fieldSetFlags()[18] = other.fieldSetFlags()[18];
}
if (isValidValue(fields()[19], other.myLongList)) {
this.myLongList = data().deepCopy(fields()[19].schema(), other.myLongList);
fieldSetFlags()[19] = other.fieldSetFlags()[19];
}
if (isValidValue(fields()[20], other.myFloatList)) {
this.myFloatList = data().deepCopy(fields()[20].schema(), other.myFloatList);
fieldSetFlags()[20] = other.fieldSetFlags()[20];
}
if (isValidValue(fields()[21], other.myDoubleList)) {
this.myDoubleList = data().deepCopy(fields()[21].schema(), other.myDoubleList);
fieldSetFlags()[21] = other.fieldSetFlags()[21];
}
if (isValidValue(fields()[22], other.myBoolList)) {
this.myBoolList = data().deepCopy(fields()[22].schema(), other.myBoolList);
fieldSetFlags()[22] = other.fieldSetFlags()[22];
}
if (isValidValue(fields()[23], other.myStringList)) {
this.myStringList = data().deepCopy(fields()[23].schema(), other.myStringList);
fieldSetFlags()[23] = other.fieldSetFlags()[23];
}
if (isValidValue(fields()[24], other.myIntMapList)) {
this.myIntMapList = data().deepCopy(fields()[24].schema(), other.myIntMapList);
fieldSetFlags()[24] = other.fieldSetFlags()[24];
}
if (isValidValue(fields()[25], other.myLongMapList)) {
this.myLongMapList = data().deepCopy(fields()[25].schema(), other.myLongMapList);
fieldSetFlags()[25] = other.fieldSetFlags()[25];
}
if (isValidValue(fields()[26], other.myFloatMapList)) {
this.myFloatMapList = data().deepCopy(fields()[26].schema(), other.myFloatMapList);
fieldSetFlags()[26] = other.fieldSetFlags()[26];
}
if (isValidValue(fields()[27], other.myDoubleMapList)) {
this.myDoubleMapList = data().deepCopy(fields()[27].schema(), other.myDoubleMapList);
fieldSetFlags()[27] = other.fieldSetFlags()[27];
}
if (isValidValue(fields()[28], other.myBoolMapList)) {
this.myBoolMapList = data().deepCopy(fields()[28].schema(), other.myBoolMapList);
fieldSetFlags()[28] = other.fieldSetFlags()[28];
}
if (isValidValue(fields()[29], other.myStringMapList)) {
this.myStringMapList = data().deepCopy(fields()[29].schema(), other.myStringMapList);
fieldSetFlags()[29] = other.fieldSetFlags()[29];
}
}
/**
* Creates a Builder by copying an existing SmartAvro instance
* @param other The existing instance to copy.
*/
private Builder(com.yahoo.bullet.dsl.SmartAvro other) {
super(SCHEMA$);
if (isValidValue(fields()[0], other.myInt)) {
this.myInt = data().deepCopy(fields()[0].schema(), other.myInt);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.myLong)) {
this.myLong = data().deepCopy(fields()[1].schema(), other.myLong);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.myFloat)) {
this.myFloat = data().deepCopy(fields()[2].schema(), other.myFloat);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.myDouble)) {
this.myDouble = data().deepCopy(fields()[3].schema(), other.myDouble);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.myBool)) {
this.myBool = data().deepCopy(fields()[4].schema(), other.myBool);
fieldSetFlags()[4] = true;
}
if (isValidValue(fields()[5], other.myString)) {
this.myString = data().deepCopy(fields()[5].schema(), other.myString);
fieldSetFlags()[5] = true;
}
if (isValidValue(fields()[6], other.myIntMap)) {
this.myIntMap = data().deepCopy(fields()[6].schema(), other.myIntMap);
fieldSetFlags()[6] = true;
}
if (isValidValue(fields()[7], other.myLongMap)) {
this.myLongMap = data().deepCopy(fields()[7].schema(), other.myLongMap);
fieldSetFlags()[7] = true;
}
if (isValidValue(fields()[8], other.myFloatMap)) {
this.myFloatMap = data().deepCopy(fields()[8].schema(), other.myFloatMap);
fieldSetFlags()[8] = true;
}
if (isValidValue(fields()[9], other.myDoubleMap)) {
this.myDoubleMap = data().deepCopy(fields()[9].schema(), other.myDoubleMap);
fieldSetFlags()[9] = true;
}
if (isValidValue(fields()[10], other.myBoolMap)) {
this.myBoolMap = data().deepCopy(fields()[10].schema(), other.myBoolMap);
fieldSetFlags()[10] = true;
}
if (isValidValue(fields()[11], other.myStringMap)) {
this.myStringMap = data().deepCopy(fields()[11].schema(), other.myStringMap);
fieldSetFlags()[11] = true;
}
if (isValidValue(fields()[12], other.myIntMapMap)) {
this.myIntMapMap = data().deepCopy(fields()[12].schema(), other.myIntMapMap);
fieldSetFlags()[12] = true;
}
if (isValidValue(fields()[13], other.myLongMapMap)) {
this.myLongMapMap = data().deepCopy(fields()[13].schema(), other.myLongMapMap);
fieldSetFlags()[13] = true;
}
if (isValidValue(fields()[14], other.myFloatMapMap)) {
this.myFloatMapMap = data().deepCopy(fields()[14].schema(), other.myFloatMapMap);
fieldSetFlags()[14] = true;
}
if (isValidValue(fields()[15], other.myDoubleMapMap)) {
this.myDoubleMapMap = data().deepCopy(fields()[15].schema(), other.myDoubleMapMap);
fieldSetFlags()[15] = true;
}
if (isValidValue(fields()[16], other.myBoolMapMap)) {
this.myBoolMapMap = data().deepCopy(fields()[16].schema(), other.myBoolMapMap);
fieldSetFlags()[16] = true;
}
if (isValidValue(fields()[17], other.myStringMapMap)) {
this.myStringMapMap = data().deepCopy(fields()[17].schema(), other.myStringMapMap);
fieldSetFlags()[17] = true;
}
if (isValidValue(fields()[18], other.myIntList)) {
this.myIntList = data().deepCopy(fields()[18].schema(), other.myIntList);
fieldSetFlags()[18] = true;
}
if (isValidValue(fields()[19], other.myLongList)) {
this.myLongList = data().deepCopy(fields()[19].schema(), other.myLongList);
fieldSetFlags()[19] = true;
}
if (isValidValue(fields()[20], other.myFloatList)) {
this.myFloatList = data().deepCopy(fields()[20].schema(), other.myFloatList);
fieldSetFlags()[20] = true;
}
if (isValidValue(fields()[21], other.myDoubleList)) {
this.myDoubleList = data().deepCopy(fields()[21].schema(), other.myDoubleList);
fieldSetFlags()[21] = true;
}
if (isValidValue(fields()[22], other.myBoolList)) {
this.myBoolList = data().deepCopy(fields()[22].schema(), other.myBoolList);
fieldSetFlags()[22] = true;
}
if (isValidValue(fields()[23], other.myStringList)) {
this.myStringList = data().deepCopy(fields()[23].schema(), other.myStringList);
fieldSetFlags()[23] = true;
}
if (isValidValue(fields()[24], other.myIntMapList)) {
this.myIntMapList = data().deepCopy(fields()[24].schema(), other.myIntMapList);
fieldSetFlags()[24] = true;
}
if (isValidValue(fields()[25], other.myLongMapList)) {
this.myLongMapList = data().deepCopy(fields()[25].schema(), other.myLongMapList);
fieldSetFlags()[25] = true;
}
if (isValidValue(fields()[26], other.myFloatMapList)) {
this.myFloatMapList = data().deepCopy(fields()[26].schema(), other.myFloatMapList);
fieldSetFlags()[26] = true;
}
if (isValidValue(fields()[27], other.myDoubleMapList)) {
this.myDoubleMapList = data().deepCopy(fields()[27].schema(), other.myDoubleMapList);
fieldSetFlags()[27] = true;
}
if (isValidValue(fields()[28], other.myBoolMapList)) {
this.myBoolMapList = data().deepCopy(fields()[28].schema(), other.myBoolMapList);
fieldSetFlags()[28] = true;
}
if (isValidValue(fields()[29], other.myStringMapList)) {
this.myStringMapList = data().deepCopy(fields()[29].schema(), other.myStringMapList);
fieldSetFlags()[29] = true;
}
}
/**
* Gets the value of the 'myInt' field.
* @return The value.
*/
public int getMyInt() {
return myInt;
}
/**
* Sets the value of the 'myInt' field.
* @param value The value of 'myInt'.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder setMyInt(int value) {
validate(fields()[0], value);
this.myInt = value;
fieldSetFlags()[0] = true;
return this;
}
/**
* Checks whether the 'myInt' field has been set.
* @return True if the 'myInt' field has been set, false otherwise.
*/
public boolean hasMyInt() {
return fieldSetFlags()[0];
}
/**
* Clears the value of the 'myInt' field.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder clearMyInt() {
fieldSetFlags()[0] = false;
return this;
}
/**
* Gets the value of the 'myLong' field.
* @return The value.
*/
public long getMyLong() {
return myLong;
}
/**
* Sets the value of the 'myLong' field.
* @param value The value of 'myLong'.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder setMyLong(long value) {
validate(fields()[1], value);
this.myLong = value;
fieldSetFlags()[1] = true;
return this;
}
/**
* Checks whether the 'myLong' field has been set.
* @return True if the 'myLong' field has been set, false otherwise.
*/
public boolean hasMyLong() {
return fieldSetFlags()[1];
}
/**
* Clears the value of the 'myLong' field.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder clearMyLong() {
fieldSetFlags()[1] = false;
return this;
}
/**
* Gets the value of the 'myFloat' field.
* @return The value.
*/
public float getMyFloat() {
return myFloat;
}
/**
* Sets the value of the 'myFloat' field.
* @param value The value of 'myFloat'.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder setMyFloat(float value) {
validate(fields()[2], value);
this.myFloat = value;
fieldSetFlags()[2] = true;
return this;
}
/**
* Checks whether the 'myFloat' field has been set.
* @return True if the 'myFloat' field has been set, false otherwise.
*/
public boolean hasMyFloat() {
return fieldSetFlags()[2];
}
/**
* Clears the value of the 'myFloat' field.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder clearMyFloat() {
fieldSetFlags()[2] = false;
return this;
}
/**
* Gets the value of the 'myDouble' field.
* @return The value.
*/
public double getMyDouble() {
return myDouble;
}
/**
* Sets the value of the 'myDouble' field.
* @param value The value of 'myDouble'.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder setMyDouble(double value) {
validate(fields()[3], value);
this.myDouble = value;
fieldSetFlags()[3] = true;
return this;
}
/**
* Checks whether the 'myDouble' field has been set.
* @return True if the 'myDouble' field has been set, false otherwise.
*/
public boolean hasMyDouble() {
return fieldSetFlags()[3];
}
/**
* Clears the value of the 'myDouble' field.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder clearMyDouble() {
fieldSetFlags()[3] = false;
return this;
}
/**
* Gets the value of the 'myBool' field.
* @return The value.
*/
public boolean getMyBool() {
return myBool;
}
/**
* Sets the value of the 'myBool' field.
* @param value The value of 'myBool'.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder setMyBool(boolean value) {
validate(fields()[4], value);
this.myBool = value;
fieldSetFlags()[4] = true;
return this;
}
/**
* Checks whether the 'myBool' field has been set.
* @return True if the 'myBool' field has been set, false otherwise.
*/
public boolean hasMyBool() {
return fieldSetFlags()[4];
}
/**
* Clears the value of the 'myBool' field.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder clearMyBool() {
fieldSetFlags()[4] = false;
return this;
}
/**
* Gets the value of the 'myString' field.
* @return The value.
*/
public java.lang.String getMyString() {
return myString;
}
/**
* Sets the value of the 'myString' field.
* @param value The value of 'myString'.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder setMyString(java.lang.String value) {
validate(fields()[5], value);
this.myString = value;
fieldSetFlags()[5] = true;
return this;
}
/**
* Checks whether the 'myString' field has been set.
* @return True if the 'myString' field has been set, false otherwise.
*/
public boolean hasMyString() {
return fieldSetFlags()[5];
}
/**
* Clears the value of the 'myString' field.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder clearMyString() {
myString = null;
fieldSetFlags()[5] = false;
return this;
}
/**
* Gets the value of the 'myIntMap' field.
* @return The value.
*/
public java.util.Map getMyIntMap() {
return myIntMap;
}
/**
* Sets the value of the 'myIntMap' field.
* @param value The value of 'myIntMap'.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder setMyIntMap(java.util.Map value) {
validate(fields()[6], value);
this.myIntMap = value;
fieldSetFlags()[6] = true;
return this;
}
/**
* Checks whether the 'myIntMap' field has been set.
* @return True if the 'myIntMap' field has been set, false otherwise.
*/
public boolean hasMyIntMap() {
return fieldSetFlags()[6];
}
/**
* Clears the value of the 'myIntMap' field.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder clearMyIntMap() {
myIntMap = null;
fieldSetFlags()[6] = false;
return this;
}
/**
* Gets the value of the 'myLongMap' field.
* @return The value.
*/
public java.util.Map getMyLongMap() {
return myLongMap;
}
/**
* Sets the value of the 'myLongMap' field.
* @param value The value of 'myLongMap'.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder setMyLongMap(java.util.Map value) {
validate(fields()[7], value);
this.myLongMap = value;
fieldSetFlags()[7] = true;
return this;
}
/**
* Checks whether the 'myLongMap' field has been set.
* @return True if the 'myLongMap' field has been set, false otherwise.
*/
public boolean hasMyLongMap() {
return fieldSetFlags()[7];
}
/**
* Clears the value of the 'myLongMap' field.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder clearMyLongMap() {
myLongMap = null;
fieldSetFlags()[7] = false;
return this;
}
/**
* Gets the value of the 'myFloatMap' field.
* @return The value.
*/
public java.util.Map getMyFloatMap() {
return myFloatMap;
}
/**
* Sets the value of the 'myFloatMap' field.
* @param value The value of 'myFloatMap'.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder setMyFloatMap(java.util.Map value) {
validate(fields()[8], value);
this.myFloatMap = value;
fieldSetFlags()[8] = true;
return this;
}
/**
* Checks whether the 'myFloatMap' field has been set.
* @return True if the 'myFloatMap' field has been set, false otherwise.
*/
public boolean hasMyFloatMap() {
return fieldSetFlags()[8];
}
/**
* Clears the value of the 'myFloatMap' field.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder clearMyFloatMap() {
myFloatMap = null;
fieldSetFlags()[8] = false;
return this;
}
/**
* Gets the value of the 'myDoubleMap' field.
* @return The value.
*/
public java.util.Map getMyDoubleMap() {
return myDoubleMap;
}
/**
* Sets the value of the 'myDoubleMap' field.
* @param value The value of 'myDoubleMap'.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder setMyDoubleMap(java.util.Map value) {
validate(fields()[9], value);
this.myDoubleMap = value;
fieldSetFlags()[9] = true;
return this;
}
/**
* Checks whether the 'myDoubleMap' field has been set.
* @return True if the 'myDoubleMap' field has been set, false otherwise.
*/
public boolean hasMyDoubleMap() {
return fieldSetFlags()[9];
}
/**
* Clears the value of the 'myDoubleMap' field.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder clearMyDoubleMap() {
myDoubleMap = null;
fieldSetFlags()[9] = false;
return this;
}
/**
* Gets the value of the 'myBoolMap' field.
* @return The value.
*/
public java.util.Map getMyBoolMap() {
return myBoolMap;
}
/**
* Sets the value of the 'myBoolMap' field.
* @param value The value of 'myBoolMap'.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder setMyBoolMap(java.util.Map value) {
validate(fields()[10], value);
this.myBoolMap = value;
fieldSetFlags()[10] = true;
return this;
}
/**
* Checks whether the 'myBoolMap' field has been set.
* @return True if the 'myBoolMap' field has been set, false otherwise.
*/
public boolean hasMyBoolMap() {
return fieldSetFlags()[10];
}
/**
* Clears the value of the 'myBoolMap' field.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder clearMyBoolMap() {
myBoolMap = null;
fieldSetFlags()[10] = false;
return this;
}
/**
* Gets the value of the 'myStringMap' field.
* @return The value.
*/
public java.util.Map getMyStringMap() {
return myStringMap;
}
/**
* Sets the value of the 'myStringMap' field.
* @param value The value of 'myStringMap'.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder setMyStringMap(java.util.Map value) {
validate(fields()[11], value);
this.myStringMap = value;
fieldSetFlags()[11] = true;
return this;
}
/**
* Checks whether the 'myStringMap' field has been set.
* @return True if the 'myStringMap' field has been set, false otherwise.
*/
public boolean hasMyStringMap() {
return fieldSetFlags()[11];
}
/**
* Clears the value of the 'myStringMap' field.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder clearMyStringMap() {
myStringMap = null;
fieldSetFlags()[11] = false;
return this;
}
/**
* Gets the value of the 'myIntMapMap' field.
* @return The value.
*/
public java.util.Map> getMyIntMapMap() {
return myIntMapMap;
}
/**
* Sets the value of the 'myIntMapMap' field.
* @param value The value of 'myIntMapMap'.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder setMyIntMapMap(java.util.Map> value) {
validate(fields()[12], value);
this.myIntMapMap = value;
fieldSetFlags()[12] = true;
return this;
}
/**
* Checks whether the 'myIntMapMap' field has been set.
* @return True if the 'myIntMapMap' field has been set, false otherwise.
*/
public boolean hasMyIntMapMap() {
return fieldSetFlags()[12];
}
/**
* Clears the value of the 'myIntMapMap' field.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder clearMyIntMapMap() {
myIntMapMap = null;
fieldSetFlags()[12] = false;
return this;
}
/**
* Gets the value of the 'myLongMapMap' field.
* @return The value.
*/
public java.util.Map> getMyLongMapMap() {
return myLongMapMap;
}
/**
* Sets the value of the 'myLongMapMap' field.
* @param value The value of 'myLongMapMap'.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder setMyLongMapMap(java.util.Map> value) {
validate(fields()[13], value);
this.myLongMapMap = value;
fieldSetFlags()[13] = true;
return this;
}
/**
* Checks whether the 'myLongMapMap' field has been set.
* @return True if the 'myLongMapMap' field has been set, false otherwise.
*/
public boolean hasMyLongMapMap() {
return fieldSetFlags()[13];
}
/**
* Clears the value of the 'myLongMapMap' field.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder clearMyLongMapMap() {
myLongMapMap = null;
fieldSetFlags()[13] = false;
return this;
}
/**
* Gets the value of the 'myFloatMapMap' field.
* @return The value.
*/
public java.util.Map> getMyFloatMapMap() {
return myFloatMapMap;
}
/**
* Sets the value of the 'myFloatMapMap' field.
* @param value The value of 'myFloatMapMap'.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder setMyFloatMapMap(java.util.Map> value) {
validate(fields()[14], value);
this.myFloatMapMap = value;
fieldSetFlags()[14] = true;
return this;
}
/**
* Checks whether the 'myFloatMapMap' field has been set.
* @return True if the 'myFloatMapMap' field has been set, false otherwise.
*/
public boolean hasMyFloatMapMap() {
return fieldSetFlags()[14];
}
/**
* Clears the value of the 'myFloatMapMap' field.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder clearMyFloatMapMap() {
myFloatMapMap = null;
fieldSetFlags()[14] = false;
return this;
}
/**
* Gets the value of the 'myDoubleMapMap' field.
* @return The value.
*/
public java.util.Map> getMyDoubleMapMap() {
return myDoubleMapMap;
}
/**
* Sets the value of the 'myDoubleMapMap' field.
* @param value The value of 'myDoubleMapMap'.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder setMyDoubleMapMap(java.util.Map> value) {
validate(fields()[15], value);
this.myDoubleMapMap = value;
fieldSetFlags()[15] = true;
return this;
}
/**
* Checks whether the 'myDoubleMapMap' field has been set.
* @return True if the 'myDoubleMapMap' field has been set, false otherwise.
*/
public boolean hasMyDoubleMapMap() {
return fieldSetFlags()[15];
}
/**
* Clears the value of the 'myDoubleMapMap' field.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder clearMyDoubleMapMap() {
myDoubleMapMap = null;
fieldSetFlags()[15] = false;
return this;
}
/**
* Gets the value of the 'myBoolMapMap' field.
* @return The value.
*/
public java.util.Map> getMyBoolMapMap() {
return myBoolMapMap;
}
/**
* Sets the value of the 'myBoolMapMap' field.
* @param value The value of 'myBoolMapMap'.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder setMyBoolMapMap(java.util.Map> value) {
validate(fields()[16], value);
this.myBoolMapMap = value;
fieldSetFlags()[16] = true;
return this;
}
/**
* Checks whether the 'myBoolMapMap' field has been set.
* @return True if the 'myBoolMapMap' field has been set, false otherwise.
*/
public boolean hasMyBoolMapMap() {
return fieldSetFlags()[16];
}
/**
* Clears the value of the 'myBoolMapMap' field.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder clearMyBoolMapMap() {
myBoolMapMap = null;
fieldSetFlags()[16] = false;
return this;
}
/**
* Gets the value of the 'myStringMapMap' field.
* @return The value.
*/
public java.util.Map> getMyStringMapMap() {
return myStringMapMap;
}
/**
* Sets the value of the 'myStringMapMap' field.
* @param value The value of 'myStringMapMap'.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder setMyStringMapMap(java.util.Map> value) {
validate(fields()[17], value);
this.myStringMapMap = value;
fieldSetFlags()[17] = true;
return this;
}
/**
* Checks whether the 'myStringMapMap' field has been set.
* @return True if the 'myStringMapMap' field has been set, false otherwise.
*/
public boolean hasMyStringMapMap() {
return fieldSetFlags()[17];
}
/**
* Clears the value of the 'myStringMapMap' field.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder clearMyStringMapMap() {
myStringMapMap = null;
fieldSetFlags()[17] = false;
return this;
}
/**
* Gets the value of the 'myIntList' field.
* @return The value.
*/
public java.util.List getMyIntList() {
return myIntList;
}
/**
* Sets the value of the 'myIntList' field.
* @param value The value of 'myIntList'.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder setMyIntList(java.util.List value) {
validate(fields()[18], value);
this.myIntList = value;
fieldSetFlags()[18] = true;
return this;
}
/**
* Checks whether the 'myIntList' field has been set.
* @return True if the 'myIntList' field has been set, false otherwise.
*/
public boolean hasMyIntList() {
return fieldSetFlags()[18];
}
/**
* Clears the value of the 'myIntList' field.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder clearMyIntList() {
myIntList = null;
fieldSetFlags()[18] = false;
return this;
}
/**
* Gets the value of the 'myLongList' field.
* @return The value.
*/
public java.util.List getMyLongList() {
return myLongList;
}
/**
* Sets the value of the 'myLongList' field.
* @param value The value of 'myLongList'.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder setMyLongList(java.util.List value) {
validate(fields()[19], value);
this.myLongList = value;
fieldSetFlags()[19] = true;
return this;
}
/**
* Checks whether the 'myLongList' field has been set.
* @return True if the 'myLongList' field has been set, false otherwise.
*/
public boolean hasMyLongList() {
return fieldSetFlags()[19];
}
/**
* Clears the value of the 'myLongList' field.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder clearMyLongList() {
myLongList = null;
fieldSetFlags()[19] = false;
return this;
}
/**
* Gets the value of the 'myFloatList' field.
* @return The value.
*/
public java.util.List getMyFloatList() {
return myFloatList;
}
/**
* Sets the value of the 'myFloatList' field.
* @param value The value of 'myFloatList'.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder setMyFloatList(java.util.List value) {
validate(fields()[20], value);
this.myFloatList = value;
fieldSetFlags()[20] = true;
return this;
}
/**
* Checks whether the 'myFloatList' field has been set.
* @return True if the 'myFloatList' field has been set, false otherwise.
*/
public boolean hasMyFloatList() {
return fieldSetFlags()[20];
}
/**
* Clears the value of the 'myFloatList' field.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder clearMyFloatList() {
myFloatList = null;
fieldSetFlags()[20] = false;
return this;
}
/**
* Gets the value of the 'myDoubleList' field.
* @return The value.
*/
public java.util.List getMyDoubleList() {
return myDoubleList;
}
/**
* Sets the value of the 'myDoubleList' field.
* @param value The value of 'myDoubleList'.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder setMyDoubleList(java.util.List value) {
validate(fields()[21], value);
this.myDoubleList = value;
fieldSetFlags()[21] = true;
return this;
}
/**
* Checks whether the 'myDoubleList' field has been set.
* @return True if the 'myDoubleList' field has been set, false otherwise.
*/
public boolean hasMyDoubleList() {
return fieldSetFlags()[21];
}
/**
* Clears the value of the 'myDoubleList' field.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder clearMyDoubleList() {
myDoubleList = null;
fieldSetFlags()[21] = false;
return this;
}
/**
* Gets the value of the 'myBoolList' field.
* @return The value.
*/
public java.util.List getMyBoolList() {
return myBoolList;
}
/**
* Sets the value of the 'myBoolList' field.
* @param value The value of 'myBoolList'.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder setMyBoolList(java.util.List value) {
validate(fields()[22], value);
this.myBoolList = value;
fieldSetFlags()[22] = true;
return this;
}
/**
* Checks whether the 'myBoolList' field has been set.
* @return True if the 'myBoolList' field has been set, false otherwise.
*/
public boolean hasMyBoolList() {
return fieldSetFlags()[22];
}
/**
* Clears the value of the 'myBoolList' field.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder clearMyBoolList() {
myBoolList = null;
fieldSetFlags()[22] = false;
return this;
}
/**
* Gets the value of the 'myStringList' field.
* @return The value.
*/
public java.util.List getMyStringList() {
return myStringList;
}
/**
* Sets the value of the 'myStringList' field.
* @param value The value of 'myStringList'.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder setMyStringList(java.util.List value) {
validate(fields()[23], value);
this.myStringList = value;
fieldSetFlags()[23] = true;
return this;
}
/**
* Checks whether the 'myStringList' field has been set.
* @return True if the 'myStringList' field has been set, false otherwise.
*/
public boolean hasMyStringList() {
return fieldSetFlags()[23];
}
/**
* Clears the value of the 'myStringList' field.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder clearMyStringList() {
myStringList = null;
fieldSetFlags()[23] = false;
return this;
}
/**
* Gets the value of the 'myIntMapList' field.
* @return The value.
*/
public java.util.List> getMyIntMapList() {
return myIntMapList;
}
/**
* Sets the value of the 'myIntMapList' field.
* @param value The value of 'myIntMapList'.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder setMyIntMapList(java.util.List> value) {
validate(fields()[24], value);
this.myIntMapList = value;
fieldSetFlags()[24] = true;
return this;
}
/**
* Checks whether the 'myIntMapList' field has been set.
* @return True if the 'myIntMapList' field has been set, false otherwise.
*/
public boolean hasMyIntMapList() {
return fieldSetFlags()[24];
}
/**
* Clears the value of the 'myIntMapList' field.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder clearMyIntMapList() {
myIntMapList = null;
fieldSetFlags()[24] = false;
return this;
}
/**
* Gets the value of the 'myLongMapList' field.
* @return The value.
*/
public java.util.List> getMyLongMapList() {
return myLongMapList;
}
/**
* Sets the value of the 'myLongMapList' field.
* @param value The value of 'myLongMapList'.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder setMyLongMapList(java.util.List> value) {
validate(fields()[25], value);
this.myLongMapList = value;
fieldSetFlags()[25] = true;
return this;
}
/**
* Checks whether the 'myLongMapList' field has been set.
* @return True if the 'myLongMapList' field has been set, false otherwise.
*/
public boolean hasMyLongMapList() {
return fieldSetFlags()[25];
}
/**
* Clears the value of the 'myLongMapList' field.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder clearMyLongMapList() {
myLongMapList = null;
fieldSetFlags()[25] = false;
return this;
}
/**
* Gets the value of the 'myFloatMapList' field.
* @return The value.
*/
public java.util.List> getMyFloatMapList() {
return myFloatMapList;
}
/**
* Sets the value of the 'myFloatMapList' field.
* @param value The value of 'myFloatMapList'.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder setMyFloatMapList(java.util.List> value) {
validate(fields()[26], value);
this.myFloatMapList = value;
fieldSetFlags()[26] = true;
return this;
}
/**
* Checks whether the 'myFloatMapList' field has been set.
* @return True if the 'myFloatMapList' field has been set, false otherwise.
*/
public boolean hasMyFloatMapList() {
return fieldSetFlags()[26];
}
/**
* Clears the value of the 'myFloatMapList' field.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder clearMyFloatMapList() {
myFloatMapList = null;
fieldSetFlags()[26] = false;
return this;
}
/**
* Gets the value of the 'myDoubleMapList' field.
* @return The value.
*/
public java.util.List> getMyDoubleMapList() {
return myDoubleMapList;
}
/**
* Sets the value of the 'myDoubleMapList' field.
* @param value The value of 'myDoubleMapList'.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder setMyDoubleMapList(java.util.List> value) {
validate(fields()[27], value);
this.myDoubleMapList = value;
fieldSetFlags()[27] = true;
return this;
}
/**
* Checks whether the 'myDoubleMapList' field has been set.
* @return True if the 'myDoubleMapList' field has been set, false otherwise.
*/
public boolean hasMyDoubleMapList() {
return fieldSetFlags()[27];
}
/**
* Clears the value of the 'myDoubleMapList' field.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder clearMyDoubleMapList() {
myDoubleMapList = null;
fieldSetFlags()[27] = false;
return this;
}
/**
* Gets the value of the 'myBoolMapList' field.
* @return The value.
*/
public java.util.List> getMyBoolMapList() {
return myBoolMapList;
}
/**
* Sets the value of the 'myBoolMapList' field.
* @param value The value of 'myBoolMapList'.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder setMyBoolMapList(java.util.List> value) {
validate(fields()[28], value);
this.myBoolMapList = value;
fieldSetFlags()[28] = true;
return this;
}
/**
* Checks whether the 'myBoolMapList' field has been set.
* @return True if the 'myBoolMapList' field has been set, false otherwise.
*/
public boolean hasMyBoolMapList() {
return fieldSetFlags()[28];
}
/**
* Clears the value of the 'myBoolMapList' field.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder clearMyBoolMapList() {
myBoolMapList = null;
fieldSetFlags()[28] = false;
return this;
}
/**
* Gets the value of the 'myStringMapList' field.
* @return The value.
*/
public java.util.List> getMyStringMapList() {
return myStringMapList;
}
/**
* Sets the value of the 'myStringMapList' field.
* @param value The value of 'myStringMapList'.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder setMyStringMapList(java.util.List> value) {
validate(fields()[29], value);
this.myStringMapList = value;
fieldSetFlags()[29] = true;
return this;
}
/**
* Checks whether the 'myStringMapList' field has been set.
* @return True if the 'myStringMapList' field has been set, false otherwise.
*/
public boolean hasMyStringMapList() {
return fieldSetFlags()[29];
}
/**
* Clears the value of the 'myStringMapList' field.
* @return This builder.
*/
public com.yahoo.bullet.dsl.SmartAvro.Builder clearMyStringMapList() {
myStringMapList = null;
fieldSetFlags()[29] = false;
return this;
}
@Override
@SuppressWarnings("unchecked")
public SmartAvro build() {
try {
SmartAvro record = new SmartAvro();
record.myInt = fieldSetFlags()[0] ? this.myInt : (java.lang.Integer) defaultValue(fields()[0]);
record.myLong = fieldSetFlags()[1] ? this.myLong : (java.lang.Long) defaultValue(fields()[1]);
record.myFloat = fieldSetFlags()[2] ? this.myFloat : (java.lang.Float) defaultValue(fields()[2]);
record.myDouble = fieldSetFlags()[3] ? this.myDouble : (java.lang.Double) defaultValue(fields()[3]);
record.myBool = fieldSetFlags()[4] ? this.myBool : (java.lang.Boolean) defaultValue(fields()[4]);
record.myString = fieldSetFlags()[5] ? this.myString : (java.lang.String) defaultValue(fields()[5]);
record.myIntMap = fieldSetFlags()[6] ? this.myIntMap : (java.util.Map) defaultValue(fields()[6]);
record.myLongMap = fieldSetFlags()[7] ? this.myLongMap : (java.util.Map) defaultValue(fields()[7]);
record.myFloatMap = fieldSetFlags()[8] ? this.myFloatMap : (java.util.Map) defaultValue(fields()[8]);
record.myDoubleMap = fieldSetFlags()[9] ? this.myDoubleMap : (java.util.Map) defaultValue(fields()[9]);
record.myBoolMap = fieldSetFlags()[10] ? this.myBoolMap : (java.util.Map) defaultValue(fields()[10]);
record.myStringMap = fieldSetFlags()[11] ? this.myStringMap : (java.util.Map) defaultValue(fields()[11]);
record.myIntMapMap = fieldSetFlags()[12] ? this.myIntMapMap : (java.util.Map>) defaultValue(fields()[12]);
record.myLongMapMap = fieldSetFlags()[13] ? this.myLongMapMap : (java.util.Map>) defaultValue(fields()[13]);
record.myFloatMapMap = fieldSetFlags()[14] ? this.myFloatMapMap : (java.util.Map>) defaultValue(fields()[14]);
record.myDoubleMapMap = fieldSetFlags()[15] ? this.myDoubleMapMap : (java.util.Map>) defaultValue(fields()[15]);
record.myBoolMapMap = fieldSetFlags()[16] ? this.myBoolMapMap : (java.util.Map>) defaultValue(fields()[16]);
record.myStringMapMap = fieldSetFlags()[17] ? this.myStringMapMap : (java.util.Map>) defaultValue(fields()[17]);
record.myIntList = fieldSetFlags()[18] ? this.myIntList : (java.util.List) defaultValue(fields()[18]);
record.myLongList = fieldSetFlags()[19] ? this.myLongList : (java.util.List) defaultValue(fields()[19]);
record.myFloatList = fieldSetFlags()[20] ? this.myFloatList : (java.util.List) defaultValue(fields()[20]);
record.myDoubleList = fieldSetFlags()[21] ? this.myDoubleList : (java.util.List) defaultValue(fields()[21]);
record.myBoolList = fieldSetFlags()[22] ? this.myBoolList : (java.util.List) defaultValue(fields()[22]);
record.myStringList = fieldSetFlags()[23] ? this.myStringList : (java.util.List) defaultValue(fields()[23]);
record.myIntMapList = fieldSetFlags()[24] ? this.myIntMapList : (java.util.List>) defaultValue(fields()[24]);
record.myLongMapList = fieldSetFlags()[25] ? this.myLongMapList : (java.util.List>) defaultValue(fields()[25]);
record.myFloatMapList = fieldSetFlags()[26] ? this.myFloatMapList : (java.util.List>) defaultValue(fields()[26]);
record.myDoubleMapList = fieldSetFlags()[27] ? this.myDoubleMapList : (java.util.List>) defaultValue(fields()[27]);
record.myBoolMapList = fieldSetFlags()[28] ? this.myBoolMapList : (java.util.List>) defaultValue(fields()[28]);
record.myStringMapList = fieldSetFlags()[29] ? this.myStringMapList : (java.util.List>) defaultValue(fields()[29]);
return record;
} catch (org.apache.avro.AvroMissingFieldException e) {
throw e;
} catch (java.lang.Exception e) {
throw new org.apache.avro.AvroRuntimeException(e);
}
}
}
@SuppressWarnings("unchecked")
private static final org.apache.avro.io.DatumWriter
WRITER$ = (org.apache.avro.io.DatumWriter)MODEL$.createDatumWriter(SCHEMA$);
@Override public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException {
WRITER$.write(this, SpecificData.getEncoder(out));
}
@SuppressWarnings("unchecked")
private static final org.apache.avro.io.DatumReader
READER$ = (org.apache.avro.io.DatumReader)MODEL$.createDatumReader(SCHEMA$);
@Override public void readExternal(java.io.ObjectInput in)
throws java.io.IOException {
READER$.read(this, SpecificData.getDecoder(in));
}
@Override protected boolean hasCustomCoders() { return true; }
@Override public void customEncode(org.apache.avro.io.Encoder out)
throws java.io.IOException
{
out.writeInt(this.myInt);
out.writeLong(this.myLong);
out.writeFloat(this.myFloat);
out.writeDouble(this.myDouble);
out.writeBoolean(this.myBool);
out.writeString(this.myString);
long size0 = this.myIntMap.size();
out.writeMapStart();
out.setItemCount(size0);
long actualSize0 = 0;
for (java.util.Map.Entry e0: this.myIntMap.entrySet()) {
actualSize0++;
out.startItem();
out.writeString(e0.getKey());
java.lang.Integer v0 = e0.getValue();
out.writeInt(v0);
}
out.writeMapEnd();
if (actualSize0 != size0)
throw new java.util.ConcurrentModificationException("Map-size written was " + size0 + ", but element count was " + actualSize0 + ".");
long size1 = this.myLongMap.size();
out.writeMapStart();
out.setItemCount(size1);
long actualSize1 = 0;
for (java.util.Map.Entry e1: this.myLongMap.entrySet()) {
actualSize1++;
out.startItem();
out.writeString(e1.getKey());
java.lang.Long v1 = e1.getValue();
out.writeLong(v1);
}
out.writeMapEnd();
if (actualSize1 != size1)
throw new java.util.ConcurrentModificationException("Map-size written was " + size1 + ", but element count was " + actualSize1 + ".");
long size2 = this.myFloatMap.size();
out.writeMapStart();
out.setItemCount(size2);
long actualSize2 = 0;
for (java.util.Map.Entry e2: this.myFloatMap.entrySet()) {
actualSize2++;
out.startItem();
out.writeString(e2.getKey());
java.lang.Float v2 = e2.getValue();
out.writeFloat(v2);
}
out.writeMapEnd();
if (actualSize2 != size2)
throw new java.util.ConcurrentModificationException("Map-size written was " + size2 + ", but element count was " + actualSize2 + ".");
long size3 = this.myDoubleMap.size();
out.writeMapStart();
out.setItemCount(size3);
long actualSize3 = 0;
for (java.util.Map.Entry e3: this.myDoubleMap.entrySet()) {
actualSize3++;
out.startItem();
out.writeString(e3.getKey());
java.lang.Double v3 = e3.getValue();
out.writeDouble(v3);
}
out.writeMapEnd();
if (actualSize3 != size3)
throw new java.util.ConcurrentModificationException("Map-size written was " + size3 + ", but element count was " + actualSize3 + ".");
long size4 = this.myBoolMap.size();
out.writeMapStart();
out.setItemCount(size4);
long actualSize4 = 0;
for (java.util.Map.Entry e4: this.myBoolMap.entrySet()) {
actualSize4++;
out.startItem();
out.writeString(e4.getKey());
java.lang.Boolean v4 = e4.getValue();
out.writeBoolean(v4);
}
out.writeMapEnd();
if (actualSize4 != size4)
throw new java.util.ConcurrentModificationException("Map-size written was " + size4 + ", but element count was " + actualSize4 + ".");
long size5 = this.myStringMap.size();
out.writeMapStart();
out.setItemCount(size5);
long actualSize5 = 0;
for (java.util.Map.Entry e5: this.myStringMap.entrySet()) {
actualSize5++;
out.startItem();
out.writeString(e5.getKey());
java.lang.String v5 = e5.getValue();
out.writeString(v5);
}
out.writeMapEnd();
if (actualSize5 != size5)
throw new java.util.ConcurrentModificationException("Map-size written was " + size5 + ", but element count was " + actualSize5 + ".");
long size6 = this.myIntMapMap.size();
out.writeMapStart();
out.setItemCount(size6);
long actualSize6 = 0;
for (java.util.Map.Entry> e6: this.myIntMapMap.entrySet()) {
actualSize6++;
out.startItem();
out.writeString(e6.getKey());
java.util.Map v6 = e6.getValue();
long size7 = v6.size();
out.writeMapStart();
out.setItemCount(size7);
long actualSize7 = 0;
for (java.util.Map.Entry e7: v6.entrySet()) {
actualSize7++;
out.startItem();
out.writeString(e7.getKey());
java.lang.Integer v7 = e7.getValue();
out.writeInt(v7);
}
out.writeMapEnd();
if (actualSize7 != size7)
throw new java.util.ConcurrentModificationException("Map-size written was " + size7 + ", but element count was " + actualSize7 + ".");
}
out.writeMapEnd();
if (actualSize6 != size6)
throw new java.util.ConcurrentModificationException("Map-size written was " + size6 + ", but element count was " + actualSize6 + ".");
long size8 = this.myLongMapMap.size();
out.writeMapStart();
out.setItemCount(size8);
long actualSize8 = 0;
for (java.util.Map.Entry> e8: this.myLongMapMap.entrySet()) {
actualSize8++;
out.startItem();
out.writeString(e8.getKey());
java.util.Map v8 = e8.getValue();
long size9 = v8.size();
out.writeMapStart();
out.setItemCount(size9);
long actualSize9 = 0;
for (java.util.Map.Entry e9: v8.entrySet()) {
actualSize9++;
out.startItem();
out.writeString(e9.getKey());
java.lang.Long v9 = e9.getValue();
out.writeLong(v9);
}
out.writeMapEnd();
if (actualSize9 != size9)
throw new java.util.ConcurrentModificationException("Map-size written was " + size9 + ", but element count was " + actualSize9 + ".");
}
out.writeMapEnd();
if (actualSize8 != size8)
throw new java.util.ConcurrentModificationException("Map-size written was " + size8 + ", but element count was " + actualSize8 + ".");
long size10 = this.myFloatMapMap.size();
out.writeMapStart();
out.setItemCount(size10);
long actualSize10 = 0;
for (java.util.Map.Entry> e10: this.myFloatMapMap.entrySet()) {
actualSize10++;
out.startItem();
out.writeString(e10.getKey());
java.util.Map v10 = e10.getValue();
long size11 = v10.size();
out.writeMapStart();
out.setItemCount(size11);
long actualSize11 = 0;
for (java.util.Map.Entry e11: v10.entrySet()) {
actualSize11++;
out.startItem();
out.writeString(e11.getKey());
java.lang.Float v11 = e11.getValue();
out.writeFloat(v11);
}
out.writeMapEnd();
if (actualSize11 != size11)
throw new java.util.ConcurrentModificationException("Map-size written was " + size11 + ", but element count was " + actualSize11 + ".");
}
out.writeMapEnd();
if (actualSize10 != size10)
throw new java.util.ConcurrentModificationException("Map-size written was " + size10 + ", but element count was " + actualSize10 + ".");
long size12 = this.myDoubleMapMap.size();
out.writeMapStart();
out.setItemCount(size12);
long actualSize12 = 0;
for (java.util.Map.Entry> e12: this.myDoubleMapMap.entrySet()) {
actualSize12++;
out.startItem();
out.writeString(e12.getKey());
java.util.Map v12 = e12.getValue();
long size13 = v12.size();
out.writeMapStart();
out.setItemCount(size13);
long actualSize13 = 0;
for (java.util.Map.Entry e13: v12.entrySet()) {
actualSize13++;
out.startItem();
out.writeString(e13.getKey());
java.lang.Double v13 = e13.getValue();
out.writeDouble(v13);
}
out.writeMapEnd();
if (actualSize13 != size13)
throw new java.util.ConcurrentModificationException("Map-size written was " + size13 + ", but element count was " + actualSize13 + ".");
}
out.writeMapEnd();
if (actualSize12 != size12)
throw new java.util.ConcurrentModificationException("Map-size written was " + size12 + ", but element count was " + actualSize12 + ".");
long size14 = this.myBoolMapMap.size();
out.writeMapStart();
out.setItemCount(size14);
long actualSize14 = 0;
for (java.util.Map.Entry> e14: this.myBoolMapMap.entrySet()) {
actualSize14++;
out.startItem();
out.writeString(e14.getKey());
java.util.Map v14 = e14.getValue();
long size15 = v14.size();
out.writeMapStart();
out.setItemCount(size15);
long actualSize15 = 0;
for (java.util.Map.Entry e15: v14.entrySet()) {
actualSize15++;
out.startItem();
out.writeString(e15.getKey());
java.lang.Boolean v15 = e15.getValue();
out.writeBoolean(v15);
}
out.writeMapEnd();
if (actualSize15 != size15)
throw new java.util.ConcurrentModificationException("Map-size written was " + size15 + ", but element count was " + actualSize15 + ".");
}
out.writeMapEnd();
if (actualSize14 != size14)
throw new java.util.ConcurrentModificationException("Map-size written was " + size14 + ", but element count was " + actualSize14 + ".");
long size16 = this.myStringMapMap.size();
out.writeMapStart();
out.setItemCount(size16);
long actualSize16 = 0;
for (java.util.Map.Entry