public class MemoryNode extends Object implements Node
Modifier and Type | Method and Description |
---|---|
Property |
createProperty(String type,
Object attribute) |
Relationship |
createRelationship(String type,
Node n) |
void |
delete() |
Object |
getAttribute(String type) |
<O> O |
getAttribute(String type,
Class<O> c) |
Iterator<? extends Edge> |
getEdgeIterator() |
Collection<? extends Edge> |
getEdges() |
int |
getNoEdges() |
int |
getNoProperties() |
int |
getNoRelationships() |
Collection<MemoryProperty> |
getProperties() |
Collection<MemoryProperty> |
getProperties(String type) |
Iterator<MemoryProperty> |
getPropertyIterator() |
Iterator<MemoryProperty> |
getPropertyIterator(String type) |
Iterator<MemoryRelationship> |
getRelationshipIterator() |
Iterator<MemoryRelationship> |
getRelationshipIterator(String type) |
Collection<MemoryRelationship> |
getRelationships() |
Collection<MemoryRelationship> |
getRelationships(String type) |
public Property createProperty(String type, Object attribute)
createProperty
in interface Node
public Relationship createRelationship(String type, Node n)
createRelationship
in interface Node
public Object getAttribute(String type)
getAttribute
in interface Node
public <O> O getAttribute(String type, Class<O> c)
getAttribute
in interface Node
public Iterator<? extends Edge> getEdgeIterator()
getEdgeIterator
in interface Node
public Collection<? extends Edge> getEdges()
public int getNoEdges()
getNoEdges
in interface Node
public int getNoProperties()
getNoProperties
in interface Node
public int getNoRelationships()
getNoRelationships
in interface Node
public Iterator<MemoryProperty> getPropertyIterator()
getPropertyIterator
in interface Node
public Collection<MemoryProperty> getProperties()
getProperties
in interface Node
public Iterator<MemoryProperty> getPropertyIterator(String type)
getPropertyIterator
in interface Node
public Collection<MemoryProperty> getProperties(String type)
getProperties
in interface Node
public Iterator<MemoryRelationship> getRelationshipIterator()
getRelationshipIterator
in interface Node
public Collection<MemoryRelationship> getRelationships()
getRelationships
in interface Node
public Iterator<MemoryRelationship> getRelationshipIterator(String type)
getRelationshipIterator
in interface Node
public Collection<MemoryRelationship> getRelationships(String type)
getRelationships
in interface Node
Copyright © 2018 University of California, Santa Cruz. All rights reserved.