Class CsvRelationshipVisitor
- java.lang.Object
-
- org.neo4j.internal.batchimport.input.InputEntityVisitor.Adapter
-
- org.neo4j.graphalgo.core.utils.export.file.RelationshipVisitor
-
- org.neo4j.graphalgo.core.utils.export.file.csv.CsvRelationshipVisitor
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
,org.neo4j.internal.batchimport.input.InputEntityVisitor
public class CsvRelationshipVisitor extends RelationshipVisitor
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
END_ID_COLUMN_NAME
static java.lang.String
START_ID_COLUMN_NAME
-
Constructor Summary
Constructors Constructor Description CsvRelationshipVisitor(java.nio.file.Path fileLocation, RelationshipSchema relationshipSchema, java.util.Set<java.lang.String> headerFiles, int visitorId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
endOfEntity()
protected void
exportElement()
void
flush()
protected void
forEachProperty(PropertyConsumer propertyConsumer)
boolean
property(java.lang.String key, java.lang.Object value)
-
Methods inherited from class org.neo4j.graphalgo.core.utils.export.file.RelationshipVisitor
endId, endNode, getPropertySchema, relationshipType, startId, startNode, type
-
-
-
-
Field Detail
-
START_ID_COLUMN_NAME
public static final java.lang.String START_ID_COLUMN_NAME
- See Also:
- Constant Field Values
-
END_ID_COLUMN_NAME
public static final java.lang.String END_ID_COLUMN_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CsvRelationshipVisitor
public CsvRelationshipVisitor(java.nio.file.Path fileLocation, RelationshipSchema relationshipSchema, java.util.Set<java.lang.String> headerFiles, int visitorId)
-
-
Method Detail
-
exportElement
protected void exportElement()
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classorg.neo4j.internal.batchimport.input.InputEntityVisitor.Adapter
-
flush
public void flush() throws java.io.IOException
- Specified by:
flush
in interfacejava.io.Flushable
- Throws:
java.io.IOException
-
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)
-
-