Package org.neo4j.gds.core.utils.io.file
Class NodeVisitor
- java.lang.Object
-
- org.neo4j.internal.batchimport.input.InputEntityVisitor.Adapter
-
- org.neo4j.gds.core.utils.io.file.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
-
-
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)
-
-
-
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 interfaceorg.neo4j.internal.batchimport.input.InputEntityVisitor
- Overrides:
id
in classorg.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 interfaceorg.neo4j.internal.batchimport.input.InputEntityVisitor
- Overrides:
id
in classorg.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 interfaceorg.neo4j.internal.batchimport.input.InputEntityVisitor
- Overrides:
id
in classorg.neo4j.internal.batchimport.input.InputEntityVisitor.Adapter
-
labels
public boolean labels(java.lang.String[] labels)
- Specified by:
labels
in interfaceorg.neo4j.internal.batchimport.input.InputEntityVisitor
- Overrides:
labels
in classorg.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 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
-
-