You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gora.apache.org by le...@apache.org on 2013/08/24 02:32:43 UTC

svn commit: r1517094 - in /gora/branches/GORA_94: gora-core/src/examples/java/org/apache/gora/examples/generated/ gora-tutorial/src/main/java/org/apache/gora/tutorial/log/generated/

Author: lewismc
Date: Sat Aug 24 00:32:42 2013
New Revision: 1517094

URL: http://svn.apache.org/r1517094
Log:
add webpage, tokendatum, metadata, pageview and metricdatum generated data beans for new compiler

Added:
    gora/branches/GORA_94/gora-core/src/examples/java/org/apache/gora/examples/generated/Metadata.java
    gora/branches/GORA_94/gora-core/src/examples/java/org/apache/gora/examples/generated/TokenDatum.java
    gora/branches/GORA_94/gora-core/src/examples/java/org/apache/gora/examples/generated/WebPage.java
    gora/branches/GORA_94/gora-tutorial/src/main/java/org/apache/gora/tutorial/log/generated/MetricDatum.java
    gora/branches/GORA_94/gora-tutorial/src/main/java/org/apache/gora/tutorial/log/generated/Pageview.java

Added: gora/branches/GORA_94/gora-core/src/examples/java/org/apache/gora/examples/generated/Metadata.java
URL: http://svn.apache.org/viewvc/gora/branches/GORA_94/gora-core/src/examples/java/org/apache/gora/examples/generated/Metadata.java?rev=1517094&view=auto
==============================================================================
--- gora/branches/GORA_94/gora-core/src/examples/java/org/apache/gora/examples/generated/Metadata.java (added)
+++ gora/branches/GORA_94/gora-core/src/examples/java/org/apache/gora/examples/generated/Metadata.java Sat Aug 24 00:32:42 2013
@@ -0,0 +1,280 @@
+/**
+ * Autogenerated by Avro
+ * 
+ * DO NOT EDIT DIRECTLY
+ */
+package org.apache.gora.examples.generated;  
+@SuppressWarnings("all")
+public class Metadata extends org.apache.gora.persistency.impl.PersistentBase implements org.apache.avro.specific.SpecificRecord, org.apache.gora.persistency.Persistent {
+  public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Metadata\",\"namespace\":\"org.apache.gora.examples.generated\",\"fields\":[{\"name\":\"__g__dirty\",\"type\":\"bytes\",\"doc\":\"Bytes used to represent weather or not a field is dirty.\",\"default\":\"AA==\"},{\"name\":\"version\",\"type\":\"int\"},{\"name\":\"data\",\"type\":{\"type\":\"map\",\"values\":\"string\"}}]}");
+  /** Bytes used to represent weather or not a field is dirty. */
+  private java.nio.ByteBuffer __g__dirty = java.nio.ByteBuffer.wrap(new byte[1]);
+  private int version;
+  private java.util.Map<java.lang.CharSequence,java.lang.CharSequence> data;
+  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 __g__dirty;
+    case 1: return version;
+    case 2: return data;
+    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: __g__dirty = (java.nio.ByteBuffer)value$; break;
+    case 1: version = (java.lang.Integer)value$; break;
+    case 2: data = (java.util.Map<java.lang.CharSequence,java.lang.CharSequence>)value$; break;
+    default: throw new org.apache.avro.AvroRuntimeException("Bad index");
+    }
+  }
+
+  /**
+   * Gets the value of the 'version' field.
+   */
+  public java.lang.Integer getVersion() {
+    return version;
+  }
+
+  /**
+   * Sets the value of the 'version' field.
+   * @param value the value to set.
+   */
+  public void setVersion(java.lang.Integer value) {
+    this.version = value;
+    setDirty(1);
+  }
+  
+  /**
+   * Checks the dirty status of the 'version' field. A field is dirty if it represents a change that has not yet been written to the database.
+   * @param value the value to set.
+   */
+  public boolean isVersionDirty(java.lang.Integer value) {
+    return isDirty(1);
+  }
+
+  /**
+   * Gets the value of the 'data' field.
+   */
+  public java.util.Map<java.lang.CharSequence,java.lang.CharSequence> getData() {
+    return data;
+  }
+
+  /**
+   * Sets the value of the 'data' field.
+   * @param value the value to set.
+   */
+  public void setData(java.util.Map<java.lang.CharSequence,java.lang.CharSequence> value) {
+    this.data = (value instanceof org.apache.gora.persistency.Dirtyable) ? value : new org.apache.gora.persistency.impl.DirtyMapWrapper(value);
+    setDirty(2);
+  }
+  
+  /**
+   * Checks the dirty status of the 'data' field. A field is dirty if it represents a change that has not yet been written to the database.
+   * @param value the value to set.
+   */
+  public boolean isDataDirty(java.util.Map<java.lang.CharSequence,java.lang.CharSequence> value) {
+    return isDirty(2);
+  }
+
+  /** Creates a new Metadata RecordBuilder */
+  public static org.apache.gora.examples.generated.Metadata.Builder newBuilder() {
+    return new org.apache.gora.examples.generated.Metadata.Builder();
+  }
+  
+  /** Creates a new Metadata RecordBuilder by copying an existing Builder */
+  public static org.apache.gora.examples.generated.Metadata.Builder newBuilder(org.apache.gora.examples.generated.Metadata.Builder other) {
+    return new org.apache.gora.examples.generated.Metadata.Builder(other);
+  }
+  
+  /** Creates a new Metadata RecordBuilder by copying an existing Metadata instance */
+  public static org.apache.gora.examples.generated.Metadata.Builder newBuilder(org.apache.gora.examples.generated.Metadata other) {
+    return new org.apache.gora.examples.generated.Metadata.Builder(other);
+  }
+  
+  private static java.nio.ByteBuffer deepCopyToWriteOnlyBuffer(
+      java.nio.ByteBuffer input) {
+    java.nio.ByteBuffer copy = java.nio.ByteBuffer.allocate(input.capacity());
+    int position = input.position();
+    input.reset();
+    int mark = input.position();
+    int limit = input.limit();
+    input.rewind();
+    input.limit(input.capacity());
+    copy.put(input);
+    input.rewind();
+    copy.rewind();
+    input.position(mark);
+    input.mark();
+    copy.position(mark);
+    copy.mark();
+    input.position(position);
+    copy.position(position);
+    input.limit(limit);
+    copy.limit(limit);
+    return copy.asReadOnlyBuffer();
+  }
+  
+  /**
+   * RecordBuilder for Metadata instances.
+   */
+  public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<Metadata>
+    implements org.apache.avro.data.RecordBuilder<Metadata> {
+
+    private java.nio.ByteBuffer __g__dirty;
+    private int version;
+    private java.util.Map<java.lang.CharSequence,java.lang.CharSequence> data;
+
+    /** Creates a new Builder */
+    private Builder() {
+      super(org.apache.gora.examples.generated.Metadata.SCHEMA$);
+    }
+    
+    /** Creates a Builder by copying an existing Builder */
+    private Builder(org.apache.gora.examples.generated.Metadata.Builder other) {
+      super(other);
+    }
+    
+    /** Creates a Builder by copying an existing Metadata instance */
+    private Builder(org.apache.gora.examples.generated.Metadata other) {
+            super(org.apache.gora.examples.generated.Metadata.SCHEMA$);
+      if (isValidValue(fields()[0], other.__g__dirty)) {
+        this.__g__dirty = (java.nio.ByteBuffer) data().deepCopy(fields()[0].schema(), other.__g__dirty);
+        fieldSetFlags()[0] = true;
+      }
+      if (isValidValue(fields()[1], other.version)) {
+        this.version = (java.lang.Integer) data().deepCopy(fields()[1].schema(), other.version);
+        fieldSetFlags()[1] = true;
+      }
+      if (isValidValue(fields()[2], other.data)) {
+        this.data = (java.util.Map<java.lang.CharSequence,java.lang.CharSequence>) data().deepCopy(fields()[2].schema(), other.data);
+        fieldSetFlags()[2] = true;
+      }
+    }
+
+    /** Gets the value of the 'version' field */
+    public java.lang.Integer getVersion() {
+      return version;
+    }
+    
+    /** Sets the value of the 'version' field */
+    public org.apache.gora.examples.generated.Metadata.Builder setVersion(int value) {
+      validate(fields()[1], value);
+      this.version = value;
+      fieldSetFlags()[1] = true;
+      return this; 
+    }
+    
+    /** Checks whether the 'version' field has been set */
+    public boolean hasVersion() {
+      return fieldSetFlags()[1];
+    }
+    
+    /** Clears the value of the 'version' field */
+    public org.apache.gora.examples.generated.Metadata.Builder clearVersion() {
+      fieldSetFlags()[1] = false;
+      return this;
+    }
+    
+    /** Gets the value of the 'data' field */
+    public java.util.Map<java.lang.CharSequence,java.lang.CharSequence> getData() {
+      return data;
+    }
+    
+    /** Sets the value of the 'data' field */
+    public org.apache.gora.examples.generated.Metadata.Builder setData(java.util.Map<java.lang.CharSequence,java.lang.CharSequence> value) {
+      validate(fields()[2], value);
+      this.data = value;
+      fieldSetFlags()[2] = true;
+      return this; 
+    }
+    
+    /** Checks whether the 'data' field has been set */
+    public boolean hasData() {
+      return fieldSetFlags()[2];
+    }
+    
+    /** Clears the value of the 'data' field */
+    public org.apache.gora.examples.generated.Metadata.Builder clearData() {
+      data = null;
+      fieldSetFlags()[2] = false;
+      return this;
+    }
+    
+    @Override
+    public Metadata build() {
+      try {
+        Metadata record = new Metadata();
+        record.__g__dirty = fieldSetFlags()[0] ? this.__g__dirty : (java.nio.ByteBuffer) defaultValue(fields()[0]);
+        record.version = fieldSetFlags()[1] ? this.version : (java.lang.Integer) defaultValue(fields()[1]);
+        record.data = fieldSetFlags()[2] ? this.data : (java.util.Map<java.lang.CharSequence,java.lang.CharSequence>) defaultValue(fields()[2]);
+        return record;
+      } catch (Exception e) {
+        throw new org.apache.avro.AvroRuntimeException(e);
+      }
+    }
+  }
+  
+  public Metadata.Tombstone getTombstone(){
+  	return TOMBSTONE;
+  }
+
+  private static final Tombstone TOMBSTONE = new Tombstone();
+  
+  public static final class Tombstone extends Metadata implements org.apache.gora.persistency.Tombstone {
+  
+      private Tombstone() { }
+  
+	  				  /**
+	   * Gets the value of the 'version' field.
+		   */
+	  public java.lang.Integer getVersion() {
+	    throw new java.lang.UnsupportedOperationException("Get is not supported on tombstones");
+	  }
+	
+	  /**
+	   * Sets the value of the 'version' field.
+		   * @param value the value to set.
+	   */
+	  public void setVersion(java.lang.Integer value) {
+	    throw new java.lang.UnsupportedOperationException("Set is not supported on tombstones");
+	  }
+	  
+	  /**
+	   * Checks the dirty status of the 'version' field. A field is dirty if it represents a change that has not yet been written to the database.
+		   * @param value the value to set.
+	   */
+	  public boolean isVersionDirty(java.lang.Integer value) {
+	    throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
+	  }
+	
+				  /**
+	   * Gets the value of the 'data' field.
+		   */
+	  public java.util.Map<java.lang.CharSequence,java.lang.CharSequence> getData() {
+	    throw new java.lang.UnsupportedOperationException("Get is not supported on tombstones");
+	  }
+	
+	  /**
+	   * Sets the value of the 'data' field.
+		   * @param value the value to set.
+	   */
+	  public void setData(java.util.Map<java.lang.CharSequence,java.lang.CharSequence> value) {
+	    throw new java.lang.UnsupportedOperationException("Set is not supported on tombstones");
+	  }
+	  
+	  /**
+	   * Checks the dirty status of the 'data' field. A field is dirty if it represents a change that has not yet been written to the database.
+		   * @param value the value to set.
+	   */
+	  public boolean isDataDirty(java.util.Map<java.lang.CharSequence,java.lang.CharSequence> value) {
+	    throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
+	  }
+	
+		  
+  }
+  
+}
\ No newline at end of file

Added: gora/branches/GORA_94/gora-core/src/examples/java/org/apache/gora/examples/generated/TokenDatum.java
URL: http://svn.apache.org/viewvc/gora/branches/GORA_94/gora-core/src/examples/java/org/apache/gora/examples/generated/TokenDatum.java?rev=1517094&view=auto
==============================================================================
--- gora/branches/GORA_94/gora-core/src/examples/java/org/apache/gora/examples/generated/TokenDatum.java (added)
+++ gora/branches/GORA_94/gora-core/src/examples/java/org/apache/gora/examples/generated/TokenDatum.java Sat Aug 24 00:32:42 2013
@@ -0,0 +1,199 @@
+/**
+ * Autogenerated by Avro
+ * 
+ * DO NOT EDIT DIRECTLY
+ */
+package org.apache.gora.examples.generated;  
+@SuppressWarnings("all")
+public class TokenDatum extends org.apache.gora.persistency.impl.PersistentBase implements org.apache.avro.specific.SpecificRecord, org.apache.gora.persistency.Persistent {
+  public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"TokenDatum\",\"namespace\":\"org.apache.gora.examples.generated\",\"fields\":[{\"name\":\"__g__dirty\",\"type\":\"bytes\",\"doc\":\"Bytes used to represent weather or not a field is dirty.\",\"default\":\"AA==\"},{\"name\":\"count\",\"type\":\"int\"}]}");
+  /** Bytes used to represent weather or not a field is dirty. */
+  private java.nio.ByteBuffer __g__dirty = java.nio.ByteBuffer.wrap(new byte[1]);
+  private int count;
+  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 __g__dirty;
+    case 1: return count;
+    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: __g__dirty = (java.nio.ByteBuffer)value$; break;
+    case 1: count = (java.lang.Integer)value$; break;
+    default: throw new org.apache.avro.AvroRuntimeException("Bad index");
+    }
+  }
+
+  /**
+   * Gets the value of the 'count' field.
+   */
+  public java.lang.Integer getCount() {
+    return count;
+  }
+
+  /**
+   * Sets the value of the 'count' field.
+   * @param value the value to set.
+   */
+  public void setCount(java.lang.Integer value) {
+    this.count = value;
+    setDirty(1);
+  }
+  
+  /**
+   * Checks the dirty status of the 'count' field. A field is dirty if it represents a change that has not yet been written to the database.
+   * @param value the value to set.
+   */
+  public boolean isCountDirty(java.lang.Integer value) {
+    return isDirty(1);
+  }
+
+  /** Creates a new TokenDatum RecordBuilder */
+  public static org.apache.gora.examples.generated.TokenDatum.Builder newBuilder() {
+    return new org.apache.gora.examples.generated.TokenDatum.Builder();
+  }
+  
+  /** Creates a new TokenDatum RecordBuilder by copying an existing Builder */
+  public static org.apache.gora.examples.generated.TokenDatum.Builder newBuilder(org.apache.gora.examples.generated.TokenDatum.Builder other) {
+    return new org.apache.gora.examples.generated.TokenDatum.Builder(other);
+  }
+  
+  /** Creates a new TokenDatum RecordBuilder by copying an existing TokenDatum instance */
+  public static org.apache.gora.examples.generated.TokenDatum.Builder newBuilder(org.apache.gora.examples.generated.TokenDatum other) {
+    return new org.apache.gora.examples.generated.TokenDatum.Builder(other);
+  }
+  
+  private static java.nio.ByteBuffer deepCopyToWriteOnlyBuffer(
+      java.nio.ByteBuffer input) {
+    java.nio.ByteBuffer copy = java.nio.ByteBuffer.allocate(input.capacity());
+    int position = input.position();
+    input.reset();
+    int mark = input.position();
+    int limit = input.limit();
+    input.rewind();
+    input.limit(input.capacity());
+    copy.put(input);
+    input.rewind();
+    copy.rewind();
+    input.position(mark);
+    input.mark();
+    copy.position(mark);
+    copy.mark();
+    input.position(position);
+    copy.position(position);
+    input.limit(limit);
+    copy.limit(limit);
+    return copy.asReadOnlyBuffer();
+  }
+  
+  /**
+   * RecordBuilder for TokenDatum instances.
+   */
+  public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<TokenDatum>
+    implements org.apache.avro.data.RecordBuilder<TokenDatum> {
+
+    private java.nio.ByteBuffer __g__dirty;
+    private int count;
+
+    /** Creates a new Builder */
+    private Builder() {
+      super(org.apache.gora.examples.generated.TokenDatum.SCHEMA$);
+    }
+    
+    /** Creates a Builder by copying an existing Builder */
+    private Builder(org.apache.gora.examples.generated.TokenDatum.Builder other) {
+      super(other);
+    }
+    
+    /** Creates a Builder by copying an existing TokenDatum instance */
+    private Builder(org.apache.gora.examples.generated.TokenDatum other) {
+            super(org.apache.gora.examples.generated.TokenDatum.SCHEMA$);
+      if (isValidValue(fields()[0], other.__g__dirty)) {
+        this.__g__dirty = (java.nio.ByteBuffer) data().deepCopy(fields()[0].schema(), other.__g__dirty);
+        fieldSetFlags()[0] = true;
+      }
+      if (isValidValue(fields()[1], other.count)) {
+        this.count = (java.lang.Integer) data().deepCopy(fields()[1].schema(), other.count);
+        fieldSetFlags()[1] = true;
+      }
+    }
+
+    /** Gets the value of the 'count' field */
+    public java.lang.Integer getCount() {
+      return count;
+    }
+    
+    /** Sets the value of the 'count' field */
+    public org.apache.gora.examples.generated.TokenDatum.Builder setCount(int value) {
+      validate(fields()[1], value);
+      this.count = value;
+      fieldSetFlags()[1] = true;
+      return this; 
+    }
+    
+    /** Checks whether the 'count' field has been set */
+    public boolean hasCount() {
+      return fieldSetFlags()[1];
+    }
+    
+    /** Clears the value of the 'count' field */
+    public org.apache.gora.examples.generated.TokenDatum.Builder clearCount() {
+      fieldSetFlags()[1] = false;
+      return this;
+    }
+    
+    @Override
+    public TokenDatum build() {
+      try {
+        TokenDatum record = new TokenDatum();
+        record.__g__dirty = fieldSetFlags()[0] ? this.__g__dirty : (java.nio.ByteBuffer) defaultValue(fields()[0]);
+        record.count = fieldSetFlags()[1] ? this.count : (java.lang.Integer) defaultValue(fields()[1]);
+        return record;
+      } catch (Exception e) {
+        throw new org.apache.avro.AvroRuntimeException(e);
+      }
+    }
+  }
+  
+  public TokenDatum.Tombstone getTombstone(){
+  	return TOMBSTONE;
+  }
+
+  private static final Tombstone TOMBSTONE = new Tombstone();
+  
+  public static final class Tombstone extends TokenDatum implements org.apache.gora.persistency.Tombstone {
+  
+      private Tombstone() { }
+  
+	  				  /**
+	   * Gets the value of the 'count' field.
+		   */
+	  public java.lang.Integer getCount() {
+	    throw new java.lang.UnsupportedOperationException("Get is not supported on tombstones");
+	  }
+	
+	  /**
+	   * Sets the value of the 'count' field.
+		   * @param value the value to set.
+	   */
+	  public void setCount(java.lang.Integer value) {
+	    throw new java.lang.UnsupportedOperationException("Set is not supported on tombstones");
+	  }
+	  
+	  /**
+	   * Checks the dirty status of the 'count' field. A field is dirty if it represents a change that has not yet been written to the database.
+		   * @param value the value to set.
+	   */
+	  public boolean isCountDirty(java.lang.Integer value) {
+	    throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
+	  }
+	
+		  
+  }
+  
+}
\ No newline at end of file

