final class Neo4jSCollectionOps[T] extends AnyVal
- Alphabetic
- By Inheritance
- Neo4jSCollectionOps
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Neo4jSCollectionOps(self: SCollection[T])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def neo4jCypher[U](neo4jConf: Neo4jOptions, cypher: String)(implicit neo4jInType: ValueType[T], neo4jOutType: ValueType[U], coder: Coder[U]): SCollection[U]
Execute parallel instances of the provided Cypher query to the specified Neo4j database; one instance of the query will be executed for each element in this SCollection.
Execute parallel instances of the provided Cypher query to the specified Neo4j database; one instance of the query will be executed for each element in this SCollection. Results from each query invocation will be added to the resulting SCollection as if by a
flatMap
transformation (where the Neo4j-query-execution returns anIterable
).This operation parameterizes each query invocation by first transforming each SCollection element via magnolify.neo4j.ValueType.to. Parameter names in the provided Cypher query String must match the names of keys in the org.neo4j.driver.Value generated by the (implicit) ValueType for the input SCollection type. (If the input type is a case class, that means that parameter names in the query should correspond to the fields defined in the case class.)
- neo4jConf
options for configuring a Neo4J driver
- cypher
parameterized Cypher query
- returns
SCollection containing the union of query results from a parameterized query invocation for each original SCollection element
- See also
Reading from Neo4j in the Beam
Neo4jIO
documentationsyntax for Cypher query parameters defined in Cypher Manual (Syntax / Parameters)
- def saveAsNeo4j(neo4jOptions: Neo4jOptions, unwindCypher: String, batchSize: Long = WriteParam.DefaultBatchSize)(implicit neo4jType: ValueType[T], coder: Coder[T]): ClosedTap[Nothing]
Save this SCollection as a Neo4J database.
Save this SCollection as a Neo4J database.
- neo4jOptions
options for configuring a Neo4J driver
- unwindCypher
Neo4J cypher query representing an UNWIND parameter cypher statement
- batchSize
batch size when executing the unwind cypher query. Default batch size of 5000
- def toString(): String
- Definition Classes
- Any