- All Superinterfaces:
MapAccessor,MapAccessorWithDefaultValue
Container for Cypher result values.
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.
- Since:
- 1.0
-
Method Summary
Methods inherited from interface org.neo4j.driver.types.MapAccessor
asMap, asMap, containsKey, get, size, values
-
Method Details
-
keys
Retrieve the keys of the underlying map- Specified by:
keysin interfaceMapAccessor- Returns:
- all field keys in order
-
values
Retrieve the values of the underlying map- Specified by:
valuesin interfaceMapAccessor- Returns:
- all field keys in order
-
index
Retrieve the index of the field with the given key- Parameters:
key- the give key- Returns:
- the index of the field as used by
get(int) - Throws:
NoSuchElementException- if the given key is not fromkeys()
-
get
Retrieve the value at the given field index- Parameters:
index- the index of the value- Returns:
- the value or a
NullValueif the index is out of bounds - Throws:
ClientException- if record has not been initialized
-
fields
Retrieve all record fields- Returns:
- all fields in key order
- Throws:
NoSuchRecordException- if the associated underlying record is not available
-