Added: gora/branches/GORA_94/gora-core/src/examples/java/org/apache/gora/examples/generated/WebPage.java
URL: http://svn.apache.org/viewvc/gora/branches/GORA_94/gora-core/src/examples/java/org/apache/gora/examples/generated/WebPage.java?rev=1517094&view=auto
==============================================================================
--- gora/branches/GORA_94/gora-core/src/examples/java/org/apache/gora/examples/generated/WebPage.java (added)
+++ gora/branches/GORA_94/gora-core/src/examples/java/org/apache/gora/examples/generated/WebPage.java Sat Aug 24 00:32:42 2013
@@ -0,0 +1,524 @@
+/**
+ * Autogenerated by Avro
+ * 
+ * DO NOT EDIT DIRECTLY
+ */
+package org.apache.gora.examples.generated;  
+@SuppressWarnings("all")
+public class WebPage extends org.apache.gora.persistency.impl.PersistentBase implements org.apache.avro.specific.SpecificRecord, org.apache.gora.persistency.Persistent {
+  public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"WebPage\",\"namespace\":\"org.apache.gora.examples.generated\",\"fields\":[{\"name\":\"__g__dirty\",\"type\":\"bytes\",\"doc\":\"Bytes used to represent weather or not a field is dirty.\",\"default\":\"AA==\"},{\"name\":\"url\",\"type\":\"string\"},{\"name\":\"content\",\"type\":[\"null\",\"bytes\"]},{\"name\":\"parsedContent\",\"type\":{\"type\":\"array\",\"items\":\"string\"}},{\"name\":\"outlinks\",\"type\":{\"type\":\"map\",\"values\":\"string\"}},{\"name\":\"metadata\",\"type\":{\"type\":\"record\",\"name\":\"Metadata\",\"fields\":[{\"name\":\"__g__dirty\",\"type\":\"bytes\",\"doc\":\"Bytes used to represent weather or not a field is dirty.\",\"default\":\"AA==\"},{\"name\":\"version\",\"type\":\"int\"},{\"name\":\"data\",\"type\":{\"type\":\"map\",\"values\":\"string\"}}]}}]}");
+  /** Bytes used to represent weather or not a field is dirty. */
+  private java.nio.ByteBuffer __g__dirty = java.nio.ByteBuffer.wrap(new byte[1]);
+  private java.lang.CharSequence url;
+  private java.nio.ByteBuffer content;
+  private java.util.List<java.lang.CharSequence> parsedContent;
+  private java.util.Map<java.lang.CharSequence,java.lang.CharSequence> outlinks;
+  private org.apache.gora.examples.generated.Metadata metadata;
+  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 __g__dirty;
+    case 1: return url;
+    case 2: return content;
+    case 3: return parsedContent;
+    case 4: return outlinks;
+    case 5: return metadata;
+    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: __g__dirty = (java.nio.ByteBuffer)value$; break;
+    case 1: url = (java.lang.CharSequence)value$; break;
+    case 2: content = (java.nio.ByteBuffer)value$; break;
+    case 3: parsedContent = (java.util.List<java.lang.CharSequence>)value$; break;
+    case 4: outlinks = (java.util.Map<java.lang.CharSequence,java.lang.CharSequence>)value$; break;
+    case 5: metadata = (org.apache.gora.examples.generated.Metadata)value$; break;
+    default: throw new org.apache.avro.AvroRuntimeException("Bad index");
+    }
+  }
+
+  /**
+   * Gets the value of the 'url' field.
+   */
+  public java.lang.CharSequence getUrl() {
+    return url.toString();
+  }
+
+  /**
+   * Sets the value of the 'url' field.
+   * @param value the value to set.
+   */
+  public void setUrl(java.lang.CharSequence value) {
+    this.url = value.toString();
+    setDirty(1);
+  }
+  
+  /**
+   * Checks the dirty status of the 'url' field. A field is dirty if it represents a change that has not yet been written to the database.
+   * @param value the value to set.
+   */
+  public boolean isUrlDirty(java.lang.CharSequence value) {
+    return isDirty(1);
+  }
+
+  /**
+   * Gets the value of the 'content' field.
+   */
+  public java.nio.ByteBuffer getContent() {
+    return content;
+  }
+
+  /**
+   * Sets the value of the 'content' field.
+   * @param value the value to set.
+   */
+  public void setContent(java.nio.ByteBuffer value) {
+    this.content = value;
+    setDirty(2);
+  }
+  
+  /**
+   * Checks the dirty status of the 'content' field. A field is dirty if it represents a change that has not yet been written to the database.
+   * @param value the value to set.
+   */
+  public boolean isContentDirty(java.nio.ByteBuffer value) {
+    return isDirty(2);
+  }
+
+  /**
+   * Gets the value of the 'parsedContent' field.
+   */
+  public java.util.List<java.lang.CharSequence> getParsedContent() {
+    return parsedContent;
+  }
+
+  /**
+   * Sets the value of the 'parsedContent' field.
+   * @param value the value to set.
+   */
+  public void setParsedContent(java.util.List<java.lang.CharSequence> value) {
+    this.parsedContent = (value instanceof org.apache.gora.persistency.Dirtyable) ? value : new org.apache.gora.persistency.impl.DirtyListWrapper(value);
+    setDirty(3);
+  }
+  
+  /**
+   * Checks the dirty status of the 'parsedContent' field. A field is dirty if it represents a change that has not yet been written to the database.
+   * @param value the value to set.
+   */
+  public boolean isParsedContentDirty(java.util.List<java.lang.CharSequence> value) {
+    return isDirty(3);
+  }
+
+  /**
+   * Gets the value of the 'outlinks' field.
+   */
+  public java.util.Map<java.lang.CharSequence,java.lang.CharSequence> getOutlinks() {
+    return outlinks;
+  }
+
+  /**
+   * Sets the value of the 'outlinks' field.
+   * @param value the value to set.
+   */
+  public void setOutlinks(java.util.Map<java.lang.CharSequence,java.lang.CharSequence> value) {
+    this.outlinks = (value instanceof org.apache.gora.persistency.Dirtyable) ? value : new org.apache.gora.persistency.impl.DirtyMapWrapper(value);
+    setDirty(4);
+  }
+  
+  /**
+   * Checks the dirty status of the 'outlinks' field. A field is dirty if it represents a change that has not yet been written to the database.
+   * @param value the value to set.
+   */
+  public boolean isOutlinksDirty(java.util.Map<java.lang.CharSequence,java.lang.CharSequence> value) {
+    return isDirty(4);
+  }
+
+  /**
+   * Gets the value of the 'metadata' field.
+   */
+  public org.apache.gora.examples.generated.Metadata getMetadata() {
+    return metadata;
+  }
+
+  /**
+   * Sets the value of the 'metadata' field.
+   * @param value the value to set.
+   */
+  public void setMetadata(org.apache.gora.examples.generated.Metadata value) {
+    this.metadata = value;
+    setDirty(5);
+  }
+  
+  /**
+   * Checks the dirty status of the 'metadata' field. A field is dirty if it represents a change that has not yet been written to the database.
+   * @param value the value to set.
+   */
+  public boolean isMetadataDirty(org.apache.gora.examples.generated.Metadata value) {
+    return isDirty(5);
+  }
+
+  /** Creates a new WebPage RecordBuilder */
+  public static org.apache.gora.examples.generated.WebPage.Builder newBuilder() {
+    return new org.apache.gora.examples.generated.WebPage.Builder();
+  }
+  
+  /** Creates a new WebPage RecordBuilder by copying an existing Builder */
+  public static org.apache.gora.examples.generated.WebPage.Builder newBuilder(org.apache.gora.examples.generated.WebPage.Builder other) {
+    return new org.apache.gora.examples.generated.WebPage.Builder(other);
+  }
+  
+  /** Creates a new WebPage RecordBuilder by copying an existing WebPage instance */
+  public static org.apache.gora.examples.generated.WebPage.Builder newBuilder(org.apache.gora.examples.generated.WebPage other) {
+    return new org.apache.gora.examples.generated.WebPage.Builder(other);
+  }
+  
+  private static java.nio.ByteBuffer deepCopyToWriteOnlyBuffer(
+      java.nio.ByteBuffer input) {
+    java.nio.ByteBuffer copy = java.nio.ByteBuffer.allocate(input.capacity());
+    int position = input.position();
+    input.reset();
+    int mark = input.position();
+    int limit = input.limit();
+    input.rewind();
+    input.limit(input.capacity());
+    copy.put(input);
+    input.rewind();
+    copy.rewind();
+    input.position(mark);
+    input.mark();
+    copy.position(mark);
+    copy.mark();
+    input.position(position);
+    copy.position(position);
+    input.limit(limit);
+    copy.limit(limit);
+    return copy.asReadOnlyBuffer();
+  }
+  
+  /**
+   * RecordBuilder for WebPage instances.
+   */
+  public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<WebPage>
+    implements org.apache.avro.data.RecordBuilder<WebPage> {
+
+    private java.nio.ByteBuffer __g__dirty;
+    private java.lang.CharSequence url;
+    private java.nio.ByteBuffer content;
+    private java.util.List<java.lang.CharSequence> parsedContent;
+    private java.util.Map<java.lang.CharSequence,java.lang.CharSequence> outlinks;
+    private org.apache.gora.examples.generated.Metadata metadata;
+
+    /** Creates a new Builder */
+    private Builder() {
+      super(org.apache.gora.examples.generated.WebPage.SCHEMA$);
+    }
+    
+    /** Creates a Builder by copying an existing Builder */
+    private Builder(org.apache.gora.examples.generated.WebPage.Builder other) {
+      super(other);
+    }
+    
+    /** Creates a Builder by copying an existing WebPage instance */
+    private Builder(org.apache.gora.examples.generated.WebPage other) {
+            super(org.apache.gora.examples.generated.WebPage.SCHEMA$);
+      if (isValidValue(fields()[0], other.__g__dirty)) {
+        this.__g__dirty = (java.nio.ByteBuffer) data().deepCopy(fields()[0].schema(), other.__g__dirty);
+        fieldSetFlags()[0] = true;
+      }
+      if (isValidValue(fields()[1], other.url)) {
+        this.url = (java.lang.CharSequence) data().deepCopy(fields()[1].schema(), other.url);
+        fieldSetFlags()[1] = true;
+      }
+      if (isValidValue(fields()[2], other.content)) {
+        this.content = (java.nio.ByteBuffer) data().deepCopy(fields()[2].schema(), other.content);
+        fieldSetFlags()[2] = true;
+      }
+      if (isValidValue(fields()[3], other.parsedContent)) {
+        this.parsedContent = (java.util.List<java.lang.CharSequence>) data().deepCopy(fields()[3].schema(), other.parsedContent);
+        fieldSetFlags()[3] = true;
+      }
+      if (isValidValue(fields()[4], other.outlinks)) {
+        this.outlinks = (java.util.Map<java.lang.CharSequence,java.lang.CharSequence>) data().deepCopy(fields()[4].schema(), other.outlinks);
+        fieldSetFlags()[4] = true;
+      }
+      if (isValidValue(fields()[5], other.metadata)) {
+        this.metadata = (org.apache.gora.examples.generated.Metadata) data().deepCopy(fields()[5].schema(), other.metadata);
+        fieldSetFlags()[5] = true;
+      }
+    }
+
+    /** Gets the value of the 'url' field */
+    public java.lang.CharSequence getUrl() {
+      return url;
+    }
+    
+    /** Sets the value of the 'url' field */
+    public org.apache.gora.examples.generated.WebPage.Builder setUrl(java.lang.CharSequence value) {
+      validate(fields()[1], value);
+      this.url = value;
+      fieldSetFlags()[1] = true;
+      return this; 
+    }
+    
+    /** Checks whether the 'url' field has been set */
+    public boolean hasUrl() {
+      return fieldSetFlags()[1];
+    }
+    
+    /** Clears the value of the 'url' field */
+    public org.apache.gora.examples.generated.WebPage.Builder clearUrl() {
+      url = null;
+      fieldSetFlags()[1] = false;
+      return this;
+    }
+    
+    /** Gets the value of the 'content' field */
+    public java.nio.ByteBuffer getContent() {
+      return content;
+    }
+    
+    /** Sets the value of the 'content' field */
+    public org.apache.gora.examples.generated.WebPage.Builder setContent(java.nio.ByteBuffer value) {
+      validate(fields()[2], value);
+      this.content = value;
+      fieldSetFlags()[2] = true;
+      return this; 
+    }
+    
+    /** Checks whether the 'content' field has been set */
+    public boolean hasContent() {
+      return fieldSetFlags()[2];
+    }
+    
+    /** Clears the value of the 'content' field */
+    public org.apache.gora.examples.generated.WebPage.Builder clearContent() {
+      content = null;
+      fieldSetFlags()[2] = false;
+      return this;
+    }
+    
+    /** Gets the value of the 'parsedContent' field */
+    public java.util.List<java.lang.CharSequence> getParsedContent() {
+      return parsedContent;
+    }
+    
+    /** Sets the value of the 'parsedContent' field */
+    public org.apache.gora.examples.generated.WebPage.Builder setParsedContent(java.util.List<java.lang.CharSequence> value) {
+      validate(fields()[3], value);
+      this.parsedContent = value;
+      fieldSetFlags()[3] = true;
+      return this; 
+    }
+    
+    /** Checks whether the 'parsedContent' field has been set */
+    public boolean hasParsedContent() {
+      return fieldSetFlags()[3];
+    }
+    
+    /** Clears the value of the 'parsedContent' field */
+    public org.apache.gora.examples.generated.WebPage.Builder clearParsedContent() {
+      parsedContent = null;
+      fieldSetFlags()[3] = false;
+      return this;
+    }
+    
+    /** Gets the value of the 'outlinks' field */
+    public java.util.Map<java.lang.CharSequence,java.lang.CharSequence> getOutlinks() {
+      return outlinks;
+    }
+    
+    /** Sets the value of the 'outlinks' field */
+    public org.apache.gora.examples.generated.WebPage.Builder setOutlinks(java.util.Map<java.lang.CharSequence,java.lang.CharSequence> value) {
+      validate(fields()[4], value);
+      this.outlinks = value;
+      fieldSetFlags()[4] = true;
+      return this; 
+    }
+    
+    /** Checks whether the 'outlinks' field has been set */
+    public boolean hasOutlinks() {
+      return fieldSetFlags()[4];
+    }
+    
+    /** Clears the value of the 'outlinks' field */
+    public org.apache.gora.examples.generated.WebPage.Builder clearOutlinks() {
+      outlinks = null;
+      fieldSetFlags()[4] = false;
+      return this;
+    }
+    
+    /** Gets the value of the 'metadata' field */
+    public org.apache.gora.examples.generated.Metadata getMetadata() {
+      return metadata;
+    }
+    
+    /** Sets the value of the 'metadata' field */
+    public org.apache.gora.examples.generated.WebPage.Builder setMetadata(org.apache.gora.examples.generated.Metadata value) {
+      validate(fields()[5], value);
+      this.metadata = value;
+      fieldSetFlags()[5] = true;
+      return this; 
+    }
+    
+    /** Checks whether the 'metadata' field has been set */
+    public boolean hasMetadata() {
+      return fieldSetFlags()[5];
+    }
+    
+    /** Clears the value of the 'metadata' field */
+    public org.apache.gora.examples.generated.WebPage.Builder clearMetadata() {
+      metadata = null;
+      fieldSetFlags()[5] = false;
+      return this;
+    }
+    
+    @Override
+    public WebPage build() {
+      try {
+        WebPage record = new WebPage();
+        record.__g__dirty = fieldSetFlags()[0] ? this.__g__dirty : (java.nio.ByteBuffer) defaultValue(fields()[0]);
+        record.url = fieldSetFlags()[1] ? this.url : (java.lang.CharSequence) defaultValue(fields()[1]);
+        record.content = fieldSetFlags()[2] ? this.content : (java.nio.ByteBuffer) defaultValue(fields()[2]);
+        record.parsedContent = fieldSetFlags()[3] ? this.parsedContent : (java.util.List<java.lang.CharSequence>) defaultValue(fields()[3]);
+        record.outlinks = fieldSetFlags()[4] ? this.outlinks : (java.util.Map<java.lang.CharSequence,java.lang.CharSequence>) defaultValue(fields()[4]);
+        record.metadata = fieldSetFlags()[5] ? this.metadata : (org.apache.gora.examples.generated.Metadata) defaultValue(fields()[5]);
+        return record;
+      } catch (Exception e) {
+        throw new org.apache.avro.AvroRuntimeException(e);
+      }
+    }
+  }
+  
+  public WebPage.Tombstone getTombstone(){
+  	return TOMBSTONE;
+  }
+
+  private static final Tombstone TOMBSTONE = new Tombstone();
+  
+  public static final class Tombstone extends WebPage implements org.apache.gora.persistency.Tombstone {
+  
+      private Tombstone() { }
+  
+	  				  /**
+	   * Gets the value of the 'url' field.
+		   */
+	  public java.lang.CharSequence getUrl() {
+	    throw new java.lang.UnsupportedOperationException("Get is not supported on tombstones");
+	  }
+	
+	  /**
+	   * Sets the value of the 'url' field.
+		   * @param value the value to set.
+	   */
+	  public void setUrl(java.lang.CharSequence value) {
+	    throw new java.lang.UnsupportedOperationException("Set is not supported on tombstones");
+	  }
+	  
+	  /**
+	   * Checks the dirty status of the 'url' field. A field is dirty if it represents a change that has not yet been written to the database.
+		   * @param value the value to set.
+	   */
+	  public boolean isUrlDirty(java.lang.CharSequence value) {
+	    throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
+	  }
+	
+				  /**
+	   * Gets the value of the 'content' field.
+		   */
+	  public java.nio.ByteBuffer getContent() {
+	    throw new java.lang.UnsupportedOperationException("Get is not supported on tombstones");
+	  }
+	
+	  /**
+	   * Sets the value of the 'content' field.
+		   * @param value the value to set.
+	   */
+	  public void setContent(java.nio.ByteBuffer value) {
+	    throw new java.lang.UnsupportedOperationException("Set is not supported on tombstones");
+	  }
+	  
+	  /**
+	   * Checks the dirty status of the 'content' field. A field is dirty if it represents a change that has not yet been written to the database.
+		   * @param value the value to set.
+	   */
+	  public boolean isContentDirty(java.nio.ByteBuffer value) {
+	    throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
+	  }
+	
+				  /**
+	   * Gets the value of the 'parsedContent' field.
+		   */
+	  public java.util.List<java.lang.CharSequence> getParsedContent() {
+	    throw new java.lang.UnsupportedOperationException("Get is not supported on tombstones");
+	  }
+	
+	  /**
+	   * Sets the value of the 'parsedContent' field.
+		   * @param value the value to set.
+	   */
+	  public void setParsedContent(java.util.List<java.lang.CharSequence> value) {
+	    throw new java.lang.UnsupportedOperationException("Set is not supported on tombstones");
+	  }
+	  
+	  /**
+	   * Checks the dirty status of the 'parsedContent' field. A field is dirty if it represents a change that has not yet been written to the database.
+		   * @param value the value to set.
+	   */
+	  public boolean isParsedContentDirty(java.util.List<java.lang.CharSequence> value) {
+	    throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
+	  }
+	
+				  /**
+	   * Gets the value of the 'outlinks' field.
+		   */
+	  public java.util.Map<java.lang.CharSequence,java.lang.CharSequence> getOutlinks() {
+	    throw new java.lang.UnsupportedOperationException("Get is not supported on tombstones");
+	  }
+	
+	  /**
+	   * Sets the value of the 'outlinks' field.
+		   * @param value the value to set.
+	   */
+	  public void setOutlinks(java.util.Map<java.lang.CharSequence,java.lang.CharSequence> value) {
+	    throw new java.lang.UnsupportedOperationException("Set is not supported on tombstones");
+	  }
+	  
+	  /**
+	   * Checks the dirty status of the 'outlinks' field. A field is dirty if it represents a change that has not yet been written to the database.
+		   * @param value the value to set.
+	   */
+	  public boolean isOutlinksDirty(java.util.Map<java.lang.CharSequence,java.lang.CharSequence> value) {
+	    throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
+	  }
+	
+				  /**
+	   * Gets the value of the 'metadata' field.
+		   */
+	  public org.apache.gora.examples.generated.Metadata getMetadata() {
+	    throw new java.lang.UnsupportedOperationException("Get is not supported on tombstones");
+	  }
+	
+	  /**
+	   * Sets the value of the 'metadata' field.
+		   * @param value the value to set.
+	   */
+	  public void setMetadata(org.apache.gora.examples.generated.Metadata value) {
+	    throw new java.lang.UnsupportedOperationException("Set is not supported on tombstones");
+	  }
+	  
+	  /**
+	   * Checks the dirty status of the 'metadata' field. A field is dirty if it represents a change that has not yet been written to the database.
+		   * @param value the value to set.
+	   */
+	  public boolean isMetadataDirty(org.apache.gora.examples.generated.Metadata value) {
+	    throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
+	  }
+	
+		  
+  }
+  
+}
\ No newline at end of file

