Lucene.Net.Facet.SortedSet.SortedSetDocValuesReaderState.GetOrdRange C# (CSharp) Method

GetOrdRange() public abstract method

Returns the OrdRange for this dimension.
public abstract GetOrdRange ( string dim ) : OrdRange
dim string
return OrdRange
        public abstract OrdRange GetOrdRange(string dim);

Usage Example

Exemplo n.º 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));
        }
All Usage Examples Of Lucene.Net.Facet.SortedSet.SortedSetDocValuesReaderState::GetOrdRange