@Immutable public interface Record extends MapAccessorWithDefaultValue
Streams of records are returned from Cypher query execution, contained
within a Result.
A record is a form of ordered map and, as such, contained values can be
accessed by either positional index or textual
key.
| Modifier and Type | Method and Description |
|---|---|
List<Pair<String,Value>> |
fields()
Retrieve all record fields
|
Value |
get(int index)
Retrieve the value at the given field index
|
int |
index(String key)
Retrieve the index of the field with the given key
|
List<String> |
keys()
Retrieve the keys of the underlying map
|
List<Value> |
values()
Retrieve the values of the underlying map
|
get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, getasMap, asMap, containsKey, get, size, valuesList<String> keys()
keys in interface MapAccessorList<Value> values()
values in interface MapAccessorint index(String key)
key - the give keyget(int)NoSuchElementException - if the given key is not from keys()Value get(int index)
index - the index of the valueNullValue if the index is out of boundsClientException - if record has not been initializedList<Pair<String,Value>> fields()
NoSuchRecordException - if the associated underlying record is not available