Container for RedisGraph result values. List records are returned from RedisGraph statement execution, contained within a ResultSet.
| 8 | * List records are returned from RedisGraph statement execution, contained within a ResultSet. |
| 9 | */ |
| 10 | public interface Record { |
| 11 | |
| 12 | /** |
| 13 | * The value at the given field index |
| 14 | * |
| 15 | * @param index field index |
| 16 | * |
| 17 | * @return the value |
| 18 | */ |
| 19 | <T> T getValue(int index); |
| 20 | |
| 21 | /** |
| 22 | * The value at the given field |
| 23 | * |
| 24 | * @param key header key |
| 25 | * |
| 26 | * @return the value |
| 27 | */ |
| 28 | <T> T getValue(String key); |
| 29 | |
| 30 | /** |
| 31 | * The value at the given field index (represented as String) |
| 32 | * |
| 33 | * @param index |
| 34 | * @return string representation of the value |
| 35 | */ |
| 36 | String getString(int index); |
| 37 | |
| 38 | /** |
| 39 | * The value at the given field (represented as String) |
| 40 | * |
| 41 | * @param key header key |
| 42 | * |
| 43 | * @return string representation of the value |
| 44 | */ |
| 45 | String getString(String key); |
| 46 | |
| 47 | /** |
| 48 | * The keys of the record |
| 49 | * |
| 50 | * @return list of the record key |
| 51 | */ |
| 52 | List<String> keys(); |
| 53 | |
| 54 | /** |
| 55 | * The values of the record |
| 56 | * |
| 57 | * @return list of the record values |
| 58 | */ |
| 59 | List<Object> values(); |
| 60 | |
| 61 | /** |
| 62 | * Check if the record header contains the given key |
| 63 | * |
| 64 | * @param key header key |
| 65 | * |
| 66 | * @return <code>true</code> if the the key exists |
| 67 | */ |
no outgoing calls
no test coverage detected