You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gora.apache.org by al...@apache.org on 2016/09/22 19:24:55 UTC
[3/7] gora git commit: adding recompiled data beans
http://git-wip-us.apache.org/repos/asf/gora/blob/f14dbd4b/gora-core/src/examples/java/org/apache/gora/examples/generated/WebPage.java
----------------------------------------------------------------------
diff --git a/gora-core/src/examples/java/org/apache/gora/examples/generated/WebPage.java b/gora-core/src/examples/java/org/apache/gora/examples/generated/WebPage.java
index a624a3d..c61b214 100644
--- a/gora-core/src/examples/java/org/apache/gora/examples/generated/WebPage.java
+++ b/gora-core/src/examples/java/org/apache/gora/examples/generated/WebPage.java
@@ -1,13 +1,13 @@
/**
* Autogenerated by Avro
- *
+ *
* DO NOT EDIT DIRECTLY
*/
-package org.apache.gora.examples.generated;
+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\":\"url\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"content\",\"type\":[\"null\",\"bytes\"],\"default\":null},{\"name\":\"parsedContent\",\"type\":{\"type\":\"array\",\"items\":\"string\"},\"default\":null},{\"name\":\"outlinks\",\"type\":{\"type\":\"map\",\"values\":\"string\"},\"default\":{}},{\"name\":\"headers\",\"type\":[\"null\",{\"type\":\"map\",\"values\":[\"null\",\"string\"]}],\"default\":null},{\"name\":\"metadata\",\"type\":{\"type\":\"record\",\"name\":\"Metadata\",\"fields\":[{\"name\":\"version\",\"type\":\"int\",\"default\":0},{\"name\":\"data\",\"type\":{\"type\":\"map\",\"values\":\"string\"},\"default\":null}]},\"default\":null},{\"name\":\"byteData\",\"type\":{\"type\":\"map\",\"values\":\"bytes\"},\"default\":{}},{\"name\":\"stringDat
a\",\"type\":{\"type\":\"map\",\"values\":\"string\"},\"default\":{}}],\"default\":null}");
- private static final long serialVersionUID = -6468893522236148608L;
+ private static final long serialVersionUID = -2829100587222969501L;
/** Enum containing all data bean's fields. */
public static enum Field {
URL(0, "url"),
@@ -56,14 +56,14 @@ public class WebPage extends org.apache.gora.persistency.impl.PersistentBase imp
};
public static final String[] _ALL_FIELDS = {
- "url",
- "content",
- "parsedContent",
- "outlinks",
- "headers",
- "metadata",
- "byteData",
- "stringData",
+ "url",
+ "content",
+ "parsedContent",
+ "outlinks",
+ "headers",
+ "metadata",
+ "byteData",
+ "stringData",
};
/**
@@ -83,34 +83,34 @@ public class WebPage extends org.apache.gora.persistency.impl.PersistentBase imp
private java.util.Map<java.lang.CharSequence,java.nio.ByteBuffer> byteData;
private java.util.Map<java.lang.CharSequence,java.lang.CharSequence> stringData;
public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
+ // Used by DatumWriter. Applications should not call.
public java.lang.Object get(int field$) {
switch (field$) {
- case 0: return url;
- case 1: return content;
- case 2: return parsedContent;
- case 3: return outlinks;
- case 4: return headers;
- case 5: return metadata;
- case 6: return byteData;
- case 7: return stringData;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- // Used by DatumReader. Applications should not call.
+ case 0: return url;
+ case 1: return content;
+ case 2: return parsedContent;
+ case 3: return outlinks;
+ case 4: return headers;
+ case 5: return metadata;
+ case 6: return byteData;
+ case 7: return stringData;
+ 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: url = (java.lang.CharSequence)(value); break;
- case 1: content = (java.nio.ByteBuffer)(value); break;
- case 2: parsedContent = (java.util.List<java.lang.CharSequence>)((value instanceof org.apache.gora.persistency.Dirtyable) ? value : new org.apache.gora.persistency.impl.DirtyListWrapper((java.util.List)value)); break;
- case 3: outlinks = (java.util.Map<java.lang.CharSequence,java.lang.CharSequence>)((value instanceof org.apache.gora.persistency.Dirtyable) ? value : new org.apache.gora.persistency.impl.DirtyMapWrapper((java.util.Map)value)); break;
- case 4: headers = (java.util.Map<java.lang.CharSequence,java.lang.CharSequence>)(value); break;
- case 5: metadata = (org.apache.gora.examples.generated.Metadata)(value); break;
- case 6: byteData = (java.util.Map<java.lang.CharSequence,java.nio.ByteBuffer>)((value instanceof org.apache.gora.persistency.Dirtyable) ? value : new org.apache.gora.persistency.impl.DirtyMapWrapper((java.util.Map)value)); break;
- case 7: stringData = (java.util.Map<java.lang.CharSequence,java.lang.CharSequence>)((value instanceof org.apache.gora.persistency.Dirtyable) ? value : new org.apache.gora.persistency.impl.DirtyMapWrapper((java.util.Map)value)); break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
+ case 0: url = (java.lang.CharSequence)(value); break;
+ case 1: content = (java.nio.ByteBuffer)(value); break;
+ case 2: parsedContent = (java.util.List<java.lang.CharSequence>)((value instanceof org.apache.gora.persistency.Dirtyable) ? value : new org.apache.gora.persistency.impl.DirtyListWrapper((java.util.List)value)); break;
+ case 3: outlinks = (java.util.Map<java.lang.CharSequence,java.lang.CharSequence>)((value instanceof org.apache.gora.persistency.Dirtyable) ? value : new org.apache.gora.persistency.impl.DirtyMapWrapper((java.util.Map)value)); break;
+ case 4: headers = (java.util.Map<java.lang.CharSequence,java.lang.CharSequence>)(value); break;
+ case 5: metadata = (org.apache.gora.examples.generated.Metadata)(value); break;
+ case 6: byteData = (java.util.Map<java.lang.CharSequence,java.nio.ByteBuffer>)((value instanceof org.apache.gora.persistency.Dirtyable) ? value : new org.apache.gora.persistency.impl.DirtyMapWrapper((java.util.Map)value)); break;
+ case 7: stringData = (java.util.Map<java.lang.CharSequence,java.lang.CharSequence>)((value instanceof org.apache.gora.persistency.Dirtyable) ? value : new org.apache.gora.persistency.impl.DirtyMapWrapper((java.util.Map)value)); break;
+ default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
@@ -129,7 +129,7 @@ public class WebPage extends org.apache.gora.persistency.impl.PersistentBase imp
this.url = value;
setDirty(0);
}
-
+
/**
* 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.
@@ -153,7 +153,7 @@ public class WebPage extends org.apache.gora.persistency.impl.PersistentBase imp
this.content = value;
setDirty(1);
}
-
+
/**
* 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.
@@ -177,7 +177,7 @@ public class WebPage extends org.apache.gora.persistency.impl.PersistentBase imp
this.parsedContent = (value instanceof org.apache.gora.persistency.Dirtyable) ? value : new org.apache.gora.persistency.impl.DirtyListWrapper(value);
setDirty(2);
}
-
+
/**
* 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.
@@ -201,7 +201,7 @@ public class WebPage extends org.apache.gora.persistency.impl.PersistentBase imp
this.outlinks = (value instanceof org.apache.gora.persistency.Dirtyable) ? value : new org.apache.gora.persistency.impl.DirtyMapWrapper(value);
setDirty(3);
}
-
+
/**
* 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.
@@ -225,7 +225,7 @@ public class WebPage extends org.apache.gora.persistency.impl.PersistentBase imp
this.headers = value;
setDirty(4);
}
-
+
/**
* Checks the dirty status of the 'headers' 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.
@@ -249,7 +249,7 @@ public class WebPage extends org.apache.gora.persistency.impl.PersistentBase imp
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.
@@ -273,7 +273,7 @@ public class WebPage extends org.apache.gora.persistency.impl.PersistentBase imp
this.byteData = (value instanceof org.apache.gora.persistency.Dirtyable) ? value : new org.apache.gora.persistency.impl.DirtyMapWrapper(value);
setDirty(6);
}
-
+
/**
* Checks the dirty status of the 'byteData' 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.
@@ -297,7 +297,7 @@ public class WebPage extends org.apache.gora.persistency.impl.PersistentBase imp
this.stringData = (value instanceof org.apache.gora.persistency.Dirtyable) ? value : new org.apache.gora.persistency.impl.DirtyMapWrapper(value);
setDirty(7);
}
-
+
/**
* Checks the dirty status of the 'stringData' 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.
@@ -310,19 +310,19 @@ public class WebPage extends org.apache.gora.persistency.impl.PersistentBase imp
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 deepCopyToReadOnlyBuffer(
- java.nio.ByteBuffer input) {
+ java.nio.ByteBuffer input) {
java.nio.ByteBuffer copy = java.nio.ByteBuffer.allocate(input.capacity());
int position = input.position();
input.reset();
@@ -343,12 +343,12 @@ public class WebPage extends org.apache.gora.persistency.impl.PersistentBase imp
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> {
+ implements org.apache.avro.data.RecordBuilder<WebPage> {
private java.lang.CharSequence url;
private java.nio.ByteBuffer content;
@@ -363,15 +363,15 @@ public class WebPage extends org.apache.gora.persistency.impl.PersistentBase imp
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$);
+ super(org.apache.gora.examples.generated.WebPage.SCHEMA$);
if (isValidValue(fields()[0], other.url)) {
this.url = (java.lang.CharSequence) data().deepCopy(fields()[0].schema(), other.url);
fieldSetFlags()[0] = true;
@@ -410,202 +410,202 @@ public class WebPage extends org.apache.gora.persistency.impl.PersistentBase imp
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()[0], value);
this.url = value;
fieldSetFlags()[0] = true;
- return this;
+ return this;
}
-
+
/** Checks whether the 'url' field has been set */
public boolean hasUrl() {
return fieldSetFlags()[0];
}
-
+
/** Clears the value of the 'url' field */
public org.apache.gora.examples.generated.WebPage.Builder clearUrl() {
url = null;
fieldSetFlags()[0] = 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()[1], value);
this.content = value;
fieldSetFlags()[1] = true;
- return this;
+ return this;
}
-
+
/** Checks whether the 'content' field has been set */
public boolean hasContent() {
return fieldSetFlags()[1];
}
-
+
/** Clears the value of the 'content' field */
public org.apache.gora.examples.generated.WebPage.Builder clearContent() {
content = null;
fieldSetFlags()[1] = 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()[2], value);
this.parsedContent = value;
fieldSetFlags()[2] = true;
- return this;
+ return this;
}
-
+
/** Checks whether the 'parsedContent' field has been set */
public boolean hasParsedContent() {
return fieldSetFlags()[2];
}
-
+
/** Clears the value of the 'parsedContent' field */
public org.apache.gora.examples.generated.WebPage.Builder clearParsedContent() {
parsedContent = null;
fieldSetFlags()[2] = 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()[3], value);
this.outlinks = value;
fieldSetFlags()[3] = true;
- return this;
+ return this;
}
-
+
/** Checks whether the 'outlinks' field has been set */
public boolean hasOutlinks() {
return fieldSetFlags()[3];
}
-
+
/** Clears the value of the 'outlinks' field */
public org.apache.gora.examples.generated.WebPage.Builder clearOutlinks() {
outlinks = null;
fieldSetFlags()[3] = false;
return this;
}
-
+
/** Gets the value of the 'headers' field */
public java.util.Map<java.lang.CharSequence,java.lang.CharSequence> getHeaders() {
return headers;
}
-
+
/** Sets the value of the 'headers' field */
public org.apache.gora.examples.generated.WebPage.Builder setHeaders(java.util.Map<java.lang.CharSequence,java.lang.CharSequence> value) {
validate(fields()[4], value);
this.headers = value;
fieldSetFlags()[4] = true;
- return this;
+ return this;
}
-
+
/** Checks whether the 'headers' field has been set */
public boolean hasHeaders() {
return fieldSetFlags()[4];
}
-
+
/** Clears the value of the 'headers' field */
public org.apache.gora.examples.generated.WebPage.Builder clearHeaders() {
headers = 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;
+ 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;
}
-
+
/** Gets the value of the 'byteData' field */
public java.util.Map<java.lang.CharSequence,java.nio.ByteBuffer> getByteData() {
return byteData;
}
-
+
/** Sets the value of the 'byteData' field */
public org.apache.gora.examples.generated.WebPage.Builder setByteData(java.util.Map<java.lang.CharSequence,java.nio.ByteBuffer> value) {
validate(fields()[6], value);
this.byteData = value;
fieldSetFlags()[6] = true;
- return this;
+ return this;
}
-
+
/** Checks whether the 'byteData' field has been set */
public boolean hasByteData() {
return fieldSetFlags()[6];
}
-
+
/** Clears the value of the 'byteData' field */
public org.apache.gora.examples.generated.WebPage.Builder clearByteData() {
byteData = null;
fieldSetFlags()[6] = false;
return this;
}
-
+
/** Gets the value of the 'stringData' field */
public java.util.Map<java.lang.CharSequence,java.lang.CharSequence> getStringData() {
return stringData;
}
-
+
/** Sets the value of the 'stringData' field */
public org.apache.gora.examples.generated.WebPage.Builder setStringData(java.util.Map<java.lang.CharSequence,java.lang.CharSequence> value) {
validate(fields()[7], value);
this.stringData = value;
fieldSetFlags()[7] = true;
- return this;
+ return this;
}
-
+
/** Checks whether the 'stringData' field has been set */
public boolean hasStringData() {
return fieldSetFlags()[7];
}
-
+
/** Clears the value of the 'stringData' field */
public org.apache.gora.examples.generated.WebPage.Builder clearStringData() {
stringData = null;
fieldSetFlags()[7] = false;
return this;
}
-
+
@Override
public WebPage build() {
try {
@@ -624,9 +624,9 @@ public class WebPage extends org.apache.gora.persistency.impl.PersistentBase imp
}
}
}
-
+
public WebPage.Tombstone getTombstone(){
- return TOMBSTONE;
+ return TOMBSTONE;
}
public WebPage newInstance(){
@@ -634,196 +634,196 @@ public class WebPage extends org.apache.gora.persistency.impl.PersistentBase imp
}
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() {
- 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() {
- 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() {
- 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() {
- throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
- }
-
- /**
- * Gets the value of the 'headers' field.
- */
- public java.util.Map<java.lang.CharSequence,java.lang.CharSequence> getHeaders() {
- throw new java.lang.UnsupportedOperationException("Get is not supported on tombstones");
- }
-
- /**
- * Sets the value of the 'headers' field.
- * @param value the value to set.
- */
- public void setHeaders(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 'headers' 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 isHeadersDirty() {
- 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() {
- throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
- }
-
- /**
- * Gets the value of the 'byteData' field.
- */
- public java.util.Map<java.lang.CharSequence,java.nio.ByteBuffer> getByteData() {
- throw new java.lang.UnsupportedOperationException("Get is not supported on tombstones");
- }
-
- /**
- * Sets the value of the 'byteData' field.
- * @param value the value to set.
- */
- public void setByteData(java.util.Map<java.lang.CharSequence,java.nio.ByteBuffer> value) {
- throw new java.lang.UnsupportedOperationException("Set is not supported on tombstones");
- }
-
- /**
- * Checks the dirty status of the 'byteData' 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 isByteDataDirty() {
- throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
- }
-
- /**
- * Gets the value of the 'stringData' field.
- */
- public java.util.Map<java.lang.CharSequence,java.lang.CharSequence> getStringData() {
- throw new java.lang.UnsupportedOperationException("Get is not supported on tombstones");
- }
-
- /**
- * Sets the value of the 'stringData' field.
- * @param value the value to set.
- */
- public void setStringData(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 'stringData' 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 isStringDataDirty() {
- throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
- }
-
-
+
+ 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() {
+ 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() {
+ 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() {
+ 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() {
+ throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
+ }
+
+ /**
+ * Gets the value of the 'headers' field.
+ */
+ public java.util.Map<java.lang.CharSequence,java.lang.CharSequence> getHeaders() {
+ throw new java.lang.UnsupportedOperationException("Get is not supported on tombstones");
+ }
+
+ /**
+ * Sets the value of the 'headers' field.
+ * @param value the value to set.
+ */
+ public void setHeaders(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 'headers' 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 isHeadersDirty() {
+ 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() {
+ throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
+ }
+
+ /**
+ * Gets the value of the 'byteData' field.
+ */
+ public java.util.Map<java.lang.CharSequence,java.nio.ByteBuffer> getByteData() {
+ throw new java.lang.UnsupportedOperationException("Get is not supported on tombstones");
+ }
+
+ /**
+ * Sets the value of the 'byteData' field.
+ * @param value the value to set.
+ */
+ public void setByteData(java.util.Map<java.lang.CharSequence,java.nio.ByteBuffer> value) {
+ throw new java.lang.UnsupportedOperationException("Set is not supported on tombstones");
+ }
+
+ /**
+ * Checks the dirty status of the 'byteData' 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 isByteDataDirty() {
+ throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
+ }
+
+ /**
+ * Gets the value of the 'stringData' field.
+ */
+ public java.util.Map<java.lang.CharSequence,java.lang.CharSequence> getStringData() {
+ throw new java.lang.UnsupportedOperationException("Get is not supported on tombstones");
+ }
+
+ /**
+ * Sets the value of the 'stringData' field.
+ * @param value the value to set.
+ */
+ public void setStringData(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 'stringData' 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 isStringDataDirty() {
+ throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
+ }
+
+
}
private static final org.apache.avro.io.DatumWriter
@@ -864,4 +864,3 @@ public class WebPage extends org.apache.gora.persistency.impl.PersistentBase imp
}
}
-
http://git-wip-us.apache.org/repos/asf/gora/blob/f14dbd4b/gora-goraci/src/main/java/org/apache/gora/goraci/generated/CINode.java
----------------------------------------------------------------------
diff --git a/gora-goraci/src/main/java/org/apache/gora/goraci/generated/CINode.java b/gora-goraci/src/main/java/org/apache/gora/goraci/generated/CINode.java
index 3dddfd0..b6e796a 100644
--- a/gora-goraci/src/main/java/org/apache/gora/goraci/generated/CINode.java
+++ b/gora-goraci/src/main/java/org/apache/gora/goraci/generated/CINode.java
@@ -1,13 +1,13 @@
/**
* Autogenerated by Avro
- *
+ *
* DO NOT EDIT DIRECTLY
*/
-package org.apache.gora.goraci.generated;
+package org.apache.gora.goraci.generated;
@SuppressWarnings("all")
public class CINode 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\":\"CINode\",\"namespace\":\"org.apache.gora.goraci.generated\",\"fields\":[{\"name\":\"prev\",\"type\":\"long\",\"default\":0},{\"name\":\"client\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"count\",\"type\":\"long\",\"default\":0}]}");
- private static final long serialVersionUID = -6468893532296148608L;
+ private static final long serialVersionUID = 1014651356631895518L;
/** Enum containing all data bean's fields. */
public static enum Field {
PREV(0, "prev"),
@@ -51,9 +51,9 @@ public class CINode extends org.apache.gora.persistency.impl.PersistentBase impl
};
public static final String[] _ALL_FIELDS = {
- "prev",
- "client",
- "count",
+ "prev",
+ "client",
+ "count",
};
/**
@@ -68,24 +68,24 @@ public class CINode extends org.apache.gora.persistency.impl.PersistentBase impl
private java.lang.CharSequence client;
private long count;
public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
+ // Used by DatumWriter. Applications should not call.
public java.lang.Object get(int field$) {
switch (field$) {
- case 0: return prev;
- case 1: return client;
- case 2: return count;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
+ case 0: return prev;
+ case 1: return client;
+ case 2: return count;
+ default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
-
- // Used by DatumReader. Applications should not call.
+
+ // Used by DatumReader. Applications should not call.
@SuppressWarnings(value="unchecked")
public void put(int field$, java.lang.Object value) {
switch (field$) {
- case 0: prev = (java.lang.Long)(value); break;
- case 1: client = (java.lang.CharSequence)(value); break;
- case 2: count = (java.lang.Long)(value); break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
+ case 0: prev = (java.lang.Long)(value); break;
+ case 1: client = (java.lang.CharSequence)(value); break;
+ case 2: count = (java.lang.Long)(value); break;
+ default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
@@ -104,9 +104,10 @@ public class CINode extends org.apache.gora.persistency.impl.PersistentBase impl
this.prev = value;
setDirty(0);
}
-
+
/**
* Checks the dirty status of the 'prev' 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 isPrevDirty() {
return isDirty(0);
@@ -127,9 +128,10 @@ public class CINode extends org.apache.gora.persistency.impl.PersistentBase impl
this.client = value;
setDirty(1);
}
-
+
/**
* Checks the dirty status of the 'client' 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 isClientDirty() {
return isDirty(1);
@@ -150,9 +152,10 @@ public class CINode extends org.apache.gora.persistency.impl.PersistentBase impl
this.count = value;
setDirty(2);
}
-
+
/**
* 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() {
return isDirty(2);
@@ -162,19 +165,19 @@ public class CINode extends org.apache.gora.persistency.impl.PersistentBase impl
public static org.apache.gora.goraci.generated.CINode.Builder newBuilder() {
return new org.apache.gora.goraci.generated.CINode.Builder();
}
-
+
/** Creates a new CINode RecordBuilder by copying an existing Builder */
public static org.apache.gora.goraci.generated.CINode.Builder newBuilder(org.apache.gora.goraci.generated.CINode.Builder other) {
return new org.apache.gora.goraci.generated.CINode.Builder(other);
}
-
+
/** Creates a new CINode RecordBuilder by copying an existing CINode instance */
public static org.apache.gora.goraci.generated.CINode.Builder newBuilder(org.apache.gora.goraci.generated.CINode other) {
return new org.apache.gora.goraci.generated.CINode.Builder(other);
}
-
+
private static java.nio.ByteBuffer deepCopyToReadOnlyBuffer(
- java.nio.ByteBuffer input) {
+ java.nio.ByteBuffer input) {
java.nio.ByteBuffer copy = java.nio.ByteBuffer.allocate(input.capacity());
int position = input.position();
input.reset();
@@ -195,12 +198,12 @@ public class CINode extends org.apache.gora.persistency.impl.PersistentBase impl
copy.limit(limit);
return copy.asReadOnlyBuffer();
}
-
+
/**
* RecordBuilder for CINode instances.
*/
public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<CINode>
- implements org.apache.avro.data.RecordBuilder<CINode> {
+ implements org.apache.avro.data.RecordBuilder<CINode> {
private long prev;
private java.lang.CharSequence client;
@@ -210,15 +213,15 @@ public class CINode extends org.apache.gora.persistency.impl.PersistentBase impl
private Builder() {
super(org.apache.gora.goraci.generated.CINode.SCHEMA$);
}
-
+
/** Creates a Builder by copying an existing Builder */
private Builder(org.apache.gora.goraci.generated.CINode.Builder other) {
super(other);
}
-
+
/** Creates a Builder by copying an existing CINode instance */
private Builder(org.apache.gora.goraci.generated.CINode other) {
- super(org.apache.gora.goraci.generated.CINode.SCHEMA$);
+ super(org.apache.gora.goraci.generated.CINode.SCHEMA$);
if (isValidValue(fields()[0], other.prev)) {
this.prev = (java.lang.Long) data().deepCopy(fields()[0].schema(), other.prev);
fieldSetFlags()[0] = true;
@@ -237,75 +240,75 @@ public class CINode extends org.apache.gora.persistency.impl.PersistentBase impl
public java.lang.Long getPrev() {
return prev;
}
-
+
/** Sets the value of the 'prev' field */
public org.apache.gora.goraci.generated.CINode.Builder setPrev(long value) {
validate(fields()[0], value);
this.prev = value;
fieldSetFlags()[0] = true;
- return this;
+ return this;
}
-
+
/** Checks whether the 'prev' field has been set */
public boolean hasPrev() {
return fieldSetFlags()[0];
}
-
+
/** Clears the value of the 'prev' field */
public org.apache.gora.goraci.generated.CINode.Builder clearPrev() {
fieldSetFlags()[0] = false;
return this;
}
-
+
/** Gets the value of the 'client' field */
public java.lang.CharSequence getClient() {
return client;
}
-
+
/** Sets the value of the 'client' field */
public org.apache.gora.goraci.generated.CINode.Builder setClient(java.lang.CharSequence value) {
validate(fields()[1], value);
this.client = value;
fieldSetFlags()[1] = true;
- return this;
+ return this;
}
-
+
/** Checks whether the 'client' field has been set */
public boolean hasClient() {
return fieldSetFlags()[1];
}
-
+
/** Clears the value of the 'client' field */
public org.apache.gora.goraci.generated.CINode.Builder clearClient() {
client = null;
fieldSetFlags()[1] = false;
return this;
}
-
+
/** Gets the value of the 'count' field */
public java.lang.Long getCount() {
return count;
}
-
+
/** Sets the value of the 'count' field */
public org.apache.gora.goraci.generated.CINode.Builder setCount(long value) {
validate(fields()[2], value);
this.count = value;
fieldSetFlags()[2] = true;
- return this;
+ return this;
}
-
+
/** Checks whether the 'count' field has been set */
public boolean hasCount() {
return fieldSetFlags()[2];
}
-
+
/** Clears the value of the 'count' field */
public org.apache.gora.goraci.generated.CINode.Builder clearCount() {
fieldSetFlags()[2] = false;
return this;
}
-
+
@Override
public CINode build() {
try {
@@ -319,9 +322,9 @@ public class CINode extends org.apache.gora.persistency.impl.PersistentBase impl
}
}
}
-
+
public CINode.Tombstone getTombstone(){
- return TOMBSTONE;
+ return TOMBSTONE;
}
public CINode newInstance(){
@@ -329,78 +332,81 @@ public class CINode extends org.apache.gora.persistency.impl.PersistentBase impl
}
private static final Tombstone TOMBSTONE = new Tombstone();
-
+
public static final class Tombstone extends CINode implements org.apache.gora.persistency.Tombstone {
-
- private Tombstone() { }
-
- /**
- * Gets the value of the 'prev' field.
- */
- public java.lang.Long getPrev() {
- throw new java.lang.UnsupportedOperationException("Get is not supported on tombstones");
- }
-
- /**
- * Sets the value of the 'prev' field.
- * @param value the value to set.
- */
- public void setPrev(java.lang.Long value) {
- throw new java.lang.UnsupportedOperationException("Set is not supported on tombstones");
- }
-
- /**
- * Checks the dirty status of the 'prev' field. A field is dirty if it represents a change that has not yet been written to the database.
- */
- public boolean isPrevDirty() {
- throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
- }
-
- /**
- * Gets the value of the 'client' field.
- */
- public java.lang.CharSequence getClient() {
- throw new java.lang.UnsupportedOperationException("Get is not supported on tombstones");
- }
-
- /**
- * Sets the value of the 'client' field.
- * @param value the value to set.
- */
- public void setClient(java.lang.CharSequence value) {
- throw new java.lang.UnsupportedOperationException("Set is not supported on tombstones");
- }
-
- /**
- * Checks the dirty status of the 'client' field. A field is dirty if it represents a change that has not yet been written to the database.
- */
- public boolean isClientDirty() {
- throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
- }
-
- /**
- * Gets the value of the 'count' field.
- */
- public java.lang.Long 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.Long 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.
- */
- public boolean isCountDirty() {
- throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
- }
-
-
+
+ private Tombstone() { }
+
+ /**
+ * Gets the value of the 'prev' field.
+ */
+ public java.lang.Long getPrev() {
+ throw new java.lang.UnsupportedOperationException("Get is not supported on tombstones");
+ }
+
+ /**
+ * Sets the value of the 'prev' field.
+ * @param value the value to set.
+ */
+ public void setPrev(java.lang.Long value) {
+ throw new java.lang.UnsupportedOperationException("Set is not supported on tombstones");
+ }
+
+ /**
+ * Checks the dirty status of the 'prev' 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 isPrevDirty() {
+ throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
+ }
+
+ /**
+ * Gets the value of the 'client' field.
+ */
+ public java.lang.CharSequence getClient() {
+ throw new java.lang.UnsupportedOperationException("Get is not supported on tombstones");
+ }
+
+ /**
+ * Sets the value of the 'client' field.
+ * @param value the value to set.
+ */
+ public void setClient(java.lang.CharSequence value) {
+ throw new java.lang.UnsupportedOperationException("Set is not supported on tombstones");
+ }
+
+ /**
+ * Checks the dirty status of the 'client' 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 isClientDirty() {
+ throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
+ }
+
+ /**
+ * Gets the value of the 'count' field.
+ */
+ public java.lang.Long 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.Long 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() {
+ throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
+ }
+
+
}
private static final org.apache.avro.io.DatumWriter
@@ -439,6 +445,5 @@ public class CINode extends org.apache.gora.persistency.impl.PersistentBase impl
.directBinaryDecoder((java.io.InputStream) in,
null));
}
-
-}
+}
http://git-wip-us.apache.org/repos/asf/gora/blob/f14dbd4b/gora-goraci/src/main/java/org/apache/gora/goraci/generated/Flushed.java
----------------------------------------------------------------------
diff --git a/gora-goraci/src/main/java/org/apache/gora/goraci/generated/Flushed.java b/gora-goraci/src/main/java/org/apache/gora/goraci/generated/Flushed.java
index 53bfaec..f9eae59 100644
--- a/gora-goraci/src/main/java/org/apache/gora/goraci/generated/Flushed.java
+++ b/gora-goraci/src/main/java/org/apache/gora/goraci/generated/Flushed.java
@@ -1,13 +1,13 @@
/**
* Autogenerated by Avro
- *
+ *
* DO NOT EDIT DIRECTLY
*/
-package org.apache.gora.goraci.generated;
+package org.apache.gora.goraci.generated;
@SuppressWarnings("all")
public class Flushed 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\":\"Flushed\",\"namespace\":\"org.apache.gora.goraci.generated\",\"fields\":[{\"name\":\"count\",\"type\":\"long\",\"default\":0}]}");
- private static final long serialVersionUID = -6468883532296148608L;
+ private static final long serialVersionUID = -8888031915401438521L;
/** Enum containing all data bean's fields. */
public static enum Field {
COUNT(0, "count"),
@@ -49,7 +49,7 @@ public class Flushed extends org.apache.gora.persistency.impl.PersistentBase imp
};
public static final String[] _ALL_FIELDS = {
- "count",
+ "count",
};
/**
@@ -62,20 +62,20 @@ public class Flushed extends org.apache.gora.persistency.impl.PersistentBase imp
private long count;
public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
+ // Used by DatumWriter. Applications should not call.
public java.lang.Object get(int field$) {
switch (field$) {
- case 0: return count;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
+ case 0: return count;
+ default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
-
- // Used by DatumReader. Applications should not call.
+
+ // Used by DatumReader. Applications should not call.
@SuppressWarnings(value="unchecked")
public void put(int field$, java.lang.Object value) {
switch (field$) {
- case 0: count = (java.lang.Long)(value); break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
+ case 0: count = (java.lang.Long)(value); break;
+ default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
@@ -94,9 +94,10 @@ public class Flushed extends org.apache.gora.persistency.impl.PersistentBase imp
this.count = value;
setDirty(0);
}
-
+
/**
* 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() {
return isDirty(0);
@@ -106,19 +107,19 @@ public class Flushed extends org.apache.gora.persistency.impl.PersistentBase imp
public static org.apache.gora.goraci.generated.Flushed.Builder newBuilder() {
return new org.apache.gora.goraci.generated.Flushed.Builder();
}
-
+
/** Creates a new Flushed RecordBuilder by copying an existing Builder */
public static org.apache.gora.goraci.generated.Flushed.Builder newBuilder(org.apache.gora.goraci.generated.Flushed.Builder other) {
return new org.apache.gora.goraci.generated.Flushed.Builder(other);
}
-
+
/** Creates a new Flushed RecordBuilder by copying an existing Flushed instance */
public static org.apache.gora.goraci.generated.Flushed.Builder newBuilder(org.apache.gora.goraci.generated.Flushed other) {
return new org.apache.gora.goraci.generated.Flushed.Builder(other);
}
-
+
private static java.nio.ByteBuffer deepCopyToReadOnlyBuffer(
- java.nio.ByteBuffer input) {
+ java.nio.ByteBuffer input) {
java.nio.ByteBuffer copy = java.nio.ByteBuffer.allocate(input.capacity());
int position = input.position();
input.reset();
@@ -139,12 +140,12 @@ public class Flushed extends org.apache.gora.persistency.impl.PersistentBase imp
copy.limit(limit);
return copy.asReadOnlyBuffer();
}
-
+
/**
* RecordBuilder for Flushed instances.
*/
public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<Flushed>
- implements org.apache.avro.data.RecordBuilder<Flushed> {
+ implements org.apache.avro.data.RecordBuilder<Flushed> {
private long count;
@@ -152,15 +153,15 @@ public class Flushed extends org.apache.gora.persistency.impl.PersistentBase imp
private Builder() {
super(org.apache.gora.goraci.generated.Flushed.SCHEMA$);
}
-
+
/** Creates a Builder by copying an existing Builder */
private Builder(org.apache.gora.goraci.generated.Flushed.Builder other) {
super(other);
}
-
+
/** Creates a Builder by copying an existing Flushed instance */
private Builder(org.apache.gora.goraci.generated.Flushed other) {
- super(org.apache.gora.goraci.generated.Flushed.SCHEMA$);
+ super(org.apache.gora.goraci.generated.Flushed.SCHEMA$);
if (isValidValue(fields()[0], other.count)) {
this.count = (java.lang.Long) data().deepCopy(fields()[0].schema(), other.count);
fieldSetFlags()[0] = true;
@@ -171,26 +172,26 @@ public class Flushed extends org.apache.gora.persistency.impl.PersistentBase imp
public java.lang.Long getCount() {
return count;
}
-
+
/** Sets the value of the 'count' field */
public org.apache.gora.goraci.generated.Flushed.Builder setCount(long value) {
validate(fields()[0], value);
this.count = value;
fieldSetFlags()[0] = true;
- return this;
+ return this;
}
-
+
/** Checks whether the 'count' field has been set */
public boolean hasCount() {
return fieldSetFlags()[0];
}
-
+
/** Clears the value of the 'count' field */
public org.apache.gora.goraci.generated.Flushed.Builder clearCount() {
fieldSetFlags()[0] = false;
return this;
}
-
+
@Override
public Flushed build() {
try {
@@ -202,9 +203,9 @@ public class Flushed extends org.apache.gora.persistency.impl.PersistentBase imp
}
}
}
-
+
public Flushed.Tombstone getTombstone(){
- return TOMBSTONE;
+ return TOMBSTONE;
}
public Flushed newInstance(){
@@ -212,34 +213,35 @@ public class Flushed extends org.apache.gora.persistency.impl.PersistentBase imp
}
private static final Tombstone TOMBSTONE = new Tombstone();
-
+
public static final class Tombstone extends Flushed implements org.apache.gora.persistency.Tombstone {
-
- private Tombstone() { }
-
- /**
- * Gets the value of the 'count' field.
- */
- public java.lang.Long 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.Long 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.
- */
- public boolean isCountDirty() {
- throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
- }
-
-
+
+ private Tombstone() { }
+
+ /**
+ * Gets the value of the 'count' field.
+ */
+ public java.lang.Long 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.Long 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() {
+ throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
+ }
+
+
}
private static final org.apache.avro.io.DatumWriter
@@ -278,6 +280,5 @@ public class Flushed extends org.apache.gora.persistency.impl.PersistentBase imp
.directBinaryDecoder((java.io.InputStream) in,
null));
}
-
-}
+}
http://git-wip-us.apache.org/repos/asf/gora/blob/f14dbd4b/gora-tutorial/src/main/java/org/apache/gora/tutorial/log/generated/MetricDatum.java
----------------------------------------------------------------------
diff --git a/gora-tutorial/src/main/java/org/apache/gora/tutorial/log/generated/MetricDatum.java b/gora-tutorial/src/main/java/org/apache/gora/tutorial/log/generated/MetricDatum.java
index 4b541bc..5fa11a8 100644
--- a/gora-tutorial/src/main/java/org/apache/gora/tutorial/log/generated/MetricDatum.java
+++ b/gora-tutorial/src/main/java/org/apache/gora/tutorial/log/generated/MetricDatum.java
@@ -1,12 +1,13 @@
/**
* Autogenerated by Avro
- *
+ *
* DO NOT EDIT DIRECTLY
*/
-package org.apache.gora.tutorial.log.generated;
+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\":\"metricDimension\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"timestamp\",\"type\":\"long\",\"default\":0},{\"name\":\"metric\",\"type\":\"long\",\"default\":0}],\"default\":null}");
- private static final long serialVersionUID = -6468793522296148608L;
+ private static final long serialVersionUID = 8278557845311856507L;
/** Enum containing all data bean's fields. */
public static enum Field {
METRIC_DIMENSION(0, "metricDimension"),
@@ -50,9 +51,9 @@ public class MetricDatum extends org.apache.gora.persistency.impl.PersistentBase
};
public static final String[] _ALL_FIELDS = {
- "metricDimension",
- "timestamp",
- "metric",
+ "metricDimension",
+ "timestamp",
+ "metric",
};
/**
@@ -67,24 +68,24 @@ public class MetricDatum extends org.apache.gora.persistency.impl.PersistentBase
private long timestamp;
private long metric;
public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
+ // Used by DatumWriter. Applications should not call.
public java.lang.Object get(int field$) {
switch (field$) {
- case 0: return metricDimension;
- case 1: return timestamp;
- case 2: return metric;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
+ case 0: return metricDimension;
+ case 1: return timestamp;
+ case 2: return metric;
+ default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
-
- // Used by DatumReader. Applications should not call.
+
+ // Used by DatumReader. Applications should not call.
@SuppressWarnings(value="unchecked")
public void put(int field$, java.lang.Object value) {
switch (field$) {
- case 0: metricDimension = (java.lang.CharSequence)(value); break;
- case 1: timestamp = (java.lang.Long)(value); break;
- case 2: metric = (java.lang.Long)(value); break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
+ case 0: metricDimension = (java.lang.CharSequence)(value); break;
+ case 1: timestamp = (java.lang.Long)(value); break;
+ case 2: metric = (java.lang.Long)(value); break;
+ default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
@@ -103,9 +104,10 @@ public class MetricDatum extends org.apache.gora.persistency.impl.PersistentBase
this.metricDimension = value;
setDirty(0);
}
-
+
/**
* 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() {
return isDirty(0);
@@ -126,9 +128,10 @@ public class MetricDatum extends org.apache.gora.persistency.impl.PersistentBase
this.timestamp = value;
setDirty(1);
}
-
+
/**
* 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() {
return isDirty(1);
@@ -149,9 +152,10 @@ public class MetricDatum extends org.apache.gora.persistency.impl.PersistentBase
this.metric = value;
setDirty(2);
}
-
+
/**
* 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() {
return isDirty(2);
@@ -161,19 +165,19 @@ public class MetricDatum extends org.apache.gora.persistency.impl.PersistentBase
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 deepCopyToReadOnlyBuffer(
- java.nio.ByteBuffer input) {
+ java.nio.ByteBuffer input) {
java.nio.ByteBuffer copy = java.nio.ByteBuffer.allocate(input.capacity());
int position = input.position();
input.reset();
@@ -194,12 +198,12 @@ public class MetricDatum extends org.apache.gora.persistency.impl.PersistentBase
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> {
+ implements org.apache.avro.data.RecordBuilder<MetricDatum> {
private java.lang.CharSequence metricDimension;
private long timestamp;
@@ -209,15 +213,15 @@ public class MetricDatum extends org.apache.gora.persistency.impl.PersistentBase
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$);
+ super(org.apache.gora.tutorial.log.generated.MetricDatum.SCHEMA$);
if (isValidValue(fields()[0], other.metricDimension)) {
this.metricDimension = (java.lang.CharSequence) data().deepCopy(fields()[0].schema(), other.metricDimension);
fieldSetFlags()[0] = true;
@@ -236,75 +240,75 @@ public class MetricDatum extends org.apache.gora.persistency.impl.PersistentBase
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()[0], value);
this.metricDimension = value;
fieldSetFlags()[0] = true;
- return this;
+ return this;
}
-
+
/** Checks whether the 'metricDimension' field has been set */
public boolean hasMetricDimension() {
return fieldSetFlags()[0];
}
-
+
/** Clears the value of the 'metricDimension' field */
public org.apache.gora.tutorial.log.generated.MetricDatum.Builder clearMetricDimension() {
metricDimension = null;
fieldSetFlags()[0] = 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()[1], value);
this.timestamp = value;
fieldSetFlags()[1] = true;
- return this;
+ return this;
}
-
+
/** Checks whether the 'timestamp' field has been set */
public boolean hasTimestamp() {
return fieldSetFlags()[1];
}
-
+
/** Clears the value of the 'timestamp' field */
public org.apache.gora.tutorial.log.generated.MetricDatum.Builder clearTimestamp() {
fieldSetFlags()[1] = 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()[2], value);
this.metric = value;
fieldSetFlags()[2] = true;
- return this;
+ return this;
}
-
+
/** Checks whether the 'metric' field has been set */
public boolean hasMetric() {
return fieldSetFlags()[2];
}
-
+
/** Clears the value of the 'metric' field */
public org.apache.gora.tutorial.log.generated.MetricDatum.Builder clearMetric() {
fieldSetFlags()[2] = false;
return this;
}
-
+
@Override
public MetricDatum build() {
try {
@@ -318,9 +322,9 @@ public class MetricDatum extends org.apache.gora.persistency.impl.PersistentBase
}
}
}
-
+
public MetricDatum.Tombstone getTombstone(){
- return TOMBSTONE;
+ return TOMBSTONE;
}
public MetricDatum newInstance(){
@@ -328,78 +332,81 @@ public class MetricDatum extends org.apache.gora.persistency.impl.PersistentBase
}
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.
- */
- public boolean isMetricDimensionDirty() {
- 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.
- */
- public boolean isTimestampDirty() {
- 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.
- */
- public boolean isMetricDirty() {
- throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
- }
-
-
+
+ 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() {
+ 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() {
+ 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() {
+ throw new java.lang.UnsupportedOperationException("IsDirty is not supported on tombstones");
+ }
+
+
}
private static final org.apache.avro.io.DatumWriter
@@ -438,6 +445,5 @@ public class MetricDatum extends org.apache.gora.persistency.impl.PersistentBase
.directBinaryDecoder((java.io.InputStream) in,
null));
}
-
-}
+}