Class Neo4JSyncAutoCommitOp

java.lang.Object
io.nosqlbench.adapter.neo4j.ops.Neo4JBaseOp
io.nosqlbench.adapter.neo4j.ops.Neo4JSyncAutoCommitOp
All Implemented Interfaces:
CycleOp<org.neo4j.driver.Record[]>, LongFunction<org.neo4j.driver.Record[]>

public class Neo4JSyncAutoCommitOp extends Neo4JBaseOp
  • Field Summary

    Fields inherited from class io.nosqlbench.adapter.neo4j.ops.Neo4JBaseOp

    query
  • Constructor Summary

    Constructors
    Constructor
    Description
    Neo4JSyncAutoCommitOp(org.neo4j.driver.Session session, org.neo4j.driver.Query query)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Neo4JSyncAutoCommitOp

      public Neo4JSyncAutoCommitOp(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: Neo4JBaseOp
      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:
      apply in interface CycleOp<org.neo4j.driver.Record[]>
      Specified by:
      apply in interface LongFunction<org.neo4j.driver.Record[]>
      Specified by:
      apply in class Neo4JBaseOp
      Parameters:
      value - The cycle value for which an operation is run