Table of Contents

Class KNetStreamsRetriever<TKey, TValue, TJVMKey, TJVMValue>

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 KNetStreamsRetriever<TKey, TValue, TJVMKey, TJVMValue> : IKafkaStreamsRetriever<TKey>, IDisposable where TKey : notnull where TValue : IValueContainer<TKey>

Type Parameters

TKey
TValue
TJVMKey
TJVMValue
Inheritance
KNetStreamsRetriever<TKey, TValue, TJVMKey, TJVMValue>
Implements
Inherited Members

Constructors

KNetStreamsRetriever(IKafkaCluster, IEntityType, IProperty[])

Default initializer

public KNetStreamsRetriever(IKafkaCluster kafkaCluster, IEntityType entityType, IProperty[] properties)

Parameters

kafkaCluster IKafkaCluster
entityType IEntityType
properties IProperty[]

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

key TKey

The key to check for existance

Returns

bool

true if the key exist, false otherwise

GetValueBuffers()

Retrieve an IEnumerable<T> from the IKafkaStreamsRetriever<TKey> instance

public IEnumerable<ValueBuffer> GetValueBuffers()

Returns

IEnumerable<ValueBuffer>

An IEnumerable<T>

TryGetValue(TKey, out ValueBuffer)

Returns the values associated to the key

public bool TryGetValue(TKey key, out ValueBuffer valueBuffer)

Parameters

key TKey

The key to retrieve

valueBuffer ValueBuffer

A ValueBuffer containing the information, or null otherwise

Returns

bool

true if the key exist, false otherwise