Class Neo4JSyncReadTxnOp
java.lang.Object
io.nosqlbench.adapter.neo4j.ops.Neo4JBaseOp
io.nosqlbench.adapter.neo4j.ops.Neo4JSyncReadTxnOp
- All Implemented Interfaces:
CycleOp<org.neo4j.driver.Record[]>,LongFunction<org.neo4j.driver.Record[]>
-
Field Summary
Fields inherited from class io.nosqlbench.adapter.neo4j.ops.Neo4JBaseOp
query -
Constructor Summary
ConstructorsConstructorDescriptionNeo4JSyncReadTxnOp(org.neo4j.driver.Session session, org.neo4j.driver.Query query) -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.Methods inherited from class io.nosqlbench.adapter.neo4j.ops.Neo4JBaseOp
toString
-
Constructor Details
-
Neo4JSyncReadTxnOp
public Neo4JSyncReadTxnOp(org.neo4j.driver.Session session, org.neo4j.driver.Query query)
-
-
Method Details
-
apply
public final org.neo4j.driver.Record[] apply(long value) Description copied from class:Neo4JBaseOpIn 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[]>- Specified by:
applyin classNeo4JBaseOp- Parameters:
value- The cycle value for which an operation is run
-