@Deprecated public abstract class GraphEntity extends Object
| Modifier and Type | Field and Description |
|---|---|
protected long |
id
Deprecated.
|
protected Map<String,Property<?>> |
propertyMap
Deprecated.
|
| Constructor and Description |
|---|
GraphEntity()
Deprecated.
|
GraphEntity(int propertiesCapacity)
Deprecated.
Use this constructor to reduce memory allocations
when properties are added to the edge
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(Property property)
Deprecated.
Add a property to the entity
|
void |
addProperty(String name,
Object value)
Deprecated.
Adds a property to the entity, by composing name, type and value to a property object
|
boolean |
equals(Object o)
Deprecated.
|
Set<String> |
getEntityPropertyNames()
Deprecated.
|
long |
getId()
Deprecated.
|
int |
getNumberOfProperties()
Deprecated.
|
Property |
getProperty(String propertyName)
Deprecated.
|
int |
hashCode()
Deprecated.
|
void |
removeProperty(String name)
Deprecated.
|
void |
setId(long id)
Deprecated.
|
abstract String |
toString()
Deprecated.
|
public GraphEntity()
public GraphEntity(int propertiesCapacity)
propertiesCapacity - preallocate the capacity for the propertiespublic long getId()
public void setId(long id)
id - - entity id to be setpublic void addProperty(String name, Object value)
name - value - public Set<String> getEntityPropertyNames()
public void addProperty(Property property)
property - public int getNumberOfProperties()
public Property getProperty(String propertyName)
propertyName - - property name as lookup key (String)public void removeProperty(String name)
name - - the name of the property to be removedCopyright © 2024. All rights reserved.