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 |
configure(FacetsConfig config) |
void |
getNextFacets(List<FacetField> 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<FacetField> facets) throws NoMoreDataException, IOException
FacetSourcegetNextFacets in class FacetSourceNoMoreDataExceptionIOExceptionpublic void configure(FacetsConfig config)
configure in class FacetSourcepublic void close()
throws IOException
ContentItemsSourceclose in interface Closeableclose in interface AutoCloseableclose 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-2016 Apache Software Foundation. All Rights Reserved.