Class KafkaStreamsBaseRetriever<TKey, TValue, K, V>
- Namespace
- MASES.EntityFrameworkCore.KNet.Storage.Internal
- Assembly
- MASES.EntityFrameworkCore.KNet.dll
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
public class KafkaStreamsBaseRetriever<TKey, TValue, K, V> : IKafkaStreamsRetriever<TKey>, IDisposable where TKey : notnull where TValue : IValueContainer<TKey>
Type Parameters
TKeyTValueKV
- Inheritance
-
KafkaStreamsBaseRetriever<TKey, TValue, K, V>
- Implements
-
IKafkaStreamsRetriever<TKey>
- Derived
- Inherited Members
Constructors
KafkaStreamsBaseRetriever(IKafkaCluster, IEntityType, IProperty[], ISerDes<TKey, K>, ISerDes<TValue, V>, StreamsBuilder)
Default initializer
public KafkaStreamsBaseRetriever(IKafkaCluster kafkaCluster, IEntityType entityType, IProperty[] properties, ISerDes<TKey, K> keySerdes, ISerDes<TValue, V> valueSerdes, StreamsBuilder builder)
Parameters
kafkaClusterIKafkaClusterentityTypeIEntityTypepropertiesIProperty[]keySerdesISerDes<TKey, K>valueSerdesISerDes<TValue, V>builderStreamsBuilder
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Exist(TKey)
Che if a key exist
public bool Exist(TKey key)
Parameters
keyTKeyThe key to check for existance
Returns
GetValueBuffers()
Retrieve an IEnumerable<T> from the IKafkaStreamsRetriever<TKey> instance
public IEnumerable<ValueBuffer> GetValueBuffers()
Returns
TryGetValue(TKey, out ValueBuffer)
Returns the values associated to the key
public bool TryGetValue(TKey key, out ValueBuffer valueBuffer)
Parameters
keyTKeyThe key to retrieve
valueBufferValueBufferA ValueBuffer containing the information, or null otherwise