Table of Contents

Class EntityTypeProducer<TKey, TValueContainer, TJVMKey, TJVMValueContainer>

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 EntityTypeProducer<TKey, TValueContainer, TJVMKey, TJVMValueContainer> : IEntityTypeProducer<TKey>, IEntityTypeProducer, IDisposable where TKey : notnull where TValueContainer : class, IValueContainer<TKey>

Type Parameters

TKey
TValueContainer
TJVMKey
TJVMValueContainer
Inheritance
EntityTypeProducer<TKey, TValueContainer, TJVMKey, TJVMValueContainer>
Implements
Inherited Members

Constructors

EntityTypeProducer(IEntityType, IKEFCoreCluster)

Default initializer

public EntityTypeProducer(IEntityType entityType, IKEFCoreCluster cluster)

Parameters

entityType IEntityType
cluster IKEFCoreCluster

Properties

EntityType

Associated IEntityType

public virtual IEntityType EntityType { get; }

Property Value

IEntityType

Methods

Commit(IList<Future<RecordMetadata>>?, IEnumerable<IKEFCoreRowBag>)

Stores an IEnumerable<T>

public void Commit(IList<Future<RecordMetadata>>? futures, IEnumerable<IKEFCoreRowBag> records)

Parameters

futures IList<Future<RecordMetadata>>

The Future<V> with RecordMetadata generated from Commit(IList<Future<RecordMetadata>>?, IEnumerable<IKEFCoreRowBag>)

records IEnumerable<IKEFCoreRowBag>

The IEnumerable<T> to be stored

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

EnsureSynchronized(long)

Verify if local instance is synchronized with the IKEFCoreCluster instance

public bool? EnsureSynchronized(long timeout)

Parameters

timeout long

Returns

bool?

Exist(TKey)

Check if a key exist

public bool Exist(TKey key)

Parameters

key TKey

The key to check for existence

Returns

bool

true if the key exist, false otherwise

GetValueBuffer(object?[]?)

Retrieve anValueBuffer associated to keyValues

public ValueBuffer? GetValueBuffer(object?[]? keyValues)

Parameters

keyValues object[]

The key

Returns

ValueBuffer?

An IEnumerable<T>

GetValueBuffers()

Retrieve an IEnumerable<T>

public IEnumerable<ValueBuffer> GetValueBuffers()

Returns

IEnumerable<ValueBuffer>

An IEnumerable<T>

GetValueBuffersByPrefix(object?[]?)

Retrieve the ValueBuffer using prefix scan

public IEnumerable<ValueBuffer> GetValueBuffersByPrefix(object?[]? prefixValues)

Parameters

prefixValues object[]

The prefix

Returns

IEnumerable<ValueBuffer>

An IEnumerable<T> of ValueBuffer

GetValueBuffersRange(object?[]?, object?[]?)

Retrieve an IEnumerable<T> in the range rangeStart/rangeEnd

public IEnumerable<ValueBuffer> GetValueBuffersRange(object?[]? rangeStart, object?[]? rangeEnd)

Parameters

rangeStart object[]

The start key

rangeEnd object[]

The end key

Returns

IEnumerable<ValueBuffer>

An IEnumerable<T>

GetValueBuffersReverse()

Retrieve a reverse order IEnumerable<T>

public IEnumerable<ValueBuffer> GetValueBuffersReverse()

Returns

IEnumerable<ValueBuffer>

An IEnumerable<T>

GetValueBuffersReverseRange(object?[]?, object?[]?)

Retrieve an IEnumerable<T> in the reverse range rangeStart/rangeEnd

public IEnumerable<ValueBuffer> GetValueBuffersReverseRange(object?[]? rangeStart, object?[]? rangeEnd)

Parameters

rangeStart object[]

The start key

rangeEnd object[]

The end key

Returns

IEnumerable<ValueBuffer>

An IEnumerable<T>

Start()

Starts the IEntityTypeProducer instance

public void Start()

TryAddKey(object[])

Try add a new item based on the values associated to the keyValues

public void TryAddKey(object[] keyValues)

Parameters

keyValues object[]

The key values to manage

TryGetProperties(TKey, out IDictionary<string, object?>, out IDictionary<string, object?>)

public bool TryGetProperties(TKey key, out IDictionary<string, object?> properties, out IDictionary<string, object?> complexProperties)

Parameters

key TKey
properties IDictionary<string, object>
complexProperties IDictionary<string, object>

Returns

bool

TryGetValueBuffer(TKey, out ValueBuffer)

Returns the values associated to the key

public bool TryGetValueBuffer(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