| Package | Description |
|---|---|
| org.neo4j.driver.v1 |
| Modifier and Type | Method and Description |
|---|---|
Record |
StatementResult.next()
Navigate to and retrieve the next
Record in this result. |
Record |
StatementResult.peek()
Investigate the next upcoming record without moving forward in the result.
|
Record |
StatementResult.single()
Return the first record in the result, failing if there is not exactly
one record left in the stream
Calling this method always exhausts the result, even when
NoSuchRecordException is thrown. |
| Modifier and Type | Method and Description |
|---|---|
static Function<Record,Value> |
Records.column(int index) |
static <T> Function<Record,T> |
Records.column(int index,
Function<Value,T> mapFunction) |
static Function<Record,Value> |
Records.column(String key) |
static <T> Function<Record,T> |
Records.column(String key,
Function<Value,T> mapFunction) |
List<Record> |
StatementResult.list()
Retrieve and store the entire result stream.
|
CompletionStage<List<Record>> |
StatementResultCursor.listAsync()
Asynchronously retrieve and store the entire result stream.
|
CompletionStage<Record> |
StatementResultCursor.nextAsync()
Asynchronously navigate to and retrieve the next
Record in this result. |
CompletionStage<Record> |
StatementResultCursor.peekAsync()
Asynchronously investigate the next upcoming
Record without moving forward in the result. |
CompletionStage<Record> |
StatementResultCursor.singleAsync()
Asynchronously return the first record in the result, failing if there is not exactly
one record left in the stream.
|
| Modifier and Type | Method and Description |
|---|---|
StatementResult |
StatementRunner.run(String statementTemplate,
Record statementParameters)
Run a statement and return a result stream.
|
CompletionStage<StatementResultCursor> |
StatementRunner.runAsync(String statementTemplate,
Record statementParameters)
Run a statement asynchronously and return a
CompletionStage with a
result cursor. |
| Modifier and Type | Method and Description |
|---|---|
CompletionStage<ResultSummary> |
StatementResultCursor.forEachAsync(Consumer<Record> action)
Asynchronously apply the given
action to every record in the result, yielding a summary of it. |
<T> List<T> |
StatementResult.list(Function<Record,T> mapFunction)
Retrieve and store a projection of the entire result.
|
<T> CompletionStage<List<T>> |
StatementResultCursor.listAsync(Function<Record,T> mapFunction)
Asynchronously retrieve and store a projection of the entire result.
|
Copyright © 2018. All rights reserved.