< Summary

Class:Microsoft.Azure.Search.Models.ValueFacetResult`1
Assembly:Microsoft.Azure.Search.Data
File(s):C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Search.Data\src\Customizations\Documents\Models\ValueFacetResult.cs
Covered lines:6
Uncovered lines:0
Coverable lines:6
Total lines:37
Line coverage:100% (6 of 6)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%100%
get_Count()-100%100%
get_Value()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Search.Data\src\Customizations\Documents\Models\ValueFacetResult.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License. See License.txt in the project root for
 3// license information.
 4
 5namespace Microsoft.Azure.Search.Models
 6{
 7    /// <summary>
 8    /// A single bucket of a simple or interval facet query result that reports the number of documents with a field
 9    /// falling within a particular interval or having a specific value.
 10    /// </summary>
 11    /// <typeparam name="T">
 12    /// A type that matches the type of the field to which the facet was applied.
 13    /// </typeparam>
 14    public class ValueFacetResult<T>
 15    {
 16        /// <summary>
 17        /// Creates a new instance of the <c cref="ValueFacetResult{T}">ValueFacetResult</c> class.
 18        /// </summary>
 19        /// <param name="count">The approximate count of documents falling within the bucket described by this facet.</p
 20        /// <param name="value">The value of the facet, or the inclusive lower bound if it's an interval facet.</param>
 21621        public ValueFacetResult(long count, T value)
 22        {
 21623            Value = value;
 21624            Count = count;
 21625        }
 26
 27        /// <summary>
 28        /// Gets the approximate count of documents falling within the bucket described by this facet.
 29        /// </summary>
 21630        public long Count { get; }
 31
 32        /// <summary>
 33        /// Gets the value of the facet, or the inclusive lower bound if it's an interval facet.
 34        /// </summary>
 21635        public T Value { get; }
 36    }
 37}

Methods/Properties

.ctor(...)
get_Count()
get_Value()