Class CsvNodeVisitor
- java.lang.Object
-
- org.neo4j.internal.batchimport.input.InputEntityVisitor.Adapter
-
- org.neo4j.graphalgo.core.utils.export.file.NodeVisitor
-
- org.neo4j.graphalgo.core.utils.export.file.csv.CsvNodeVisitor
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,org.neo4j.internal.batchimport.input.InputEntityVisitor
public class CsvNodeVisitor extends NodeVisitor
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ID_COLUMN_NAME
-
Constructor Summary
Constructors Constructor Description CsvNodeVisitor(java.nio.file.Path fileLocation, NodeSchema nodeSchema)
CsvNodeVisitor(java.nio.file.Path fileLocation, NodeSchema nodeSchema, 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()
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.NodeVisitor
id, id, labels, labels
-
-
-
-
Field Detail
-
ID_COLUMN_NAME
public static final java.lang.String ID_COLUMN_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CsvNodeVisitor
public CsvNodeVisitor(java.nio.file.Path fileLocation, NodeSchema nodeSchema, java.util.Set<java.lang.String> headerFiles, int visitorId)
-
CsvNodeVisitor
@TestOnly public CsvNodeVisitor(java.nio.file.Path fileLocation, NodeSchema nodeSchema)
-
-
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
-
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)
-
-