final class Graph extends AutoCloseable
- Alphabetic
- By Inheritance
- Graph
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def E(): Iterator[Edge]
Iterator over all edges - alias for
edges
- def V(ids: <repeated...>[Long]): Iterator[Node]
Iterator over nodes with provided ids - alias for
nodes(ids...)
note: does not return any nodes if no ids are provided - def V(): Iterator[Node]
Iterator over all nodes - alias for
nodes
- def addNode(id: Long, label: String, keyValues: <repeated...>[AnyRef]): Node
Add a node with given id, label and properties.
Add a node with given id, label and properties. Throws an
IllegalArgumentException
if a node with the given ID already exists - def addNode(label: String, keyValues: <repeated...>[AnyRef]): Node
Add a node with given label and properties Will automatically assign an ID - this is the safest option to avoid ID clashes.
- def applyBackpressureMaybe(): Unit
When we're running low on heap memory we'll serialize some elements to disk.
When we're running low on heap memory we'll serialize some elements to disk. To ensure we're not creating new ones faster than old ones are serialized away, we're applying some backpressure to those newly created ones.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def close(): Unit
If the config.graphLocation is set, data in the graph is persisted to that location.
If the config.graphLocation is set, data in the graph is persisted to that location.
If called from multiple threads concurrently, only one starts the shutdown process, but the other one will still be blocked. This is intentional: we also want the second caller to block until
close
is completed, and not falsely assume that it has finished, only because it exits straight away.- Definition Classes
- Graph → AutoCloseable
- Annotations
- @Override()
- def copyTo(destination: Graph): Unit
Copies all nodes/edges into the given empty graph, preserving their ids and properties.
- def createDetached(label: String): DetachedNodeData
- def edgeCount(): Int
calculates the number of edges in the graph Note: this is an expensive operation, because edges are stored as part of the nodes
- def edgeCountByLabel(): Map[String, Integer]
number of edges grouped by label
- def edges(label: String): Iterator[Edge]
Iterator over edges with given label
- def edges(): Iterator[Edge]
Iterator over all edges
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def getAllLibraryVersions(): ArrayList[Map[String, String]]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getStorage(): OdbStorage
- def getStringInterner(): StringInterner
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def isClosed(): Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def node(id: Long): Node
return node with given
id
, ornull
if there is no such node - def nodeCount(label: String): Int
number of nodes for given label
- def nodeCount(): Int
overall number of nodes
- def nodeCountByLabel(): Map[String, Integer]
number of nodes grouped by label
- def nodes(labelPredicate: Predicate[String]): Iterator[Node]
- def nodes(labels: Set[String]): Iterator[Node]
- def nodes(labels: <repeated...>[String]): Iterator[Node]
- def nodes(label: String): Iterator[Node]
- def nodes(ids: <repeated...>[Long]): Iterator[Node]
Iterator over nodes with provided ids empty, if no ids are provided
- final def nodes(): Iterator[Node]
Iterator over all nodes
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def persistLibraryVersion(name: String, version: String): Unit
- def registerNodeRef(ref: NodeRef): Unit
- def remove(node: Node): Unit
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- Graph → AnyRef → Any
- Annotations
- @Override()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()