Package apoc.export.arrow
Class ExportGraphStreamStrategy
java.lang.Object
apoc.export.arrow.ExportGraphStreamStrategy
- All Implemented Interfaces:
ExportArrowStrategy<org.neo4j.cypher.export.SubGraph,
,Stream<apoc.result.ByteArrayResult>> ExportArrowStreamStrategy<org.neo4j.cypher.export.SubGraph>
,ExportGraphStrategy
public class ExportGraphStreamStrategy
extends Object
implements ExportArrowStreamStrategy<org.neo4j.cypher.export.SubGraph>, ExportGraphStrategy
-
Constructor Summary
ConstructorsConstructorDescriptionExportGraphStreamStrategy
(org.neo4j.graphdb.GraphDatabaseService db, apoc.Pools pools, org.neo4j.procedure.TerminationGuard terminationGuard, org.neo4j.logging.Log logger) -
Method Summary
Modifier and TypeMethodDescriptionStream<apoc.result.ByteArrayResult>
export
(org.neo4j.cypher.export.SubGraph subGraph, ArrowConfig config) org.apache.arrow.memory.BufferAllocator
org.neo4j.graphdb.GraphDatabaseService
org.neo4j.logging.Log
org.neo4j.procedure.TerminationGuard
org.apache.arrow.vector.ipc.ArrowWriter
newArrowWriter
(org.apache.arrow.vector.VectorSchemaRoot root, OutputStream out) org.apache.arrow.vector.types.pojo.Schema
toIterator
(org.neo4j.cypher.export.SubGraph subGraph) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface apoc.export.arrow.ExportArrowStrategy
write
Methods inherited from interface apoc.export.arrow.ExportArrowStreamStrategy
convertValue, writeBatch
Methods inherited from interface apoc.export.arrow.ExportGraphStrategy
createConfigMap, entityToMap, schemaFor
-
Constructor Details
-
ExportGraphStreamStrategy
public ExportGraphStreamStrategy(org.neo4j.graphdb.GraphDatabaseService db, apoc.Pools pools, org.neo4j.procedure.TerminationGuard terminationGuard, org.neo4j.logging.Log logger)
-
-
Method Details
-
toIterator
- Specified by:
toIterator
in interfaceExportArrowStreamStrategy<org.neo4j.cypher.export.SubGraph>
-
export
public Stream<apoc.result.ByteArrayResult> export(org.neo4j.cypher.export.SubGraph subGraph, ArrowConfig config) - Specified by:
export
in interfaceExportArrowStrategy<org.neo4j.cypher.export.SubGraph,
Stream<apoc.result.ByteArrayResult>> - Specified by:
export
in interfaceExportArrowStreamStrategy<org.neo4j.cypher.export.SubGraph>
-
getTerminationGuard
public org.neo4j.procedure.TerminationGuard getTerminationGuard()- Specified by:
getTerminationGuard
in interfaceExportArrowStrategy<org.neo4j.cypher.export.SubGraph,
Stream<apoc.result.ByteArrayResult>>
-
getBufferAllocator
public org.apache.arrow.memory.BufferAllocator getBufferAllocator()- Specified by:
getBufferAllocator
in interfaceExportArrowStrategy<org.neo4j.cypher.export.SubGraph,
Stream<apoc.result.ByteArrayResult>>
-
getGraphDatabaseApi
public org.neo4j.graphdb.GraphDatabaseService getGraphDatabaseApi()- Specified by:
getGraphDatabaseApi
in interfaceExportArrowStrategy<org.neo4j.cypher.export.SubGraph,
Stream<apoc.result.ByteArrayResult>>
-
getExecutorService
- Specified by:
getExecutorService
in interfaceExportArrowStrategy<org.neo4j.cypher.export.SubGraph,
Stream<apoc.result.ByteArrayResult>>
-
getLogger
public org.neo4j.logging.Log getLogger()- Specified by:
getLogger
in interfaceExportArrowStrategy<org.neo4j.cypher.export.SubGraph,
Stream<apoc.result.ByteArrayResult>>
-
newArrowWriter
public org.apache.arrow.vector.ipc.ArrowWriter newArrowWriter(org.apache.arrow.vector.VectorSchemaRoot root, OutputStream out) - Specified by:
newArrowWriter
in interfaceExportArrowStrategy<org.neo4j.cypher.export.SubGraph,
Stream<apoc.result.ByteArrayResult>> - Specified by:
newArrowWriter
in interfaceExportArrowStreamStrategy<org.neo4j.cypher.export.SubGraph>
-
schemaFor
- Specified by:
schemaFor
in interfaceExportArrowStrategy<org.neo4j.cypher.export.SubGraph,
Stream<apoc.result.ByteArrayResult>> - Specified by:
schemaFor
in interfaceExportArrowStreamStrategy<org.neo4j.cypher.export.SubGraph>
-