public class StreamSequencePivotChooser extends AbstractPivotChooser implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected AbstractStreamObjectIterator<LocalAbstractObject> |
stream
Stream to read pivots from
|
counterBucketReadBuckets, counterObjectDistComp, counterPivotDistComp, counterPivotReadBuckets, preselectedPivots, sampleProviders
Constructor and Description |
---|
StreamSequencePivotChooser(java.lang.Class<? extends LocalAbstractObject> objClass,
java.lang.String fileName)
Creates a new instance of StreamSequencePivotChooser.
|
Modifier and Type | Method and Description |
---|---|
protected void |
selectPivot(int count,
AbstractObjectIterator<? extends LocalAbstractObject> sampleSetIterator)
This method carries out the actual pivot selection, that is, read specified
number of objects from the stream.
|
addPivot, clear, deregisterSampleProvider, getLastPivot, getNextPivot, getPivot, getPivot, iterator, registerSampleProvider, removeLastPivot, selectPivot, selectPivot, size
protected final AbstractStreamObjectIterator<LocalAbstractObject> stream
public StreamSequencePivotChooser(java.lang.Class<? extends LocalAbstractObject> objClass, java.lang.String fileName) throws java.lang.IllegalArgumentException, java.io.IOException
objClass
- the class of objects to read from the streamfileName
- the file to read objects fromjava.lang.IllegalArgumentException
- if the provided class does not have a proper "stream" constructorjava.io.IOException
- if there was an error opening the fileprotected void selectPivot(int count, AbstractObjectIterator<? extends LocalAbstractObject> sampleSetIterator)
selectPivot
in class AbstractPivotChooser
count
- number of pivots to generatesampleSetIterator
- ignored by this chooser, since the pivots are provided externally