public class RandomFacetSource extends FacetSource
Supports the following parameters:
encoding, forever, logStep, verbose| Constructor and Description |
|---|
RandomFacetSource() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Called when reading from this content source is no longer required.
|
CategoryContainer |
getNextFacets(CategoryContainer facets)
Returns the next
facets content item. |
void |
setConfig(Config config)
Sets the
Config for this content source. |
resetInputsaddBytes, addItem, collectFiles, getBytesCount, getConfig, getItemsCount, getTotalBytesCount, getTotalItemsCount, printStatistics, shouldLogpublic CategoryContainer getNextFacets(CategoryContainer facets) throws NoMoreDataException, java.io.IOException
FacetSourcefacets content item.
Implementations must account for multi-threading, as multiple threads
can call this method simultaneously.getNextFacets in class FacetSourceNoMoreDataExceptionjava.io.IOExceptionpublic void close()
throws java.io.IOException
ContentItemsSourceclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class ContentItemsSourcejava.io.IOExceptionpublic void setConfig(Config config)
ContentItemsSourceConfig for this content source. If you override this
method, you must call super.setConfig.setConfig in class ContentItemsSourceCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.