public class GVertex
extends org.apache.gora.persistency.impl.PersistentBase
implements org.apache.avro.specific.SpecificRecord, org.apache.gora.persistency.Persistent
Modifier and Type | Class and Description |
---|---|
static class |
GVertex.Builder
RecordBuilder for GVertex instances.
|
static class |
GVertex.Field
Enum containing all data bean's fields.
|
static class |
GVertex.Tombstone
Tombstone class.
|
Modifier and Type | Field and Description |
---|---|
static org.apache.avro.Schema |
SCHEMAS
Schema used for the class.
|
Constructor and Description |
---|
GVertex() |
Modifier and Type | Method and Description |
---|---|
Object |
get(int field)
Gets field
|
Map<CharSequence,CharSequence> |
getEdges()
Gets the value of the 'edges' field.
|
int |
getFieldsCount()
Gets the total field count.
|
org.apache.avro.Schema |
getSchema()
Gets the schema
|
GVertex.Tombstone |
getTombstone()
Gets tombstone
|
CharSequence |
getVertexId()
Gets the value of the 'vertexId' field.
|
Float |
getVertexValue()
Gets the value of the 'vertexValue' field.
|
boolean |
isEdgesDirty(Map<CharSequence,CharSequence> value)
Checks the dirty status of the 'edges' field.
|
boolean |
isVertexIdDirty(CharSequence value)
Checks the dirty status of the 'vertexId' field.
|
boolean |
isVertexValueDirty(Float value)
Checks the dirty status of the 'vertexValue' field.
|
static GVertex.Builder |
newBuilder()
Creates a new GVertex RecordBuilder.
|
static GVertex.Builder |
newBuilder(GVertex.Builder other)
Creates a new GVertex RecordBuilder by copying an existing Builder.
|
static GVertex.Builder |
newBuilder(GVertex other)
Creates a new GVertex RecordBuilder by copying
an existing GVertex instance
|
GVertex |
newInstance()
Gets a new instance
|
void |
put(int field,
Object value)
Puts a value into a field.
|
void |
setEdges(Map<CharSequence,CharSequence> value)
Sets the value of the 'edges' field.
|
void |
setVertexId(CharSequence value)
Sets the value of the 'vertexId' field.
|
void |
setVertexValue(Float value)
Sets the value of the 'vertexValue' field.
|
clear, clearDirty, clearDirty, clearDirty, equals, getUnmanagedFields, isDirty, isDirty, isDirty, setDirty, setDirty, setDirty
compareTo, get, hashCode, put, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public int getFieldsCount()
getFieldsCount
in class org.apache.gora.persistency.impl.PersistentBase
public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
getSchema
in class org.apache.avro.specific.SpecificRecordBase
public Object get(int field)
get
in interface org.apache.avro.generic.IndexedRecord
get
in class org.apache.avro.specific.SpecificRecordBase
field
- index field.public void put(int field, Object value)
put
in interface org.apache.avro.generic.IndexedRecord
put
in class org.apache.avro.specific.SpecificRecordBase
field
- index of field used.value
- value of field used.public CharSequence getVertexId()
public void setVertexId(CharSequence value)
value
- the value to set.public boolean isVertexIdDirty(CharSequence value)
value
- the value to set.public Float getVertexValue()
public void setVertexValue(Float value)
value
- the value to set.public boolean isVertexValueDirty(Float value)
value
- the value to set.public Map<CharSequence,CharSequence> getEdges()
public void setEdges(Map<CharSequence,CharSequence> value)
value
- the value to set.public boolean isEdgesDirty(Map<CharSequence,CharSequence> value)
value
- the value to set.public static GVertex.Builder newBuilder()
public static GVertex.Builder newBuilder(GVertex.Builder other)
other
- GVertex.Builderpublic static GVertex.Builder newBuilder(GVertex other)
other
- GVertexpublic GVertex.Tombstone getTombstone()
getTombstone
in interface org.apache.gora.persistency.Persistent
public GVertex newInstance()
newInstance
in interface org.apache.gora.persistency.Persistent
Copyright © 2011-2019 The Apache Software Foundation. All Rights Reserved.