Show / Hide Table of Contents

Class NoBalancingStrategy<T, TChunk>

Denotes a class representing no balancing strategy at all

Inheritance
object
NoBalancingStrategy<T, TChunk>
Implements
IChunkBalancingStrategyProvider<T, TChunk>
IChunkBalancingStrategy<T, TChunk>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: NMF.Expressions.Linq
Assembly: NMF.Expressions.Chunk.dll
Syntax
public sealed class NoBalancingStrategy<T, TChunk> : IChunkBalancingStrategyProvider<T, TChunk>, IChunkBalancingStrategy<T, TChunk>
Type Parameters
Name Description
T
TChunk

Fields

| Edit this page View Source

Instance

Gets the default instance

Declaration
public static readonly NoBalancingStrategy<T, TChunk> Instance
Field Value
Type Description
NoBalancingStrategy<T, TChunk>

Methods

| Edit this page View Source

Balance(ref List<TChunk>, ref List<TChunk>)

Balances the chunk collection after items have been removed

Declaration
public void Balance(ref List<TChunk> addedChunks, ref List<TChunk> removedChunks)
Parameters
Type Name Description
List<TChunk> addedChunks

A reference to a collection with added chunks

List<TChunk> removedChunks

A reference to a collection with removed chunks

| Edit this page View Source

CreateStrategy(IObservableChunk<T, TChunk>)

Create a strategy for the given observable chunk collection

Declaration
public IChunkBalancingStrategy<T, TChunk> CreateStrategy(IObservableChunk<T, TChunk> observableChunk)
Parameters
Type Name Description
IObservableChunk<T, TChunk> observableChunk

The observable chunk collection

Returns
Type Description
IChunkBalancingStrategy<T, TChunk>

A chunk balancing strategy

| Edit this page View Source

TryAddToExistingChunk(T, int)

Tries to add the given item to an existing chunk

Declaration
public bool TryAddToExistingChunk(T item, int startingIndex)
Parameters
Type Name Description
T item

The item that should be added

int startingIndex

The starting index

Returns
Type Description
bool

True, if the item could be added to an existing chunk, otherwise False

Implements

IChunkBalancingStrategyProvider<T, TChunk>
IChunkBalancingStrategy<T, TChunk>

Extension Methods

ExpressionExtensions.AsOne<T>(T)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX