Skip to content

Commit e181020

Browse files
committed
Merge branch 'feature/public-state'
2 parents de71dec + 44a65b7 commit e181020

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

CardinalityEstimation/CardinalityEstimator.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public CardinalityEstimator(CardinalityEstimator other)
208208
/// <param name="hashFunction">Hash function to use for element hashing</param>
209209
/// <param name="state">The state to initialize the estimator with</param>
210210
/// <exception cref="ArgumentNullException">Thrown when <paramref name="state"/> is null</exception>
211-
internal CardinalityEstimator(GetHashCodeDelegate hashFunction, CardinalityEstimatorState state)
211+
public CardinalityEstimator(GetHashCodeDelegate hashFunction, CardinalityEstimatorState state)
212212
: this(state)
213213
{
214214
// Init the hash function
@@ -231,7 +231,7 @@ internal CardinalityEstimator(GetHashCodeDelegate hashFunction, CardinalityEstim
231231
/// <param name="hashFunctionSpan">Span hash function to use for element hashing</param>
232232
/// <param name="state">The state to initialize the estimator with</param>
233233
/// <exception cref="ArgumentNullException">Thrown when <paramref name="state"/> is null</exception>
234-
internal CardinalityEstimator(GetHashCodeSpanDelegate hashFunctionSpan, CardinalityEstimatorState state)
234+
public CardinalityEstimator(GetHashCodeSpanDelegate hashFunctionSpan, CardinalityEstimatorState state)
235235
: this(state)
236236
{
237237
// Init the hash function
@@ -681,12 +681,11 @@ public static CardinalityEstimator Merge(IEnumerable<CardinalityEstimator> estim
681681
return result;
682682
}
683683

684-
#region Private/Internal methods
685684
/// <summary>
686685
/// Gets the current state of this estimator for serialization purposes
687686
/// </summary>
688687
/// <returns>A <see cref="CardinalityEstimatorState"/> representing the current state</returns>
689-
internal CardinalityEstimatorState GetState()
688+
public CardinalityEstimatorState GetState()
690689
{
691690
return new CardinalityEstimatorState
692691
{
@@ -699,6 +698,7 @@ internal CardinalityEstimatorState GetState()
699698
};
700699
}
701700

701+
#region Private/Internal methods
702702
/// <summary>
703703
/// Creates state for an empty CardinalityEstimator with DirectCount and LookupSparse empty, LookupDense null.
704704
/// </summary>

CardinalityEstimation/CardinalityEstimatorState.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ namespace CardinalityEstimation
4141
/// </remarks>
4242
/// <seealso cref="CardinalityEstimator"/>
4343
/// <seealso cref="CardinalityEstimatorSerializer"/>
44-
internal class CardinalityEstimatorState
44+
public class CardinalityEstimatorState
4545
{
4646
/// <summary>
4747
/// Gets or sets the number of bits for indexing HLL sub-streams.

0 commit comments

Comments
 (0)