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, IOException
FacetSourcefacets content item.
Implementations must account for multi-threading, as multiple threads
can call this method simultaneously.getNextFacets in class FacetSourceNoMoreDataExceptionIOExceptionpublic void close()
throws IOException
ContentItemsSourceclose in interface Closeableclose in class ContentItemsSourceIOExceptionpublic void setConfig(Config config)
ContentItemsSourceConfig for this content source. If you override this
method, you must call super.setConfig.setConfig in class ContentItemsSource