Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class RandomFacetSource

    Simple implementation of a random facet source.

    Inheritance
    System.Object
    ContentItemsSource
    FacetSource
    RandomFacetSource
    Implements
    System.IDisposable
    Inherited Members
    FacetSource.ResetInputs()
    ContentItemsSource.m_forever
    ContentItemsSource.m_logStep
    ContentItemsSource.m_verbose
    ContentItemsSource.m_encoding
    ContentItemsSource.AddBytes(Int64)
    ContentItemsSource.AddItem()
    ContentItemsSource.CollectFiles(DirectoryInfo, IList<FileInfo>)
    ContentItemsSource.ShouldLog()
    ContentItemsSource.Dispose()
    ContentItemsSource.BytesCount
    ContentItemsSource.ItemsCount
    ContentItemsSource.Config
    ContentItemsSource.TotalBytesCount
    ContentItemsSource.TotalItemsCount
    ContentItemsSource.PrintStatistics(String)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.Benchmarks.ByTask.Feeds
    Assembly: Lucene.Net.Benchmark.dll
    Syntax
    public class RandomFacetSource : FacetSource, IDisposable
    Remarks

    Supports the following parameters:

    • rand.seeddefines the seed to initialize System.Random with (default: 13).
    • max.doc.facet.dimsMax number of random dimensions to create (default: 5); actual number of dimensions would be anything between 1 and that number.
    • max.doc.facetsmaximal #facets per doc (default: 10). Actual number of facets in a certain doc would be anything between 1 and that number.
    • max.facet.depthmaximal #components in a facet (default: 3). Actual number of components in a certain facet would be anything between 1 and that number.

    Methods

    | Improve this Doc View Source

    Configure(FacetsConfig)

    Declaration
    public override void Configure(FacetsConfig config)
    Parameters
    Type Name Description
    Lucene.Net.Facet.FacetsConfig config
    Overrides
    FacetSource.Configure(FacetsConfig)
    | Improve this Doc View Source

    Dispose(Boolean)

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing
    Overrides
    ContentItemsSource.Dispose(Boolean)
    | Improve this Doc View Source

    GetNextFacets(IList<FacetField>)

    Declaration
    public override void GetNextFacets(IList<FacetField> facets)
    Parameters
    Type Name Description
    System.Collections.Generic.IList<Lucene.Net.Facet.FacetField> facets
    Overrides
    FacetSource.GetNextFacets(IList<FacetField>)
    | Improve this Doc View Source

    SetConfig(Config)

    Declaration
    public override void SetConfig(Config config)
    Parameters
    Type Name Description
    Config config
    Overrides
    ContentItemsSource.SetConfig(Config)

    Implements

    System.IDisposable
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.