|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmessif.pivotselection.AbstractPivotChooser
messif.pivotselection.StreamSequencePivotChooser
public class StreamSequencePivotChooser
Field Summary | |
---|---|
protected AbstractStreamObjectIterator<LocalAbstractObject> |
stream
Stream to read pivots from |
Fields inherited from class messif.pivotselection.AbstractPivotChooser |
---|
counterBucketReadBuckets, counterObjectDistComp, counterPivotDistComp, counterPivotReadBuckets, preselectedPivots, sampleProviders |
Constructor Summary | |
---|---|
StreamSequencePivotChooser(java.lang.Class<? extends LocalAbstractObject> objClass,
java.lang.String fileName)
Creates a new instance of StreamSequencePivotChooser. |
Method Summary | |
---|---|
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. |
Methods inherited from class messif.pivotselection.AbstractPivotChooser |
---|
addPivot, clear, deregisterSampleProvider, getLastPivot, getNextPivot, getPivot, getPivot, iterator, registerSampleProvider, removeLastPivot, selectPivot, selectPivot, size |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final AbstractStreamObjectIterator<LocalAbstractObject> stream
Constructor Detail |
---|
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 from
java.lang.IllegalArgumentException
- if the provided class does not have a proper "stream" constructor
java.io.IOException
- if there was an error opening the fileMethod Detail |
---|
protected 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |