Class Neo4JBaseOp
java.lang.Object
io.nosqlbench.adapter.neo4j.ops.Neo4JBaseOp
- All Implemented Interfaces:
CycleOp<org.neo4j.driver.Record[]>,LongFunction<org.neo4j.driver.Record[]>
- Direct Known Subclasses:
Neo4JAsyncAutoCommitOp,Neo4JAsyncReadTxnOp,Neo4JAsyncWriteTxnOp,Neo4JSyncAutoCommitOp,Neo4JSyncReadTxnOp,Neo4JSyncWriteTxnOp
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract org.neo4j.driver.Record[]apply(long value) In the child classes, this method will be responsible for: - using the Neo4J Session/AsyncSession object to run the Neo4J Query - process the Result to get an array of Records - close the Session/AsyncSession - Return the array of Records Session creation and closing is considered light-weight.toString()
-
Field Details
-
query
protected final org.neo4j.driver.Query query
-
-
Constructor Details
-
Neo4JBaseOp
public Neo4JBaseOp(org.neo4j.driver.Query query)
-
-
Method Details
-
apply
public abstract org.neo4j.driver.Record[] apply(long value) In the child classes, this method will be responsible for: - using the Neo4J Session/AsyncSession object to run the Neo4J Query - process the Result to get an array of Records - close the Session/AsyncSession - Return the array of Records Session creation and closing is considered light-weight. Reference: - https://neo4j.com/docs/api/java-driver/current/org.neo4j.driver/org/neo4j/driver/Session.html#close()- Specified by:
applyin interfaceCycleOp<org.neo4j.driver.Record[]>- Specified by:
applyin interfaceLongFunction<org.neo4j.driver.Record[]>- Parameters:
value- The cycle value for which an operation is run
-
toString
-