public class RandomFacetSource extends FacetSource
Supports the following parameters:
Random with
(default: 13).
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.
|
void |
getNextFacets(List<CategoryPath> facets)
Fills the next facets content items in the given list.
|
void |
setConfig(Config config)
Sets the
Config for this content source. |
resetInputsaddBytes, addItem, collectFiles, getBytesCount, getConfig, getItemsCount, getTotalBytesCount, getTotalItemsCount, printStatistics, shouldLogpublic void getNextFacets(List<CategoryPath> facets) throws NoMoreDataException, IOException
FacetSourcegetNextFacets 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 ContentItemsSourceCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.