Package com.redislabs.redisgraph
Interface Record
-
- All Known Implementing Classes:
RecordImpl
public interface Record
Container for RedisGraph result values. List records are returned from RedisGraph statement execution, contained within a ResultSet.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
containsKey(String key)
Check if the record header contains the given keyString
getString(int index)
The value at the given field index (represented as String)String
getString(String key)
The value at the given field (represented as String)<T> T
getValue(int index)
The value at the given field index<T> T
getValue(String key)
The value at the given fieldList<String>
keys()
The keys of the recordint
size()
The number of fields in this recordList<Object>
values()
The values of the record
-
-
-
Method Detail
-
getValue
<T> T getValue(int index)
The value at the given field index- Parameters:
index
- field index- Returns:
- the value
-
getValue
<T> T getValue(String key)
The value at the given field- Parameters:
key
- header key- Returns:
- the value
-
getString
String getString(int index)
The value at the given field index (represented as String)- Parameters:
index
-- Returns:
- string representation of the value
-
getString
String getString(String key)
The value at the given field (represented as String)- Parameters:
key
- header key- Returns:
- string representation of the value
-
containsKey
boolean containsKey(String key)
Check if the record header contains the given key- Parameters:
key
- header key- Returns:
true
if the the key exists
-
size
int size()
The number of fields in this record- Returns:
- the number of fields
-
-