Added: gora/branches/GORA_94/gora-tutorial/src/main/java/org/apache/gora/tutorial/log/generated/MetricDatum.java
URL: http://svn.apache.org/viewvc/gora/branches/GORA_94/gora-tutorial/src/main/java/org/apache/gora/tutorial/log/generated/MetricDatum.java?rev=1517094&view=auto
==============================================================================
--- gora/branches/GORA_94/gora-tutorial/src/main/java/org/apache/gora/tutorial/log/generated/MetricDatum.java (added)
+++ gora/branches/GORA_94/gora-tutorial/src/main/java/org/apache/gora/tutorial/log/generated/MetricDatum.java Sat Aug 24 00:32:42 2013
@@ -0,0 +1,360 @@
+/**
+ * Autogenerated by Avro
+ * 
+ * DO NOT EDIT DIRECTLY
+ */
+package org.apache.gora.tutorial.log.generated;  
+@SuppressWarnings("all")
+public class MetricDatum extends org.apache.gora.persistency.impl.PersistentBase implements org.apache.avro.specific.SpecificRecord, org.apache.gora.persistency.Persistent {
+  public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"MetricDatum\",\"namespace\":\"org.apache.gora.tutorial.log.generated\",\"fields\":[{\"name\":\"__g__dirty\",\"type\":\"bytes\",\"doc\":\"Bytes used to represent weather or not a field is dirty.\",\"default\":\"AA==\"},{\"name\":\"metricDimension\",\"type\":\"string\"},{\"name\":\"timestamp\",\"type\":\"long\"},{\"name\":\"metric\",\"type\":\"long\"}]}");
+  /** Bytes used to represent weather or not a field is dirty. */
+  private java.nio.ByteBuffer __g__dirty = java.nio.ByteBuffer.wrap(new byte[1]);
+  private java.lang.CharSequence metricDimension;
+  private long timestamp;
+  private long metric;
+  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 __g__dirty;
+    case 1: return metricDimension;
+    case 2: return timestamp;
+    case 3: return metric;
+    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: __g__dirty = (java.nio.ByteBuffer)value$; break;
+    case 1: metricDimension = (java.lang.CharSequence)value$; break;
+    case 2: timestamp = (java.lang.Long)value$; break;
+    case 3: metric = (java.lang.Long)value$; break;
+    default: throw new org.apache.avro.AvroRuntimeException("Bad index");
+    }
+  }
+
+  /**
+   * Gets the value of the 'metricDimension' field.
+   */
+  public java.lang.CharSequence getMetricDimension() {
+    return metricDimension.toString();
+  }
+
+  /**
+   * Sets the value of the 'metricDimension' field.
+   * @param value the value to set.
+   */
+  public void setMetricDimension(java.lang.CharSequence value) {
+    this.metricDimension = value.toString();
+    setDirty(1);
+  }
+  
+  /**
+   * Checks the dirty status of the 'metricDimension' field. A field is dirty if it represents a change that has not yet been written to the database.
+   * @param value the value to set.
+   */
+  public boolean isMetricDimensionDirty(java.lang.CharSequence value) {
+    return isDirty(1);
+  }
+
+  /**
+   * Gets the value of the 'timestamp' field.
+   */
+  public java.lang.Long getTimestamp() {
+    return timestamp;
+  }
+
+  /**
+   * Sets the value of the 'timestamp' field.
+   * @param value the value to set.
+   */
+  public void setTimestamp(java.lang.Long value) {
+    this.timestamp = value;
+    setDirty(2);
+  }
+  
+  /**
+   * Checks the dirty status of the 'timestamp' field. A field is dirty if it represents a change that has not yet been written to the database.
+   * @param value the value to set.
+   */
+  public boolean isTimestampDirty(java.lang.Long value) {
+    return isDirty(2);
+  }
+
+  /**
+   * Gets the value of the 'metric' field.
+   */
+  public java.lang.Long getMetric() {
+    return metric;
+  }
+
+  /**
+   * Sets the value of the 'metric' field.
+   * @param value the value to set.
+   */
+  public void setMetric(java.lang.Long value) {
+    this.metric = value;
+    setDirty(3);
+  }
+  
+  /**
+   * Checks the dirty status of the 'metric' field. A field is dirty if it represents a change that has not yet been written to the database.
+   * @param value the value to set.
+   */
+  public boolean isMetricDirty(java.lang.Long value) {
+    return isDirty(3);
+  }
+
+  /** Creates a new MetricDatum RecordBuilder */
+  public static org.apache.gora.tutorial.log.generated.MetricDatum.Builder newBuilder() {
+    return new org.apache.gora.tutorial.log.generated.MetricDatum.Builder();
+  }
+  
+  /** Creates a new MetricDatum RecordBuilder by copying an existing Builder */
+  public static org.apache.gora.tutorial.log.generated.MetricDatum.Builder newBuilder(org.apache.gora.tutorial.log.generated.MetricDatum.Builder other) {
+    return new org.apache.gora.tutorial.log.generated.MetricDatum.Builder(other);
+  }
+  
+  /** Creates a new MetricDatum RecordBuilder by copying an existing MetricDatum instance */
+  public static org.apache.gora.tutorial.log.generated.MetricDatum.Builder newBuilder(org.apache.gora.tutorial.log.generated.MetricDatum other) {
+    return new org.apache.gora.tutorial.log.generated.MetricDatum.Builder(other);
+  }
+  
+  private static java.nio.ByteBuffer deepCopyToWriteOnlyBuffer(
+      java.nio.ByteBuffer input) {
+    java.nio.ByteBuffer copy = java.nio.ByteBuffer.allocate(input.capacity());
+    int position = input.position();
+    input.reset();
+    int mark = input.position();
+    int limit = input.limit();
+    input.rewind();
+    input.limit(input.capacity());
+    copy.put(input);
+    input.rewind();
+    copy.rewind();
+    input.position(mark);
+    input.mark();
+    copy.position(mark);
+    copy.mark();
+    input.position(position);
+    copy.position(position);
+    input.limit(limit);
+    copy.limit(limit);
+    return copy.asReadOnlyBuffer();
+  }
+  
+  /**
+   * RecordBuilder for MetricDatum instances.
+   */
+  public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<MetricDatum>
+    implements org.apache.avro.data.RecordBuilder<MetricDatum> {
+
+    private java.nio.ByteBuffer __g__dirty;
+    private java.lang.CharSequence metricDimension;
+    private long timestamp;
+    private long metric;
+
+    /** Creates a new Builder */
+    private Builder() {
+      super(org.apache.gora.tutorial.log.generated.MetricDatum.SCHEMA$);
+    }
+    
+    /** Creates a Builder by copying an existing Builder */
+    private Builder(org.apache.gora.tutorial.log.generated.MetricDatum.Builder other) {
+      super(other);
+    }
+    
+    /** Creates a Builder by copying an existing MetricDatum instance */
+    private Builder(org.apache.gora.tutorial.log.generated.MetricDatum other) {
+            super(org.apache.gora.tutorial.log.generated.MetricDatum.SCHEMA$);
+      if (isValidValue(fields()[0], other.__g__dirty)) {
+        this.__g__dirty = (java.nio.ByteBuffer) data().deepCopy(fields()[0].schema(), other.__g__dirty);
+        fieldSetFlags()[0] = true;
+      }
+      if (isValidValue(fields()[1], other.metricDimension)) {
+        this.metricDimension = (java.lang.CharSequence) data().deepCopy(fields()[1].schema(), other.metricDimension);
+        fieldSetFlags()[1] = true;
+      }
+      if (isValidValue(fields()[2], other.timestamp)) {
+        this.timestamp = (java.lang.Long) data().deepCopy(fields()[2].schema(), other.timestamp);
+        fieldSetFlags()[2] = true;
+      }
+      if (isValidValue(fields()[3], other.metric)) {
+        this.metric = (java.lang.Long) data().deepCopy(fields()[3].schema(), other.metric);
+        fieldSetFlags()[3] = true;
+      }
+    }
+
+    /** Gets the value of the 'metricDimension' field */
+    public java.lang.CharSequence getMetricDimension() {
+      return metricDimension;
+    }
+    
+    /** Sets the value of the 'metricDimension' field */
+    public org.apache.gora.tutorial.log.generated.MetricDatum.Builder setMetricDimension(java.lang.CharSequence value) {
+      validate(fields()[1], value);
+      this.metricDimension = value;
+      fieldSetFlags()[1] = true;
+      return this; 
+    }
+    
+    /** Checks whether the 'metricDimension' field has been set */
+    public boolean hasMetricDimension() {
+      return fieldSetFlags()[1];
+    }
+    
+    /** Clears the value of the 'metricDimension' field */
+    public org.apache.gora.tutorial.log.generated.MetricDatum.Builder clearMetricDimension() {
+      metricDimension = null;
+      fieldSetFlags()[1] = false;
+      return this;
+    }
+    
+    /** Gets the value of the 'timestamp' field */
+    public java.lang.Long getTimestamp() {
+      return timestamp;
+    }
+    
+    /** Sets the value of the 'timestamp' field */
+    public org.apache.gora.tutorial.log.generated.MetricDatum.Builder setTimestamp(long value) {
+      validate(fields()[2], value);
+      this.timestamp = value;
+      fieldSetFlags()[2] = true;
+      return this; 
+    }
+    
+    /** Checks whether the 'timestamp' field has been set */
+    public boolean hasTimestamp() {
+      return fieldSetFlags()[2];
+    }
+    
+    /** Clears the value of the 'timestamp' field */
+    public org.apache.gora.tutorial.log.generated.MetricDatum.Builder clearTimestamp() {
+      fieldSetFlags()[2] = false;
+      return this;
+    }
+    
+    /** Gets the value of the 'metric' field */
+    public java.lang.Long getMetric() {
+      return metric;
+    }
+    
+    /** Sets the value of the 'metric' field */
+    public org.apache.gora.tutorial.log.generated.MetricDatum.Builder setMetric(long value) {
+      validate(fields()[3], value);
+      this.metric = value;
+      fieldSetFlags()[3] = true;
+      return this; 
+    }
+    
+    /** Checks whether the 'metric' field has been set */
+    public boolean hasMetric() {
+      return fieldSetFlags()[3];
+    }
+    
+    /** Clears the value of the 'metric' field */
+    public org.apache.gora.tutorial.log.generated.MetricDatum.Builder clearMetric() {
+      fieldSetFlags()[3] = false;
+      return this;
+    }
+    
+    @Override
+    public MetricDatum build() {
+      try {
+        MetricDatum record = new MetricDatum();
+        record.__g__dirty = fieldSetFlags()[0] ? this.__g__dirty : (java.nio.ByteBuffer) defaultValue(fields()[0]);
+        record.metricDimension = fieldSetFlags()[1] ? this.metricDimension : (java.lang.CharSequence) defaultValue(fields()[1]);
+        record.timestamp = fieldSetFlags()[2] ? this.timestamp : (java.lang.Long) defaultValue(fields()[2]);
+        record.metric = fieldSetFlags()[3] ? this.metric : (java.lang.Long) defaultValue(fields()[3]);
+        return record;
+      } catch (Exception e) {
+        throw new org.apache.avro.AvroRuntimeException(e);
+      }
+    }
+  }
+  
+  public MetricDatum.Tombstone getTombstone(){
+  	return TOMBSTONE;
+  }
+
+  private static final Tombstone TOMBSTONE = new Tombstone();
+  
+  public static final class Tombstone extends MetricDatum implements org.apache.gora.persistency.Tombstone {
+  
+      private Tombstone() { }
+  
+	  				  /**
+	   * Gets the value of the 'metricDimension' field.
+		   */
+	  public java.lang.CharSequence getMetricDimension() {
+	    throw new java.lang.UnsupportedOperationException("Get is not supported on tombstones");
+	  }
+	
+	  /**
+	   * Sets the value of the 'metricDimension' field.
+		   * @param value the value to set.
+	   */
+	  public void setMetricDimension(java.lang.CharSequence value) {
+	    throw new java.lang.UnsupportedOperationException("Set is not supported on tombstones");
+	  }
+	  
+	  /**
+	   * Checks the dirty status of the 'metricDimension' field. A field is dirty if it represents a change that has not yet been written to the database.
+		   * @param value the value to set.
+	   */
+	  public boolean isMetricDimensionDirty(java.lang.CharSequence value) {
+	    throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
+	  }
+	
+				  /**
+	   * Gets the value of the 'timestamp' field.
+		   */
+	  public java.lang.Long getTimestamp() {
+	    throw new java.lang.UnsupportedOperationException("Get is not supported on tombstones");
+	  }
+	
+	  /**
+	   * Sets the value of the 'timestamp' field.
+		   * @param value the value to set.
+	   */
+	  public void setTimestamp(java.lang.Long value) {
+	    throw new java.lang.UnsupportedOperationException("Set is not supported on tombstones");
+	  }
+	  
+	  /**
+	   * Checks the dirty status of the 'timestamp' field. A field is dirty if it represents a change that has not yet been written to the database.
+		   * @param value the value to set.
+	   */
+	  public boolean isTimestampDirty(java.lang.Long value) {
+	    throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
+	  }
+	
+				  /**
+	   * Gets the value of the 'metric' field.
+		   */
+	  public java.lang.Long getMetric() {
+	    throw new java.lang.UnsupportedOperationException("Get is not supported on tombstones");
+	  }
+	
+	  /**
+	   * Sets the value of the 'metric' field.
+		   * @param value the value to set.
+	   */
+	  public void setMetric(java.lang.Long value) {
+	    throw new java.lang.UnsupportedOperationException("Set is not supported on tombstones");
+	  }
+	  
+	  /**
+	   * Checks the dirty status of the 'metric' field. A field is dirty if it represents a change that has not yet been written to the database.
+		   * @param value the value to set.
+	   */
+	  public boolean isMetricDirty(java.lang.Long value) {
+	    throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
+	  }
+	
+		  
+  }
+  
+}
\ No newline at end of file

