Skip to content

Commit

Permalink
Hide Memory Collection types for internal usage only
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytrostruk committed Oct 13, 2023
1 parent f10d90f commit d8fee5d
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 225 deletions.
2 changes: 1 addition & 1 deletion dotnet/src/Plugins/Plugins.Memory/Collections/MinHeap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Microsoft.SemanticKernel.Plugins.Memory.Collections;
/// Implements the classic 'heap' data structure. By default, the item with the lowest value is at the top of the heap.
/// </summary>
/// <typeparam name="T">Data type.</typeparam>
public sealed class MinHeap<T> : IEnumerable<T> where T : IComparable<T>
internal sealed class MinHeap<T> : IEnumerable<T> where T : IComparable<T>
{
private const int DefaultCapacity = 7;
private const int MinCapacity = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Microsoft.SemanticKernel.Plugins.Memory.Collections;
/// Structure for storing data which can be scored.
/// </summary>
/// <typeparam name="T">Data type.</typeparam>
public readonly struct ScoredValue<T> : IComparable<ScoredValue<T>>, IEquatable<ScoredValue<T>>
internal readonly struct ScoredValue<T> : IComparable<ScoredValue<T>>, IEquatable<ScoredValue<T>>
{
/// <summary>
/// Initializes a new instance of the <see cref="ScoredValue{T}"/> struct.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Microsoft.SemanticKernel.Plugins.Memory.Collections;
/// Automatically flushes out any not in the top N.
/// By default, items are not sorted by score until you call <see cref="TopNCollection{T}.SortByScore"/>.
/// </summary>
public class TopNCollection<T> : IEnumerable<ScoredValue<T>>
internal sealed class TopNCollection<T> : IEnumerable<ScoredValue<T>>
{
private readonly MinHeap<ScoredValue<T>> _heap;
private bool _sorted = false;
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit d8fee5d

Please sign in to comment.