Class SortableSingleDocSource
java.lang.Object
org.apache.lucene.benchmark.byTask.feeds.ContentItemsSource
org.apache.lucene.benchmark.byTask.feeds.ContentSource
org.apache.lucene.benchmark.byTask.feeds.SingleDocSource
org.apache.lucene.benchmark.byTask.feeds.SortableSingleDocSource
- All Implemented Interfaces:
Closeable
,AutoCloseable
Adds fields appropriate for sorting: country, random_string and sort_field (int). Supports the
following parameters:
- sort.rng - defines the range for sort-by-int field (default 20000).
- rand.seed - defines the seed to initialize Random with (default 13).
-
Field Summary
Fields inherited from class org.apache.lucene.benchmark.byTask.feeds.ContentItemsSource
encoding, forever, logStep, verbose
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.lucene.benchmark.byTask.feeds.SingleDocSource
close, resetInputs
Methods inherited from class org.apache.lucene.benchmark.byTask.feeds.ContentItemsSource
addBytes, addItem, collectFiles, getBytesCount, getConfig, getItemsCount, getTotalBytesCount, getTotalItemsCount, printStatistics, shouldLog
-
Constructor Details
-
SortableSingleDocSource
public SortableSingleDocSource()
-
-
Method Details
-
getNextDocData
Description copied from class:ContentSource
Returns the nextDocData
from the content source. Implementations must account for multi-threading, as multiple threads can call this method simultaneously.- Overrides:
getNextDocData
in classSingleDocSource
- Throws:
NoMoreDataException
-
setConfig
Description copied from class:ContentItemsSource
Sets theConfig
for this content source. If you override this method, you must call super.setConfig.- Overrides:
setConfig
in classContentItemsSource
-