Class ResultClone

  • All Implemented Interfaces:
    Iterator<org.neo4j.driver.Record>, org.neo4j.driver.Result

    public class ResultClone
    extends Object
    implements org.neo4j.driver.Result
    Helper Class for Neo4J 4 that copies all Results, to prevent them becoming unavailable after the transaction is closed. This class is only needed when you load Results that should become available OUTSIDE of a transaction. Preferrably you should use the science.aist.neo4j.annotation.Transaction annotation.
    Since:
    1.0
    Author:
    Oliver Krauss
    • Constructor Detail

      • ResultClone

        public ResultClone​(org.neo4j.driver.Result apply)
    • Method Detail

      • keys

        public List<String> keys()
        Specified by:
        keys in interface org.neo4j.driver.Result
      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface Iterator<org.neo4j.driver.Record>
        Specified by:
        hasNext in interface org.neo4j.driver.Result
      • next

        public org.neo4j.driver.Record next()
        Specified by:
        next in interface Iterator<org.neo4j.driver.Record>
        Specified by:
        next in interface org.neo4j.driver.Result
      • single

        public org.neo4j.driver.Record single()
                                       throws org.neo4j.driver.exceptions.NoSuchRecordException
        Specified by:
        single in interface org.neo4j.driver.Result
        Throws:
        org.neo4j.driver.exceptions.NoSuchRecordException
      • peek

        public org.neo4j.driver.Record peek()
        Specified by:
        peek in interface org.neo4j.driver.Result
      • stream

        public Stream<org.neo4j.driver.Record> stream()
        Specified by:
        stream in interface org.neo4j.driver.Result
      • list

        public List<org.neo4j.driver.Record> list()
        Specified by:
        list in interface org.neo4j.driver.Result
      • list

        public <T> List<T> list​(Function<org.neo4j.driver.Record,​T> function)
        Specified by:
        list in interface org.neo4j.driver.Result
      • consume

        public org.neo4j.driver.summary.ResultSummary consume()
        Specified by:
        consume in interface org.neo4j.driver.Result