Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class SortableSingleDocSource

    Adds fields appropriate for sorting: country, random_string and sort_field (int). Supports the following parameters:

    • sort.rngdefines the range for sort-by-int field (default 20000).
    • rand.seeddefines the seed to initialize Random with (default 13).
    Inheritance
    object
    ContentItemsSource
    ContentSource
    SingleDocSource
    SortableSingleDocSource
    Implements
    IDisposable
    Inherited Members
    SingleDocSource.Dispose(bool)
    SingleDocSource.ResetInputs()
    ContentItemsSource.m_forever
    ContentItemsSource.m_logStep
    ContentItemsSource.m_verbose
    ContentItemsSource.m_encoding
    ContentItemsSource.AddBytes(long)
    ContentItemsSource.AddItem()
    ContentItemsSource.CollectFiles(DirectoryInfo, IList<FileInfo>)
    ContentItemsSource.ShouldLog()
    ContentItemsSource.Dispose()
    ContentItemsSource.BytesCount
    ContentItemsSource.ItemsCount
    ContentItemsSource.Config
    ContentItemsSource.TotalBytesCount
    ContentItemsSource.TotalItemsCount
    ContentItemsSource.PrintStatistics(string)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Benchmarks.ByTask.Feeds
    Assembly: Lucene.Net.Benchmark.dll
    Syntax
    public class SortableSingleDocSource : SingleDocSource, IDisposable

    Methods

    GetNextDocData(DocData)

    Returns the next DocData from the content source. Implementations must account for multi-threading, as multiple threads can call this method simultaneously.

    Declaration
    public override DocData GetNextDocData(DocData docData)
    Parameters
    Type Name Description
    DocData docData
    Returns
    Type Description
    DocData
    Overrides
    SingleDocSource.GetNextDocData(DocData)

    SetConfig(Config)

    Sets the Config for this content source. If you override this method, you must call base.SetConfig(config).

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

    Implements

    IDisposable
    Back to top Copyright © 2024 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.