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(java.util.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(java.util.List<FacetField> facets) throws NoMoreDataException, java.io.IOException
FacetSourcegetNextFacets in class FacetSourceNoMoreDataExceptionjava.io.IOExceptionpublic void configure(FacetsConfig config)
configure in class FacetSourcepublic 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–2025 The Apache Software Foundation. All rights reserved.