V - the type of the backing Object.public interface ObjectRecord<S,V> extends Record<S,V>
Record within the stream mapped to a single object. This may be a simple type, such as String or a
complex one.2.2| Modifier and Type | Method and Description |
|---|---|
static <S,V> ObjectRecord<S,V> |
create(S stream,
V value)
|
default <HK,HV> MapRecord<S,HK,HV> |
toMapRecord(HashMapper<? super V,HK,HV> mapper)
Apply the given
HashMapper to the backing value to create a new MapRecord. |
ObjectRecord<S,V> |
withId(RecordId id)
|
<SK> ObjectRecord<SK,V> |
withStreamKey(SK key)
Create a new instance of
Record with the given key to store the record at. |
static <S,V> ObjectRecord<S,V> create(S stream, V value)
stream - the stream key.value - the value.ObjectRecord holding the stream key and value.ObjectRecord<S,V> withId(RecordId id)
Record<SK> ObjectRecord<SK,V> withStreamKey(SK key)
RecordRecord with the given key to store the record at.withStreamKey in interface Record<S,V>key - the Redis key identifying the stream.Record.default <HK,HV> MapRecord<S,HK,HV> toMapRecord(HashMapper<? super V,HK,HV> mapper)
HashMapper to the backing value to create a new MapRecord. An already assigned
id is carried over to the new instance.Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.