Package n10s.result

Class VirtualNode

  • All Implemented Interfaces:
    org.neo4j.graphdb.Entity, org.neo4j.graphdb.Node

    public class VirtualNode
    extends java.lang.Object
    implements org.neo4j.graphdb.Node
    (taken from APOC)
    Since:
    16.03.16
    Author:
    mh
    • Constructor Summary

      Constructors 
      Constructor Description
      VirtualNode​(long nodeId)  
      VirtualNode​(long nodeId, org.neo4j.graphdb.Label[] labels, java.util.Map<java.lang.String,​java.lang.Object> props)  
      VirtualNode​(org.neo4j.graphdb.Label[] labels, java.util.Map<java.lang.String,​java.lang.Object> props)  
      VirtualNode​(org.neo4j.graphdb.Node node, java.util.List<java.lang.String> propertyNames)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addLabel​(org.neo4j.graphdb.Label label)  
      void addLabels​(java.lang.Iterable<org.neo4j.graphdb.Label> labels)  
      VirtualRelationship createRelationshipFrom​(org.neo4j.graphdb.Node start, org.neo4j.graphdb.RelationshipType relationshipType)  
      VirtualRelationship createRelationshipTo​(org.neo4j.graphdb.Node node, org.neo4j.graphdb.RelationshipType relationshipType)  
      void delete()  
      boolean equals​(java.lang.Object o)  
      java.util.Map<java.lang.String,​java.lang.Object> getAllProperties()  
      int getDegree()  
      int getDegree​(org.neo4j.graphdb.Direction direction)  
      int getDegree​(org.neo4j.graphdb.RelationshipType relationshipType)  
      int getDegree​(org.neo4j.graphdb.RelationshipType relationshipType, org.neo4j.graphdb.Direction direction)  
      long getId()  
      java.lang.Iterable<org.neo4j.graphdb.Label> getLabels()  
      java.util.Map<java.lang.String,​java.lang.Object> getProperties​(java.lang.String... strings)  
      java.lang.Object getProperty​(java.lang.String s)  
      java.lang.Object getProperty​(java.lang.String s, java.lang.Object o)  
      java.lang.Iterable<java.lang.String> getPropertyKeys()  
      java.lang.Iterable<org.neo4j.graphdb.Relationship> getRelationships()  
      java.lang.Iterable<org.neo4j.graphdb.Relationship> getRelationships​(org.neo4j.graphdb.Direction direction)  
      java.lang.Iterable<org.neo4j.graphdb.Relationship> getRelationships​(org.neo4j.graphdb.Direction direction, org.neo4j.graphdb.RelationshipType... relationshipTypes)  
      java.lang.Iterable<org.neo4j.graphdb.Relationship> getRelationships​(org.neo4j.graphdb.RelationshipType... relationshipTypes)  
      java.lang.Iterable<org.neo4j.graphdb.RelationshipType> getRelationshipTypes()  
      org.neo4j.graphdb.Relationship getSingleRelationship​(org.neo4j.graphdb.RelationshipType relationshipType, org.neo4j.graphdb.Direction direction)  
      int hashCode()  
      boolean hasLabel​(org.neo4j.graphdb.Label label)  
      boolean hasProperty​(java.lang.String s)  
      boolean hasRelationship()  
      boolean hasRelationship​(org.neo4j.graphdb.Direction direction)  
      boolean hasRelationship​(org.neo4j.graphdb.Direction direction, org.neo4j.graphdb.RelationshipType... relationshipTypes)  
      boolean hasRelationship​(org.neo4j.graphdb.RelationshipType... relationshipTypes)  
      void removeLabel​(org.neo4j.graphdb.Label label)  
      java.lang.Object removeProperty​(java.lang.String s)  
      void setProperty​(java.lang.String s, java.lang.Object o)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • VirtualNode

        public VirtualNode​(org.neo4j.graphdb.Label[] labels,
                           java.util.Map<java.lang.String,​java.lang.Object> props)
      • VirtualNode

        public VirtualNode​(long nodeId,
                           org.neo4j.graphdb.Label[] labels,
                           java.util.Map<java.lang.String,​java.lang.Object> props)
      • VirtualNode

        public VirtualNode​(long nodeId)
      • VirtualNode

        public VirtualNode​(org.neo4j.graphdb.Node node,
                           java.util.List<java.lang.String> propertyNames)
    • Method Detail

      • getId

        public long getId()
        Specified by:
        getId in interface org.neo4j.graphdb.Entity
      • delete

        public void delete()
        Specified by:
        delete in interface org.neo4j.graphdb.Node
      • getRelationships

        public java.lang.Iterable<org.neo4j.graphdb.Relationship> getRelationships()
        Specified by:
        getRelationships in interface org.neo4j.graphdb.Node
      • hasRelationship

        public boolean hasRelationship()
        Specified by:
        hasRelationship in interface org.neo4j.graphdb.Node
      • getRelationships

        public java.lang.Iterable<org.neo4j.graphdb.Relationship> getRelationships​(org.neo4j.graphdb.RelationshipType... relationshipTypes)
        Specified by:
        getRelationships in interface org.neo4j.graphdb.Node
      • getRelationships

        public java.lang.Iterable<org.neo4j.graphdb.Relationship> getRelationships​(org.neo4j.graphdb.Direction direction,
                                                                                   org.neo4j.graphdb.RelationshipType... relationshipTypes)
        Specified by:
        getRelationships in interface org.neo4j.graphdb.Node
      • hasRelationship

        public boolean hasRelationship​(org.neo4j.graphdb.RelationshipType... relationshipTypes)
        Specified by:
        hasRelationship in interface org.neo4j.graphdb.Node
      • hasRelationship

        public boolean hasRelationship​(org.neo4j.graphdb.Direction direction,
                                       org.neo4j.graphdb.RelationshipType... relationshipTypes)
        Specified by:
        hasRelationship in interface org.neo4j.graphdb.Node
      • getRelationships

        public java.lang.Iterable<org.neo4j.graphdb.Relationship> getRelationships​(org.neo4j.graphdb.Direction direction)
        Specified by:
        getRelationships in interface org.neo4j.graphdb.Node
      • hasRelationship

        public boolean hasRelationship​(org.neo4j.graphdb.Direction direction)
        Specified by:
        hasRelationship in interface org.neo4j.graphdb.Node
      • getSingleRelationship

        public org.neo4j.graphdb.Relationship getSingleRelationship​(org.neo4j.graphdb.RelationshipType relationshipType,
                                                                    org.neo4j.graphdb.Direction direction)
        Specified by:
        getSingleRelationship in interface org.neo4j.graphdb.Node
      • createRelationshipTo

        public VirtualRelationship createRelationshipTo​(org.neo4j.graphdb.Node node,
                                                        org.neo4j.graphdb.RelationshipType relationshipType)
        Specified by:
        createRelationshipTo in interface org.neo4j.graphdb.Node
      • createRelationshipFrom

        public VirtualRelationship createRelationshipFrom​(org.neo4j.graphdb.Node start,
                                                          org.neo4j.graphdb.RelationshipType relationshipType)
      • getRelationshipTypes

        public java.lang.Iterable<org.neo4j.graphdb.RelationshipType> getRelationshipTypes()
        Specified by:
        getRelationshipTypes in interface org.neo4j.graphdb.Node
      • getDegree

        public int getDegree()
        Specified by:
        getDegree in interface org.neo4j.graphdb.Node
      • getDegree

        public int getDegree​(org.neo4j.graphdb.RelationshipType relationshipType)
        Specified by:
        getDegree in interface org.neo4j.graphdb.Node
      • getDegree

        public int getDegree​(org.neo4j.graphdb.Direction direction)
        Specified by:
        getDegree in interface org.neo4j.graphdb.Node
      • getDegree

        public int getDegree​(org.neo4j.graphdb.RelationshipType relationshipType,
                             org.neo4j.graphdb.Direction direction)
        Specified by:
        getDegree in interface org.neo4j.graphdb.Node
      • addLabel

        public void addLabel​(org.neo4j.graphdb.Label label)
        Specified by:
        addLabel in interface org.neo4j.graphdb.Node
      • addLabels

        public void addLabels​(java.lang.Iterable<org.neo4j.graphdb.Label> labels)
      • removeLabel

        public void removeLabel​(org.neo4j.graphdb.Label label)
        Specified by:
        removeLabel in interface org.neo4j.graphdb.Node
      • hasLabel

        public boolean hasLabel​(org.neo4j.graphdb.Label label)
        Specified by:
        hasLabel in interface org.neo4j.graphdb.Node
      • getLabels

        public java.lang.Iterable<org.neo4j.graphdb.Label> getLabels()
        Specified by:
        getLabels in interface org.neo4j.graphdb.Node
      • hasProperty

        public boolean hasProperty​(java.lang.String s)
        Specified by:
        hasProperty in interface org.neo4j.graphdb.Entity
      • getProperty

        public java.lang.Object getProperty​(java.lang.String s)
        Specified by:
        getProperty in interface org.neo4j.graphdb.Entity
      • getProperty

        public java.lang.Object getProperty​(java.lang.String s,
                                            java.lang.Object o)
        Specified by:
        getProperty in interface org.neo4j.graphdb.Entity
      • setProperty

        public void setProperty​(java.lang.String s,
                                java.lang.Object o)
        Specified by:
        setProperty in interface org.neo4j.graphdb.Entity
      • removeProperty

        public java.lang.Object removeProperty​(java.lang.String s)
        Specified by:
        removeProperty in interface org.neo4j.graphdb.Entity
      • getPropertyKeys

        public java.lang.Iterable<java.lang.String> getPropertyKeys()
        Specified by:
        getPropertyKeys in interface org.neo4j.graphdb.Entity
      • getProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getProperties​(java.lang.String... strings)
        Specified by:
        getProperties in interface org.neo4j.graphdb.Entity
      • getAllProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getAllProperties()
        Specified by:
        getAllProperties in interface org.neo4j.graphdb.Entity
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object