-
- All Implemented Interfaces:
-
java.io.Externalizable,java.io.Serializable,java.lang.Comparable,org.apache.avro.generic.GenericContainer,org.apache.avro.generic.GenericRecord,org.apache.avro.generic.IndexedRecord,org.apache.avro.specific.SpecificRecord,org.apache.gora.persistency.Dirtyable,org.apache.gora.persistency.Persistent
public class GFieldGroup extends PersistentBase implements SpecificRecord, Persistent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumGFieldGroup.FieldEnum containing all data bean's fields.
public classGFieldGroup.BuilderRecordBuilder for GFieldGroup instances.
public final classGFieldGroup.Tombstone
-
Field Summary
Fields Modifier and Type Field Description public final static SchemaSCHEMA$public final static Array<String>_ALL_FIELDSprivate longidprivate longparentIdprivate CharSequencenameprivate Map<CharSequence, CharSequence>fields
-
Method Summary
Modifier and Type Method Description voidsetId(Long value)Sets the value of the 'id' field. voidsetParentId(Long value)Sets the value of the 'parentId' field. CharSequencegetName()Gets the value of the 'name' field. voidsetName(CharSequence value)Sets the value of the 'name' field. Map<CharSequence, CharSequence>getFields()Gets the value of the 'fields' field. voidsetFields(Map<CharSequence, CharSequence> value)Sets the value of the 'fields' field. intgetFieldsCount()Gets the total field count. SchemagetSchema()Objectget(int field$)voidput(int field$, Object value)booleanisIdDirty()Checks the dirty status of the 'id' field. booleanisParentIdDirty()Checks the dirty status of the 'parentId' field. booleanisNameDirty()Checks the dirty status of the 'name' field. booleanisFieldsDirty()Checks the dirty status of the 'fields' field. static GFieldGroup.BuildernewBuilder()Creates a new GFieldGroup RecordBuilder static GFieldGroup.BuildernewBuilder(GFieldGroup.Builder other)Creates a new GFieldGroup RecordBuilder by copying an existing Builder static GFieldGroup.BuildernewBuilder(GFieldGroup other)Creates a new GFieldGroup RecordBuilder by copying an existing GFieldGroup instance GFieldGroup.TombstonegetTombstone()GFieldGroupnewInstance()voidwriteExternal(ObjectOutput out)Writes AVRO data bean to output stream in the form of AVRO Binary encoding format. voidreadExternal(ObjectInput in)Reads AVRO data bean from input stream in it s AVRO Binary encoding format to Java object format.This will transform AVRO data bean from it s serializable form to deserialized Java object form. -
Methods inherited from class org.apache.gora.persistency.impl.PersistentBase
clear, clearDirty, equals, getDirtyBytes, getFieldsCount, getUnmanagedFields, isDirty, setDirty, setDirtyBytes -
Methods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, get, getConverion, getConversion, getSchema, hashCode, put, readExternal, toString, writeExternal -
Methods inherited from class org.apache.gora.persistency.Persistent
getTombstone, newInstance -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
setId
void setId(Long value)
Sets the value of the 'id' field.
- Parameters:
value- the value to set.
-
setParentId
void setParentId(Long value)
Sets the value of the 'parentId' field.
- Parameters:
value- the value to set.
-
getName
CharSequence getName()
Gets the value of the 'name' field.
-
setName
void setName(CharSequence value)
Sets the value of the 'name' field.
- Parameters:
value- the value to set.
-
getFields
Map<CharSequence, CharSequence> getFields()
Gets the value of the 'fields' field.
-
setFields
void setFields(Map<CharSequence, CharSequence> value)
Sets the value of the 'fields' field.
- Parameters:
value- the value to set.
-
getFieldsCount
int getFieldsCount()
Gets the total field count.
-
getSchema
Schema getSchema()
-
isIdDirty
boolean isIdDirty()
Checks the dirty status of the 'id' field. A field is dirty if it represents a change that has not yet been written to the database.
-
isParentIdDirty
boolean isParentIdDirty()
Checks the dirty status of the 'parentId' field. A field is dirty if it represents a change that has not yet been written to the database.
-
isNameDirty
boolean isNameDirty()
Checks the dirty status of the 'name' field. A field is dirty if it represents a change that has not yet been written to the database.
-
isFieldsDirty
boolean isFieldsDirty()
Checks the dirty status of the 'fields' field. A field is dirty if it represents a change that has not yet been written to the database.
-
newBuilder
static GFieldGroup.Builder newBuilder()
Creates a new GFieldGroup RecordBuilder
-
newBuilder
static GFieldGroup.Builder newBuilder(GFieldGroup.Builder other)
Creates a new GFieldGroup RecordBuilder by copying an existing Builder
-
newBuilder
static GFieldGroup.Builder newBuilder(GFieldGroup other)
Creates a new GFieldGroup RecordBuilder by copying an existing GFieldGroup instance
-
getTombstone
GFieldGroup.Tombstone getTombstone()
-
newInstance
GFieldGroup newInstance()
-
writeExternal
void writeExternal(ObjectOutput out)
Writes AVRO data bean to output stream in the form of AVRO Binary encoding format. This will transformAVRO data bean from its Java object form to it s serializable form.
- Parameters:
out- java.io.
-
readExternal
void readExternal(ObjectInput in)
Reads AVRO data bean from input stream in it s AVRO Binary encoding format to Java object format.This will transform AVRO data bean from it s serializable form to deserialized Java object form.
- Parameters:
in- java.io.
-
-
-
-