This project has retired. For details please refer to its Attic page.
Source code
001/**
002 * Autogenerated by Avro
003 *
004 * DO NOT EDIT DIRECTLY
005 */
006package org.apache.reef.tang.implementation.avro;
007
008import org.apache.avro.specific.SpecificData;
009
010@SuppressWarnings("all")
011@org.apache.avro.specific.AvroGenerated
012public class AvroPackageNode extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
013  private static final long serialVersionUID = 3531940012920539895L;
014  public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"AvroPackageNode\",\"namespace\":\"org.apache.reef.tang.implementation.avro\",\"fields\":[]}");
015  public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
016
017  public org.apache.avro.Schema getSchema() { return SCHEMA$; }
018  // Used by DatumWriter.  Applications should not call.
019  public java.lang.Object get(int field$) {
020    switch (field$) {
021    default: throw new org.apache.avro.AvroRuntimeException("Bad index");
022    }
023  }
024
025  // Used by DatumReader.  Applications should not call.
026  @SuppressWarnings(value="unchecked")
027  public void put(int field$, java.lang.Object value$) {
028    switch (field$) {
029    default: throw new org.apache.avro.AvroRuntimeException("Bad index");
030    }
031  }
032
033  /**
034   * Creates a new AvroPackageNode RecordBuilder.
035   * @return A new AvroPackageNode RecordBuilder
036   */
037  public static org.apache.reef.tang.implementation.avro.AvroPackageNode.Builder newBuilder() {
038    return new org.apache.reef.tang.implementation.avro.AvroPackageNode.Builder();
039  }
040
041  /**
042   * Creates a new AvroPackageNode RecordBuilder by copying an existing Builder.
043   * @param other The existing builder to copy.
044   * @return A new AvroPackageNode RecordBuilder
045   */
046  public static org.apache.reef.tang.implementation.avro.AvroPackageNode.Builder newBuilder(org.apache.reef.tang.implementation.avro.AvroPackageNode.Builder other) {
047    return new org.apache.reef.tang.implementation.avro.AvroPackageNode.Builder(other);
048  }
049
050  /**
051   * Creates a new AvroPackageNode RecordBuilder by copying an existing AvroPackageNode instance.
052   * @param other The existing instance to copy.
053   * @return A new AvroPackageNode RecordBuilder
054   */
055  public static org.apache.reef.tang.implementation.avro.AvroPackageNode.Builder newBuilder(org.apache.reef.tang.implementation.avro.AvroPackageNode other) {
056    return new org.apache.reef.tang.implementation.avro.AvroPackageNode.Builder(other);
057  }
058
059  /**
060   * RecordBuilder for AvroPackageNode instances.
061   */
062  public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<AvroPackageNode>
063    implements org.apache.avro.data.RecordBuilder<AvroPackageNode> {
064
065
066    /** Creates a new Builder */
067    private Builder() {
068      super(SCHEMA$);
069    }
070
071    /**
072     * Creates a Builder by copying an existing Builder.
073     * @param other The existing Builder to copy.
074     */
075    private Builder(org.apache.reef.tang.implementation.avro.AvroPackageNode.Builder other) {
076      super(other);
077    }
078
079    /**
080     * Creates a Builder by copying an existing AvroPackageNode instance
081     * @param other The existing instance to copy.
082     */
083    private Builder(org.apache.reef.tang.implementation.avro.AvroPackageNode other) {
084            super(SCHEMA$);
085    }
086
087    @Override
088    public AvroPackageNode build() {
089      try {
090        AvroPackageNode record = new AvroPackageNode();
091        return record;
092      } catch (Exception e) {
093        throw new org.apache.avro.AvroRuntimeException(e);
094      }
095    }
096  }
097
098  private static final org.apache.avro.io.DatumWriter
099    WRITER$ = new org.apache.avro.specific.SpecificDatumWriter(SCHEMA$);
100
101  @Override public void writeExternal(java.io.ObjectOutput out)
102    throws java.io.IOException {
103    WRITER$.write(this, SpecificData.getEncoder(out));
104  }
105
106  private static final org.apache.avro.io.DatumReader
107    READER$ = new org.apache.avro.specific.SpecificDatumReader(SCHEMA$);
108
109  @Override public void readExternal(java.io.ObjectInput in)
110    throws java.io.IOException {
111    READER$.read(this, SpecificData.getDecoder(in));
112  }
113
114}