GetOrdRange() public abstract method

Returns the OrdRange for this dimension.
public abstract GetOrdRange ( string dim ) : OrdRange
dim string
return OrdRange
コード例 #1
0
        public override FacetResult GetTopChildren(int topN, string dim, params string[] path)
        {
            if (topN <= 0)
            {
                throw new ArgumentOutOfRangeException(nameof(topN), "topN must be > 0 (got: " + topN + ")"); // LUCENENET specific - changed from IllegalArgumentException to ArgumentOutOfRangeException (.NET convention)
            }
            if (path.Length > 0)
            {
                throw new ArgumentOutOfRangeException(nameof(path), "path should be 0 length"); // LUCENENET specific - changed from IllegalArgumentException to ArgumentOutOfRangeException (.NET convention)
            }
            OrdRange ordRange = state.GetOrdRange(dim);

            if (ordRange == null)
            {
                throw new ArgumentException("dimension \"" + dim + "\" was not indexed");
            }
            return(GetDim(dim, ordRange, topN));
        }
コード例 #2
0
        public override FacetResult GetTopChildren(int topN, string dim, params string[] path)
        {
            if (topN <= 0)
            {
                throw new ArgumentException("topN must be > 0 (got: " + topN + ")");
            }
            if (path.Length > 0)
            {
                throw new ArgumentException("path should be 0 length");
            }
            OrdRange ordRange = state.GetOrdRange(dim);

            if (ordRange == null)
            {
                throw new ArgumentException("dimension \"" + dim + "\" was not indexed");
            }
            return(GetDim(dim, ordRange, topN));
        }