View Javadoc

1   package org.apache.hadoop.hbase.avro.generated;
2   
3   @SuppressWarnings("all")
4   public class AResultEntry extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
5     public static final org.apache.avro.Schema SCHEMA$ = org.apache.avro.Schema.parse("{\"type\":\"record\",\"name\":\"AResultEntry\",\"namespace\":\"org.apache.hadoop.hbase.avro.generated\",\"fields\":[{\"name\":\"family\",\"type\":\"bytes\"},{\"name\":\"qualifier\",\"type\":\"bytes\"},{\"name\":\"value\",\"type\":\"bytes\"},{\"name\":\"timestamp\",\"type\":\"long\"}]}");
6     public java.nio.ByteBuffer family;
7     public java.nio.ByteBuffer qualifier;
8     public java.nio.ByteBuffer value;
9     public long timestamp;
10    public org.apache.avro.Schema getSchema() { return SCHEMA$; }
11    public java.lang.Object get(int field$) {
12      switch (field$) {
13      case 0: return family;
14      case 1: return qualifier;
15      case 2: return value;
16      case 3: return timestamp;
17      default: throw new org.apache.avro.AvroRuntimeException("Bad index");
18      }
19    }
20    @SuppressWarnings(value="unchecked")
21    public void put(int field$, java.lang.Object value$) {
22      switch (field$) {
23      case 0: family = (java.nio.ByteBuffer)value$; break;
24      case 1: qualifier = (java.nio.ByteBuffer)value$; break;
25      case 2: value = (java.nio.ByteBuffer)value$; break;
26      case 3: timestamp = (java.lang.Long)value$; break;
27      default: throw new org.apache.avro.AvroRuntimeException("Bad index");
28      }
29    }
30  }