public interface ByteRecord extends MapRecord<byte[],byte[],byte[]>
Record within the stream backed by a collection of binary field/value paris.2.2| Modifier and Type | Method and Description |
|---|---|
default <K,HK,HV> MapRecord<K,HK,HV> |
deserialize(RedisSerializer<? extends K> streamSerializer,
RedisSerializer<? extends HK> fieldSerializer,
RedisSerializer<? extends HV> valueSerializer)
Deserialize
key with the streamSerializer, field names with the
fieldSerializer and values with the valueSerializer. |
default <T> MapRecord<T,T,T> |
deserialize(RedisSerializer<T> serializer)
|
static ByteRecord |
of(MapRecord<byte[],byte[],byte[]> source)
Convert a binary
MapRecord into a ByteRecord. |
ByteRecord |
withId(RecordId id)
|
ByteRecord |
withStreamKey(byte[] key)
Create a new
ByteRecord with the associated stream key. |
create, map, mapEntries, serialize, serialize, toObjectRecord, withStreamKeygetId, getStream, getValue, offorEach, iterator, spliteratorByteRecord withId(RecordId id)
RecordByteRecord withStreamKey(byte[] key)
ByteRecord with the associated stream key.key - the binary stream key.ByteRecord.default <T> MapRecord<T,T,T> deserialize(@Nullable RedisSerializer<T> serializer)
key and field/value pairs with the given
RedisSerializer. An already assigned id is carried over to the new instance.default <K,HK,HV> MapRecord<K,HK,HV> deserialize(@Nullable RedisSerializer<? extends K> streamSerializer, @Nullable RedisSerializer<? extends HK> fieldSerializer, @Nullable RedisSerializer<? extends HV> valueSerializer)
key with the streamSerializer, field names with the
fieldSerializer and values with the valueSerializer. An already assigned id
is carried over to the new instance.streamSerializer - can be null if the key suites already the target format.fieldSerializer - can be null if the fields suite already the target format.valueSerializer - can be null if the values suite already the target format.MapRecord holding the deserialized values.static ByteRecord of(MapRecord<byte[],byte[],byte[]> source)
MapRecord into a ByteRecord.of in interface Record<byte[],Map<byte[],byte[]>>source - must not be null.ByteRecord.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.