Package org.neo4j.gds.core.utils.io.file
Class RelationshipVisitor
- java.lang.Object
-
- org.neo4j.internal.batchimport.input.InputEntityVisitor.Adapter
-
- org.neo4j.gds.core.utils.io.file.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
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RelationshipVisitor(org.neo4j.gds.api.schema.RelationshipSchema relationshipSchema)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
endId(long id)
boolean
endId(java.lang.Object id, org.neo4j.internal.batchimport.input.Group group)
long
endNode()
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.RelationshipPropertySchema>
getPropertySchema()
boolean
property(java.lang.String key, java.lang.Object value)
java.lang.String
relationshipType()
boolean
startId(long id)
boolean
startId(java.lang.Object id, org.neo4j.internal.batchimport.input.Group group)
long
startNode()
boolean
type(java.lang.String type)
-
-
-
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 interfaceorg.neo4j.internal.batchimport.input.InputEntityVisitor
- Overrides:
startId
in classorg.neo4j.internal.batchimport.input.InputEntityVisitor.Adapter
-
startId
public boolean startId(java.lang.Object id, org.neo4j.internal.batchimport.input.Group group)
- Specified by:
startId
in interfaceorg.neo4j.internal.batchimport.input.InputEntityVisitor
- Overrides:
startId
in classorg.neo4j.internal.batchimport.input.InputEntityVisitor.Adapter
-
endId
public boolean endId(long id)
- Specified by:
endId
in interfaceorg.neo4j.internal.batchimport.input.InputEntityVisitor
- Overrides:
endId
in classorg.neo4j.internal.batchimport.input.InputEntityVisitor.Adapter
-
endId
public boolean endId(java.lang.Object id, org.neo4j.internal.batchimport.input.Group group)
- Specified by:
endId
in interfaceorg.neo4j.internal.batchimport.input.InputEntityVisitor
- Overrides:
endId
in classorg.neo4j.internal.batchimport.input.InputEntityVisitor.Adapter
-
type
public boolean type(java.lang.String type)
- Specified by:
type
in interfaceorg.neo4j.internal.batchimport.input.InputEntityVisitor
- Overrides:
type
in classorg.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 interfaceorg.neo4j.internal.batchimport.input.InputEntityVisitor
- Overrides:
property
in classorg.neo4j.internal.batchimport.input.InputEntityVisitor.Adapter
-
endOfEntity
public void endOfEntity()
- Specified by:
endOfEntity
in interfaceorg.neo4j.internal.batchimport.input.InputEntityVisitor
- Overrides:
endOfEntity
in classorg.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 interfacejava.io.Flushable
- Throws:
java.io.IOException
-
-