@Component public class DataReaderPositionManagerImpl extends java.lang.Object implements DataReaderPositionManager
Constructor and Description |
---|
DataReaderPositionManagerImpl() |
Modifier and Type | Method and Description |
---|---|
Observation |
moveToObs(DataReaderEngine dataReaderEngine,
int datasetPos,
int keyPosition,
int obsNum)
Moves the data reader engine to the observation at the given index, from the key otained by the given index
|
Keyable |
moveToPosition(DataReaderEngine dataReaderEngine,
int datasetPos,
int i)
Moves the data reader engine to the position at the given index
|
public Keyable moveToPosition(DataReaderEngine dataReaderEngine, int datasetPos, int i)
DataReaderPositionManager
moveToPosition
in interface DataReaderPositionManager
datasetPos
- the dataset to read the key fori
- the key index in the datasetpublic Observation moveToObs(DataReaderEngine dataReaderEngine, int datasetPos, int keyPosition, int obsNum)
DataReaderPositionManager
moveToObs
in interface DataReaderPositionManager
datasetPos
- the dataset to read the key forkeyPosition
- the key index that the observation belongs toobsNum
- the observation index in the key