-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce managed query execution on Driver level
This is a new basic high-level API for executing idempotent queries.
- Loading branch information
1 parent
c5f5fde
commit 01fccf0
Showing
24 changed files
with
1,397 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
* Copyright (c) "Neo4j" | ||
* Neo4j Sweden AB [http://neo4j.com] | ||
* | ||
* This file is part of Neo4j. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.neo4j.driver; | ||
|
||
import java.util.List; | ||
import org.neo4j.driver.summary.ResultSummary; | ||
import org.neo4j.driver.util.Experimental; | ||
|
||
/** | ||
* An in-memory result of executing a Cypher query that has been consumed in full. | ||
* @since 5.5 | ||
*/ | ||
@Experimental | ||
public interface EagerResult { | ||
/** | ||
* Returns the keys of the records this result contains. | ||
* | ||
* @return list of keys | ||
*/ | ||
List<String> keys(); | ||
|
||
/** | ||
* Returns the list of records this result contains. | ||
* | ||
* @return list of records | ||
*/ | ||
List<Record> records(); | ||
|
||
/** | ||
* Returns the result summary. | ||
* | ||
* @return result summary | ||
*/ | ||
ResultSummary summary(); | ||
} |
Oops, something went wrong.