Class RelationshipVisitor

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

    public abstract class RelationshipVisitor
    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 RelationshipVisitor​(org.neo4j.gds.api.schema.RelationshipSchema relationshipSchema)  
    • Constructor Detail

      • RelationshipVisitor

        protected RelationshipVisitor​(org.neo4j.gds.api.schema.RelationshipSchema relationshipSchema)
    • Method Detail

      • startNode

        public long startNode()
      • endNode

        public long endNode()
      • relationshipType

        public java.lang.String relationshipType()
      • startId

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

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

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

        protected java.util.List<org.neo4j.gds.api.schema.RelationshipPropertySchema> 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