Package | Description |
---|---|
org.neo4j.driver | |
org.neo4j.driver.async | |
org.neo4j.driver.reactive |
Modifier and Type | Method and Description |
---|---|
Record |
Result.next()
Navigate to and retrieve the next
Record in this result. |
Record |
Result.peek()
Investigate the next upcoming record without moving forward in the result.
|
Record |
Result.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> |
Result.list()
Retrieve and store the entire result stream.
|
Stream<Record> |
Result.stream()
Convert this result to a sequential
Stream of records. |
Modifier and Type | Method and Description |
---|---|
Result |
QueryRunner.run(String query,
Record parameters)
Run a query and return a result stream.
|
Modifier and Type | Method and Description |
---|---|
<T> List<T> |
Result.list(Function<Record,T> mapFunction)
Retrieve and store a projection of the entire result.
|
Modifier and Type | Method and Description |
---|---|
CompletionStage<List<Record>> |
ResultCursor.listAsync()
Asynchronously retrieve and store the entire result stream.
|
CompletionStage<Record> |
ResultCursor.nextAsync()
Asynchronously navigate to and retrieve the next
Record in this result. |
CompletionStage<Record> |
ResultCursor.peekAsync()
Asynchronously investigate the next upcoming
Record without moving forward in the result. |
CompletionStage<Record> |
ResultCursor.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 |
---|---|
CompletionStage<ResultCursor> |
AsyncQueryRunner.runAsync(String query,
Record parameters)
Run a query asynchronously and return a
CompletionStage with a
result cursor. |
Modifier and Type | Method and Description |
---|---|
CompletionStage<ResultSummary> |
ResultCursor.forEachAsync(Consumer<Record> action)
Asynchronously apply the given
action to every record in the result, yielding a summary of it. |
<T> CompletionStage<List<T>> |
ResultCursor.listAsync(Function<Record,T> mapFunction)
Asynchronously retrieve and store a projection of the entire result.
|
Modifier and Type | Method and Description |
---|---|
org.reactivestreams.Publisher<Record> |
RxResult.records()
Returns a cold unicast publisher of records.
|
Modifier and Type | Method and Description |
---|---|
RxResult |
RxQueryRunner.run(String query,
Record parameters)
Register running of a query and return a reactive result stream.
|