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. |
resetInputs
addBytes, addItem, collectFiles, getBytesCount, getConfig, getItemsCount, getTotalBytesCount, getTotalItemsCount, printStatistics, shouldLog
public CategoryContainer getNextFacets(CategoryContainer facets) throws NoMoreDataException, IOException
FacetSource
facets content item
.
Implementations must account for multi-threading, as multiple threads
can call this method simultaneously.getNextFacets
in class FacetSource
NoMoreDataException
IOException
public void close() throws IOException
ContentItemsSource
close
in interface Closeable
close
in class ContentItemsSource
IOException
public void setConfig(Config config)
ContentItemsSource
Config
for this content source. If you override this
method, you must call super.setConfig.setConfig
in class ContentItemsSource