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. |
resetInputs
addBytes, addItem, collectFiles, getBytesCount, getConfig, getItemsCount, getTotalBytesCount, getTotalItemsCount, printStatistics, shouldLog
public void getNextFacets(List<FacetField> facets) throws NoMoreDataException, IOException
FacetSource
getNextFacets
in class FacetSource
NoMoreDataException
IOException
public void configure(FacetsConfig config)
configure
in class FacetSource
public void close() throws IOException
ContentItemsSource
close
in interface Closeable
close
in interface AutoCloseable
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
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.