Added: gora/branches/GORA_94/gora-tutorial/src/main/java/org/apache/gora/tutorial/log/generated/Pageview.java
URL: http://svn.apache.org/viewvc/gora/branches/GORA_94/gora-tutorial/src/main/java/org/apache/gora/tutorial/log/generated/Pageview.java?rev=1517094&view=auto
==============================================================================
--- gora/branches/GORA_94/gora-tutorial/src/main/java/org/apache/gora/tutorial/log/generated/Pageview.java (added)
+++ gora/branches/GORA_94/gora-tutorial/src/main/java/org/apache/gora/tutorial/log/generated/Pageview.java Sat Aug 24 00:32:42 2013
@@ -0,0 +1,764 @@
+/**
+ * Autogenerated by Avro
+ * 
+ * DO NOT EDIT DIRECTLY
+ */
+package org.apache.gora.tutorial.log.generated;  
+@SuppressWarnings("all")
+public class Pageview extends org.apache.gora.persistency.impl.PersistentBase implements org.apache.avro.specific.SpecificRecord, org.apache.gora.persistency.Persistent {
+  public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Pageview\",\"namespace\":\"org.apache.gora.tutorial.log.generated\",\"fields\":[{\"name\":\"__g__dirty\",\"type\":\"bytes\",\"doc\":\"Bytes used to represent weather or not a field is dirty.\",\"default\":\"AAA=\"},{\"name\":\"url\",\"type\":\"string\"},{\"name\":\"timestamp\",\"type\":\"long\"},{\"name\":\"ip\",\"type\":\"string\"},{\"name\":\"httpMethod\",\"type\":\"string\"},{\"name\":\"httpStatusCode\",\"type\":\"int\"},{\"name\":\"responseSize\",\"type\":\"int\"},{\"name\":\"referrer\",\"type\":\"string\"},{\"name\":\"userAgent\",\"type\":\"string\"}]}");
+  /** Bytes used to represent weather or not a field is dirty. */
+  private java.nio.ByteBuffer __g__dirty = java.nio.ByteBuffer.wrap(new byte[2]);
+  private java.lang.CharSequence url;
+  private long timestamp;
+  private java.lang.CharSequence ip;
+  private java.lang.CharSequence httpMethod;
+  private int httpStatusCode;
+  private int responseSize;
+  private java.lang.CharSequence referrer;
+  private java.lang.CharSequence userAgent;
+  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 __g__dirty;
+    case 1: return url;
+    case 2: return timestamp;
+    case 3: return ip;
+    case 4: return httpMethod;
+    case 5: return httpStatusCode;
+    case 6: return responseSize;
+    case 7: return referrer;
+    case 8: return userAgent;
+    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: __g__dirty = (java.nio.ByteBuffer)value$; break;
+    case 1: url = (java.lang.CharSequence)value$; break;
+    case 2: timestamp = (java.lang.Long)value$; break;
+    case 3: ip = (java.lang.CharSequence)value$; break;
+    case 4: httpMethod = (java.lang.CharSequence)value$; break;
+    case 5: httpStatusCode = (java.lang.Integer)value$; break;
+    case 6: responseSize = (java.lang.Integer)value$; break;
+    case 7: referrer = (java.lang.CharSequence)value$; break;
+    case 8: userAgent = (java.lang.CharSequence)value$; break;
+    default: throw new org.apache.avro.AvroRuntimeException("Bad index");
+    }
+  }
+
+  /**
+   * Gets the value of the 'url' field.
+   */
+  public java.lang.CharSequence getUrl() {
+    return url.toString();
+  }
+
+  /**
+   * Sets the value of the 'url' field.
+   * @param value the value to set.
+   */
+  public void setUrl(java.lang.CharSequence value) {
+    this.url = value.toString();
+    setDirty(1);
+  }
+  
+  /**
+   * Checks the dirty status of the 'url' field. A field is dirty if it represents a change that has not yet been written to the database.
+   * @param value the value to set.
+   */
+  public boolean isUrlDirty(java.lang.CharSequence value) {
+    return isDirty(1);
+  }
+
+  /**
+   * Gets the value of the 'timestamp' field.
+   */
+  public java.lang.Long getTimestamp() {
+    return timestamp;
+  }
+
+  /**
+   * Sets the value of the 'timestamp' field.
+   * @param value the value to set.
+   */
+  public void setTimestamp(java.lang.Long value) {
+    this.timestamp = value;
+    setDirty(2);
+  }
+  
+  /**
+   * Checks the dirty status of the 'timestamp' field. A field is dirty if it represents a change that has not yet been written to the database.
+   * @param value the value to set.
+   */
+  public boolean isTimestampDirty(java.lang.Long value) {
+    return isDirty(2);
+  }
+
+  /**
+   * Gets the value of the 'ip' field.
+   */
+  public java.lang.CharSequence getIp() {
+    return ip.toString();
+  }
+
+  /**
+   * Sets the value of the 'ip' field.
+   * @param value the value to set.
+   */
+  public void setIp(java.lang.CharSequence value) {
+    this.ip = value.toString();
+    setDirty(3);
+  }
+  
+  /**
+   * Checks the dirty status of the 'ip' field. A field is dirty if it represents a change that has not yet been written to the database.
+   * @param value the value to set.
+   */
+  public boolean isIpDirty(java.lang.CharSequence value) {
+    return isDirty(3);
+  }
+
+  /**
+   * Gets the value of the 'httpMethod' field.
+   */
+  public java.lang.CharSequence getHttpMethod() {
+    return httpMethod.toString();
+  }
+
+  /**
+   * Sets the value of the 'httpMethod' field.
+   * @param value the value to set.
+   */
+  public void setHttpMethod(java.lang.CharSequence value) {
+    this.httpMethod = value.toString();
+    setDirty(4);
+  }
+  
+  /**
+   * Checks the dirty status of the 'httpMethod' field. A field is dirty if it represents a change that has not yet been written to the database.
+   * @param value the value to set.
+   */
+  public boolean isHttpMethodDirty(java.lang.CharSequence value) {
+    return isDirty(4);
+  }
+
+  /**
+   * Gets the value of the 'httpStatusCode' field.
+   */
+  public java.lang.Integer getHttpStatusCode() {
+    return httpStatusCode;
+  }
+
+  /**
+   * Sets the value of the 'httpStatusCode' field.
+   * @param value the value to set.
+   */
+  public void setHttpStatusCode(java.lang.Integer value) {
+    this.httpStatusCode = value;
+    setDirty(5);
+  }
+  
+  /**
+   * Checks the dirty status of the 'httpStatusCode' field. A field is dirty if it represents a change that has not yet been written to the database.
+   * @param value the value to set.
+   */
+  public boolean isHttpStatusCodeDirty(java.lang.Integer value) {
+    return isDirty(5);
+  }
+
+  /**
+   * Gets the value of the 'responseSize' field.
+   */
+  public java.lang.Integer getResponseSize() {
+    return responseSize;
+  }
+
+  /**
+   * Sets the value of the 'responseSize' field.
+   * @param value the value to set.
+   */
+  public void setResponseSize(java.lang.Integer value) {
+    this.responseSize = value;
+    setDirty(6);
+  }
+  
+  /**
+   * Checks the dirty status of the 'responseSize' field. A field is dirty if it represents a change that has not yet been written to the database.
+   * @param value the value to set.
+   */
+  public boolean isResponseSizeDirty(java.lang.Integer value) {
+    return isDirty(6);
+  }
+
+  /**
+   * Gets the value of the 'referrer' field.
+   */
+  public java.lang.CharSequence getReferrer() {
+    return referrer.toString();
+  }
+
+  /**
+   * Sets the value of the 'referrer' field.
+   * @param value the value to set.
+   */
+  public void setReferrer(java.lang.CharSequence value) {
+    this.referrer = value.toString();
+    setDirty(7);
+  }
+  
+  /**
+   * Checks the dirty status of the 'referrer' field. A field is dirty if it represents a change that has not yet been written to the database.
+   * @param value the value to set.
+   */
+  public boolean isReferrerDirty(java.lang.CharSequence value) {
+    return isDirty(7);
+  }
+
+  /**
+   * Gets the value of the 'userAgent' field.
+   */
+  public java.lang.CharSequence getUserAgent() {
+    return userAgent.toString();
+  }
+
+  /**
+   * Sets the value of the 'userAgent' field.
+   * @param value the value to set.
+   */
+  public void setUserAgent(java.lang.CharSequence value) {
+    this.userAgent = value.toString();
+    setDirty(8);
+  }
+  
+  /**
+   * Checks the dirty status of the 'userAgent' field. A field is dirty if it represents a change that has not yet been written to the database.
+   * @param value the value to set.
+   */
+  public boolean isUserAgentDirty(java.lang.CharSequence value) {
+    return isDirty(8);
+  }
+
+  /** Creates a new Pageview RecordBuilder */
+  public static org.apache.gora.tutorial.log.generated.Pageview.Builder newBuilder() {
+    return new org.apache.gora.tutorial.log.generated.Pageview.Builder();
+  }
+  
+  /** Creates a new Pageview RecordBuilder by copying an existing Builder */
+  public static org.apache.gora.tutorial.log.generated.Pageview.Builder newBuilder(org.apache.gora.tutorial.log.generated.Pageview.Builder other) {
+    return new org.apache.gora.tutorial.log.generated.Pageview.Builder(other);
+  }
+  
+  /** Creates a new Pageview RecordBuilder by copying an existing Pageview instance */
+  public static org.apache.gora.tutorial.log.generated.Pageview.Builder newBuilder(org.apache.gora.tutorial.log.generated.Pageview other) {
+    return new org.apache.gora.tutorial.log.generated.Pageview.Builder(other);
+  }
+  
+  private static java.nio.ByteBuffer deepCopyToWriteOnlyBuffer(
+      java.nio.ByteBuffer input) {
+    java.nio.ByteBuffer copy = java.nio.ByteBuffer.allocate(input.capacity());
+    int position = input.position();
+    input.reset();
+    int mark = input.position();
+    int limit = input.limit();
+    input.rewind();
+    input.limit(input.capacity());
+    copy.put(input);
+    input.rewind();
+    copy.rewind();
+    input.position(mark);
+    input.mark();
+    copy.position(mark);
+    copy.mark();
+    input.position(position);
+    copy.position(position);
+    input.limit(limit);
+    copy.limit(limit);
+    return copy.asReadOnlyBuffer();
+  }
+  
+  /**
+   * RecordBuilder for Pageview instances.
+   */
+  public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<Pageview>
+    implements org.apache.avro.data.RecordBuilder<Pageview> {
+
+    private java.nio.ByteBuffer __g__dirty;
+    private java.lang.CharSequence url;
+    private long timestamp;
+    private java.lang.CharSequence ip;
+    private java.lang.CharSequence httpMethod;
+    private int httpStatusCode;
+    private int responseSize;
+    private java.lang.CharSequence referrer;
+    private java.lang.CharSequence userAgent;
+
+    /** Creates a new Builder */
+    private Builder() {
+      super(org.apache.gora.tutorial.log.generated.Pageview.SCHEMA$);
+    }
+    
+    /** Creates a Builder by copying an existing Builder */
+    private Builder(org.apache.gora.tutorial.log.generated.Pageview.Builder other) {
+      super(other);
+    }
+    
+    /** Creates a Builder by copying an existing Pageview instance */
+    private Builder(org.apache.gora.tutorial.log.generated.Pageview other) {
+            super(org.apache.gora.tutorial.log.generated.Pageview.SCHEMA$);
+      if (isValidValue(fields()[0], other.__g__dirty)) {
+        this.__g__dirty = (java.nio.ByteBuffer) data().deepCopy(fields()[0].schema(), other.__g__dirty);
+        fieldSetFlags()[0] = true;
+      }
+      if (isValidValue(fields()[1], other.url)) {
+        this.url = (java.lang.CharSequence) data().deepCopy(fields()[1].schema(), other.url);
+        fieldSetFlags()[1] = true;
+      }
+      if (isValidValue(fields()[2], other.timestamp)) {
+        this.timestamp = (java.lang.Long) data().deepCopy(fields()[2].schema(), other.timestamp);
+        fieldSetFlags()[2] = true;
+      }
+      if (isValidValue(fields()[3], other.ip)) {
+        this.ip = (java.lang.CharSequence) data().deepCopy(fields()[3].schema(), other.ip);
+        fieldSetFlags()[3] = true;
+      }
+      if (isValidValue(fields()[4], other.httpMethod)) {
+        this.httpMethod = (java.lang.CharSequence) data().deepCopy(fields()[4].schema(), other.httpMethod);
+        fieldSetFlags()[4] = true;
+      }
+      if (isValidValue(fields()[5], other.httpStatusCode)) {
+        this.httpStatusCode = (java.lang.Integer) data().deepCopy(fields()[5].schema(), other.httpStatusCode);
+        fieldSetFlags()[5] = true;
+      }
+      if (isValidValue(fields()[6], other.responseSize)) {
+        this.responseSize = (java.lang.Integer) data().deepCopy(fields()[6].schema(), other.responseSize);
+        fieldSetFlags()[6] = true;
+      }
+      if (isValidValue(fields()[7], other.referrer)) {
+        this.referrer = (java.lang.CharSequence) data().deepCopy(fields()[7].schema(), other.referrer);
+        fieldSetFlags()[7] = true;
+      }
+      if (isValidValue(fields()[8], other.userAgent)) {
+        this.userAgent = (java.lang.CharSequence) data().deepCopy(fields()[8].schema(), other.userAgent);
+        fieldSetFlags()[8] = true;
+      }
+    }
+
+    /** Gets the value of the 'url' field */
+    public java.lang.CharSequence getUrl() {
+      return url;
+    }
+    
+    /** Sets the value of the 'url' field */
+    public org.apache.gora.tutorial.log.generated.Pageview.Builder setUrl(java.lang.CharSequence value) {
+      validate(fields()[1], value);
+      this.url = value;
+      fieldSetFlags()[1] = true;
+      return this; 
+    }
+    
+    /** Checks whether the 'url' field has been set */
+    public boolean hasUrl() {
+      return fieldSetFlags()[1];
+    }
+    
+    /** Clears the value of the 'url' field */
+    public org.apache.gora.tutorial.log.generated.Pageview.Builder clearUrl() {
+      url = null;
+      fieldSetFlags()[1] = false;
+      return this;
+    }
+    
+    /** Gets the value of the 'timestamp' field */
+    public java.lang.Long getTimestamp() {
+      return timestamp;
+    }
+    
+    /** Sets the value of the 'timestamp' field */
+    public org.apache.gora.tutorial.log.generated.Pageview.Builder setTimestamp(long value) {
+      validate(fields()[2], value);
+      this.timestamp = value;
+      fieldSetFlags()[2] = true;
+      return this; 
+    }
+    
+    /** Checks whether the 'timestamp' field has been set */
+    public boolean hasTimestamp() {
+      return fieldSetFlags()[2];
+    }
+    
+    /** Clears the value of the 'timestamp' field */
+    public org.apache.gora.tutorial.log.generated.Pageview.Builder clearTimestamp() {
+      fieldSetFlags()[2] = false;
+      return this;
+    }
+    
+    /** Gets the value of the 'ip' field */
+    public java.lang.CharSequence getIp() {
+      return ip;
+    }
+    
+    /** Sets the value of the 'ip' field */
+    public org.apache.gora.tutorial.log.generated.Pageview.Builder setIp(java.lang.CharSequence value) {
+      validate(fields()[3], value);
+      this.ip = value;
+      fieldSetFlags()[3] = true;
+      return this; 
+    }
+    
+    /** Checks whether the 'ip' field has been set */
+    public boolean hasIp() {
+      return fieldSetFlags()[3];
+    }
+    
+    /** Clears the value of the 'ip' field */
+    public org.apache.gora.tutorial.log.generated.Pageview.Builder clearIp() {
+      ip = null;
+      fieldSetFlags()[3] = false;
+      return this;
+    }
+    
+    /** Gets the value of the 'httpMethod' field */
+    public java.lang.CharSequence getHttpMethod() {
+      return httpMethod;
+    }
+    
+    /** Sets the value of the 'httpMethod' field */
+    public org.apache.gora.tutorial.log.generated.Pageview.Builder setHttpMethod(java.lang.CharSequence value) {
+      validate(fields()[4], value);
+      this.httpMethod = value;
+      fieldSetFlags()[4] = true;
+      return this; 
+    }
+    
+    /** Checks whether the 'httpMethod' field has been set */
+    public boolean hasHttpMethod() {
+      return fieldSetFlags()[4];
+    }
+    
+    /** Clears the value of the 'httpMethod' field */
+    public org.apache.gora.tutorial.log.generated.Pageview.Builder clearHttpMethod() {
+      httpMethod = null;
+      fieldSetFlags()[4] = false;
+      return this;
+    }
+    
+    /** Gets the value of the 'httpStatusCode' field */
+    public java.lang.Integer getHttpStatusCode() {
+      return httpStatusCode;
+    }
+    
+    /** Sets the value of the 'httpStatusCode' field */
+    public org.apache.gora.tutorial.log.generated.Pageview.Builder setHttpStatusCode(int value) {
+      validate(fields()[5], value);
+      this.httpStatusCode = value;
+      fieldSetFlags()[5] = true;
+      return this; 
+    }
+    
+    /** Checks whether the 'httpStatusCode' field has been set */
+    public boolean hasHttpStatusCode() {
+      return fieldSetFlags()[5];
+    }
+    
+    /** Clears the value of the 'httpStatusCode' field */
+    public org.apache.gora.tutorial.log.generated.Pageview.Builder clearHttpStatusCode() {
+      fieldSetFlags()[5] = false;
+      return this;
+    }
+    
+    /** Gets the value of the 'responseSize' field */
+    public java.lang.Integer getResponseSize() {
+      return responseSize;
+    }
+    
+    /** Sets the value of the 'responseSize' field */
+    public org.apache.gora.tutorial.log.generated.Pageview.Builder setResponseSize(int value) {
+      validate(fields()[6], value);
+      this.responseSize = value;
+      fieldSetFlags()[6] = true;
+      return this; 
+    }
+    
+    /** Checks whether the 'responseSize' field has been set */
+    public boolean hasResponseSize() {
+      return fieldSetFlags()[6];
+    }
+    
+    /** Clears the value of the 'responseSize' field */
+    public org.apache.gora.tutorial.log.generated.Pageview.Builder clearResponseSize() {
+      fieldSetFlags()[6] = false;
+      return this;
+    }
+    
+    /** Gets the value of the 'referrer' field */
+    public java.lang.CharSequence getReferrer() {
+      return referrer;
+    }
+    
+    /** Sets the value of the 'referrer' field */
+    public org.apache.gora.tutorial.log.generated.Pageview.Builder setReferrer(java.lang.CharSequence value) {
+      validate(fields()[7], value);
+      this.referrer = value;
+      fieldSetFlags()[7] = true;
+      return this; 
+    }
+    
+    /** Checks whether the 'referrer' field has been set */
+    public boolean hasReferrer() {
+      return fieldSetFlags()[7];
+    }
+    
+    /** Clears the value of the 'referrer' field */
+    public org.apache.gora.tutorial.log.generated.Pageview.Builder clearReferrer() {
+      referrer = null;
+      fieldSetFlags()[7] = false;
+      return this;
+    }
+    
+    /** Gets the value of the 'userAgent' field */
+    public java.lang.CharSequence getUserAgent() {
+      return userAgent;
+    }
+    
+    /** Sets the value of the 'userAgent' field */
+    public org.apache.gora.tutorial.log.generated.Pageview.Builder setUserAgent(java.lang.CharSequence value) {
+      validate(fields()[8], value);
+      this.userAgent = value;
+      fieldSetFlags()[8] = true;
+      return this; 
+    }
+    
+    /** Checks whether the 'userAgent' field has been set */
+    public boolean hasUserAgent() {
+      return fieldSetFlags()[8];
+    }
+    
+    /** Clears the value of the 'userAgent' field */
+    public org.apache.gora.tutorial.log.generated.Pageview.Builder clearUserAgent() {
+      userAgent = null;
+      fieldSetFlags()[8] = false;
+      return this;
+    }
+    
+    @Override
+    public Pageview build() {
+      try {
+        Pageview record = new Pageview();
+        record.__g__dirty = fieldSetFlags()[0] ? this.__g__dirty : (java.nio.ByteBuffer) defaultValue(fields()[0]);
+        record.url = fieldSetFlags()[1] ? this.url : (java.lang.CharSequence) defaultValue(fields()[1]);
+        record.timestamp = fieldSetFlags()[2] ? this.timestamp : (java.lang.Long) defaultValue(fields()[2]);
+        record.ip = fieldSetFlags()[3] ? this.ip : (java.lang.CharSequence) defaultValue(fields()[3]);
+        record.httpMethod = fieldSetFlags()[4] ? this.httpMethod : (java.lang.CharSequence) defaultValue(fields()[4]);
+        record.httpStatusCode = fieldSetFlags()[5] ? this.httpStatusCode : (java.lang.Integer) defaultValue(fields()[5]);
+        record.responseSize = fieldSetFlags()[6] ? this.responseSize : (java.lang.Integer) defaultValue(fields()[6]);
+        record.referrer = fieldSetFlags()[7] ? this.referrer : (java.lang.CharSequence) defaultValue(fields()[7]);
+        record.userAgent = fieldSetFlags()[8] ? this.userAgent : (java.lang.CharSequence) defaultValue(fields()[8]);
+        return record;
+      } catch (Exception e) {
+        throw new org.apache.avro.AvroRuntimeException(e);
+      }
+    }
+  }
+  
+  public Pageview.Tombstone getTombstone(){
+  	return TOMBSTONE;
+  }
+
+  private static final Tombstone TOMBSTONE = new Tombstone();
+  
+  public static final class Tombstone extends Pageview implements org.apache.gora.persistency.Tombstone {
+  
+      private Tombstone() { }
+  
+	  				  /**
+	   * Gets the value of the 'url' field.
+		   */
+	  public java.lang.CharSequence getUrl() {
+	    throw new java.lang.UnsupportedOperationException("Get is not supported on tombstones");
+	  }
+	
+	  /**
+	   * Sets the value of the 'url' field.
+		   * @param value the value to set.
+	   */
+	  public void setUrl(java.lang.CharSequence value) {
+	    throw new java.lang.UnsupportedOperationException("Set is not supported on tombstones");
+	  }
+	  
+	  /**
+	   * Checks the dirty status of the 'url' field. A field is dirty if it represents a change that has not yet been written to the database.
+		   * @param value the value to set.
+	   */
+	  public boolean isUrlDirty(java.lang.CharSequence value) {
+	    throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
+	  }
+	
+				  /**
+	   * Gets the value of the 'timestamp' field.
+		   */
+	  public java.lang.Long getTimestamp() {
+	    throw new java.lang.UnsupportedOperationException("Get is not supported on tombstones");
+	  }
+	
+	  /**
+	   * Sets the value of the 'timestamp' field.
+		   * @param value the value to set.
+	   */
+	  public void setTimestamp(java.lang.Long value) {
+	    throw new java.lang.UnsupportedOperationException("Set is not supported on tombstones");
+	  }
+	  
+	  /**
+	   * Checks the dirty status of the 'timestamp' field. A field is dirty if it represents a change that has not yet been written to the database.
+		   * @param value the value to set.
+	   */
+	  public boolean isTimestampDirty(java.lang.Long value) {
+	    throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
+	  }
+	
+				  /**
+	   * Gets the value of the 'ip' field.
+		   */
+	  public java.lang.CharSequence getIp() {
+	    throw new java.lang.UnsupportedOperationException("Get is not supported on tombstones");
+	  }
+	
+	  /**
+	   * Sets the value of the 'ip' field.
+		   * @param value the value to set.
+	   */
+	  public void setIp(java.lang.CharSequence value) {
+	    throw new java.lang.UnsupportedOperationException("Set is not supported on tombstones");
+	  }
+	  
+	  /**
+	   * Checks the dirty status of the 'ip' field. A field is dirty if it represents a change that has not yet been written to the database.
+		   * @param value the value to set.
+	   */
+	  public boolean isIpDirty(java.lang.CharSequence value) {
+	    throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
+	  }
+	
+				  /**
+	   * Gets the value of the 'httpMethod' field.
+		   */
+	  public java.lang.CharSequence getHttpMethod() {
+	    throw new java.lang.UnsupportedOperationException("Get is not supported on tombstones");
+	  }
+	
+	  /**
+	   * Sets the value of the 'httpMethod' field.
+		   * @param value the value to set.
+	   */
+	  public void setHttpMethod(java.lang.CharSequence value) {
+	    throw new java.lang.UnsupportedOperationException("Set is not supported on tombstones");
+	  }
+	  
+	  /**
+	   * Checks the dirty status of the 'httpMethod' field. A field is dirty if it represents a change that has not yet been written to the database.
+		   * @param value the value to set.
+	   */
+	  public boolean isHttpMethodDirty(java.lang.CharSequence value) {
+	    throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
+	  }
+	
+				  /**
+	   * Gets the value of the 'httpStatusCode' field.
+		   */
+	  public java.lang.Integer getHttpStatusCode() {
+	    throw new java.lang.UnsupportedOperationException("Get is not supported on tombstones");
+	  }
+	
+	  /**
+	   * Sets the value of the 'httpStatusCode' field.
+		   * @param value the value to set.
+	   */
+	  public void setHttpStatusCode(java.lang.Integer value) {
+	    throw new java.lang.UnsupportedOperationException("Set is not supported on tombstones");
+	  }
+	  
+	  /**
+	   * Checks the dirty status of the 'httpStatusCode' field. A field is dirty if it represents a change that has not yet been written to the database.
+		   * @param value the value to set.
+	   */
+	  public boolean isHttpStatusCodeDirty(java.lang.Integer value) {
+	    throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
+	  }
+	
+				  /**
+	   * Gets the value of the 'responseSize' field.
+		   */
+	  public java.lang.Integer getResponseSize() {
+	    throw new java.lang.UnsupportedOperationException("Get is not supported on tombstones");
+	  }
+	
+	  /**
+	   * Sets the value of the 'responseSize' field.
+		   * @param value the value to set.
+	   */
+	  public void setResponseSize(java.lang.Integer value) {
+	    throw new java.lang.UnsupportedOperationException("Set is not supported on tombstones");
+	  }
+	  
+	  /**
+	   * Checks the dirty status of the 'responseSize' field. A field is dirty if it represents a change that has not yet been written to the database.
+		   * @param value the value to set.
+	   */
+	  public boolean isResponseSizeDirty(java.lang.Integer value) {
+	    throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
+	  }
+	
+				  /**
+	   * Gets the value of the 'referrer' field.
+		   */
+	  public java.lang.CharSequence getReferrer() {
+	    throw new java.lang.UnsupportedOperationException("Get is not supported on tombstones");
+	  }
+	
+	  /**
+	   * Sets the value of the 'referrer' field.
+		   * @param value the value to set.
+	   */
+	  public void setReferrer(java.lang.CharSequence value) {
+	    throw new java.lang.UnsupportedOperationException("Set is not supported on tombstones");
+	  }
+	  
+	  /**
+	   * Checks the dirty status of the 'referrer' field. A field is dirty if it represents a change that has not yet been written to the database.
+		   * @param value the value to set.
+	   */
+	  public boolean isReferrerDirty(java.lang.CharSequence value) {
+	    throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
+	  }
+	
+				  /**
+	   * Gets the value of the 'userAgent' field.
+		   */
+	  public java.lang.CharSequence getUserAgent() {
+	    throw new java.lang.UnsupportedOperationException("Get is not supported on tombstones");
+	  }
+	
+	  /**
+	   * Sets the value of the 'userAgent' field.
+		   * @param value the value to set.
+	   */
+	  public void setUserAgent(java.lang.CharSequence value) {
+	    throw new java.lang.UnsupportedOperationException("Set is not supported on tombstones");
+	  }
+	  
+	  /**
+	   * Checks the dirty status of the 'userAgent' field. A field is dirty if it represents a change that has not yet been written to the database.
+		   * @param value the value to set.
+	   */
+	  public boolean isUserAgentDirty(java.lang.CharSequence value) {
+	    throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
+	  }
+	
+		  
+  }
+  
+}
\ No newline at end of file