Class NodeVisitor

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable, org.neo4j.internal.batchimport.input.InputEntityVisitor
    Direct Known Subclasses:
    GraphStoreNodeVisitor

    public abstract class NodeVisitor
    extends org.neo4j.internal.batchimport.input.InputEntityVisitor.Adapter
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.neo4j.internal.batchimport.input.InputEntityVisitor

        org.neo4j.internal.batchimport.input.InputEntityVisitor.Adapter, org.neo4j.internal.batchimport.input.InputEntityVisitor.Delegate
    • Field Summary

      • Fields inherited from interface org.neo4j.internal.batchimport.input.InputEntityVisitor

        NULL
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected NodeVisitor​(org.neo4j.gds.api.schema.NodeSchema nodeSchema)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String elementIdentifier()  
      void endOfEntity()  
      protected abstract void exportElement()  
      void flush()  
      protected void forEachProperty​(PropertyConsumer propertyConsumer)  
      protected void forEachPropertyWithType​(PropertyWithTypeConsumer propertyWithTypeConsumer)  
      protected java.util.List<org.neo4j.gds.api.schema.PropertySchema> getPropertySchema()  
      long id()  
      boolean id​(long id)  
      boolean id​(java.lang.Object id, org.neo4j.internal.batchimport.input.Group group)  
      boolean id​(java.lang.Object id, org.neo4j.internal.batchimport.input.Group group, org.neo4j.internal.id.IdSequence idSequence)  
      java.util.List<java.lang.String> labels()  
      boolean labels​(java.lang.String[] labels)  
      boolean property​(java.lang.String key, java.lang.Object value)  
      • Methods inherited from class org.neo4j.internal.batchimport.input.InputEntityVisitor.Adapter

        close, endId, endId, labelField, property, propertyId, startId, startId, type, type
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NodeVisitor

        protected NodeVisitor​(org.neo4j.gds.api.schema.NodeSchema nodeSchema)
    • Method Detail

      • id

        public long id()
      • labels

        public java.util.List<java.lang.String> labels()
      • id

        public boolean id​(long id)
        Specified by:
        id in interface org.neo4j.internal.batchimport.input.InputEntityVisitor
        Overrides:
        id in class org.neo4j.internal.batchimport.input.InputEntityVisitor.Adapter
      • id

        public boolean id​(java.lang.Object id,
                          org.neo4j.internal.batchimport.input.Group group)
        Specified by:
        id in interface org.neo4j.internal.batchimport.input.InputEntityVisitor
        Overrides:
        id in class org.neo4j.internal.batchimport.input.InputEntityVisitor.Adapter
      • id

        public boolean id​(java.lang.Object id,
                          org.neo4j.internal.batchimport.input.Group group,
                          org.neo4j.internal.id.IdSequence idSequence)
        Specified by:
        id in interface org.neo4j.internal.batchimport.input.InputEntityVisitor
        Overrides:
        id in class org.neo4j.internal.batchimport.input.InputEntityVisitor.Adapter
      • labels

        public boolean labels​(java.lang.String[] labels)
        Specified by:
        labels in interface org.neo4j.internal.batchimport.input.InputEntityVisitor
        Overrides:
        labels in class org.neo4j.internal.batchimport.input.InputEntityVisitor.Adapter
      • elementIdentifier

        protected java.lang.String elementIdentifier()
      • getPropertySchema

        protected java.util.List<org.neo4j.gds.api.schema.PropertySchema> getPropertySchema()
      • exportElement

        protected abstract void exportElement()
      • property

        public boolean property​(java.lang.String key,
                                java.lang.Object value)
        Specified by:
        property in interface org.neo4j.internal.batchimport.input.InputEntityVisitor
        Overrides:
        property in class org.neo4j.internal.batchimport.input.InputEntityVisitor.Adapter
      • endOfEntity

        public void endOfEntity()
        Specified by:
        endOfEntity in interface org.neo4j.internal.batchimport.input.InputEntityVisitor
        Overrides:
        endOfEntity in class org.neo4j.internal.batchimport.input.InputEntityVisitor.Adapter
      • forEachProperty

        protected void forEachProperty​(PropertyConsumer propertyConsumer)
      • forEachPropertyWithType

        protected void forEachPropertyWithType​(PropertyWithTypeConsumer propertyWithTypeConsumer)
      • flush

        public void flush()
                   throws java.io.IOException
        Specified by:
        flush in interface java.io.Flushable
        Throws:
        java.io.IOException