@@ -0,0 +1,1079 @@
+package org.apache.giraph.io.formats;%0A%0A/*%0AThis class is adjusted according to the output generated by Green-Marl compiler%0A*/%0A%0Aimport java.io.DataInput;%0Aimport java.io.DataOutput;%0Aimport java.io.IOException;%0A%0Aimport org.apache.hadoop.io.Writable;%0A%0Apublic class BCMessage implements Writable %7B%0A%09public BCMessage() %7B%0A%09%7D%0A%0A%09public byte m_type;%0A%0A%09public BCMessage(byte type) %7B%0A%09%09m_type = type;%0A%09%7D%0A%0A%09// union of all message fields%0A%09public long l0;%0A%09public float f0;%0A%09public float f1;%0A%0A%09@Override%0A%09public void write(DataOutput out) throws IOException %7B%0A%09%09out.writeByte(m_type);%0A%09%09if (m_type == 0) %7B%0A%09%09%09out.writeLong(l0);%0A%09%09%7D else if (m_type == 1) %7B%0A%09%09%7D else if (m_type == 2) %7B%0A%09%09%09out.writeFloat(f0);%0A%09%09%7D else if (m_type == 3) %7B%0A%09%09%09out.writeFloat(f0);%0A%09%09%09out.writeFloat(f1);%0A%09%09%7D%0A%09%7D%0A%0A%09@Override%0A%09public void readFields(DataInput in) throws IOException %7B%0A%09%09m_type = in.readByte();%0A%09%09if (m_type == 0) %7B%0A%09%09%09l0 = in.readLong();%0A%09%09%7D else if (m_type == 1) %7B%0A%09%09%7D else if (m_type == 2) %7B%0A%09%09%09f0 = in.readFloat();%0A%09%09%7D else if (m_type == 3) %7B%0A%09%09%09f0 = in.readFloat();%0A%09%09%09f1 = in.readFloat();%0A%09%09%7D%0A%09%7D%0A%7D%0A

Create BCMessage.java