simtools.data.merge
Class SynchronousMergeDSCollection.TimeSource
java.lang.Object
simtools.data.ValueProvider
simtools.data.DataSource
simtools.data.merge.SynchronousMergeDSCollection.TimeSource
- Enclosing class:
- SynchronousMergeDSCollection
public class SynchronousMergeDSCollection.TimeSource
- extends DataSource
Methods inherited from class simtools.data.DataSource |
addEndNotificationListener, addListener, computeLastIndex, computeSortedOrder, computeStartIndex, createEmptyDataSource, equals, getAuxiliarySources, getByteMax, getByteMin, getChoiceFormat, getDataSourceInformationClass, getFloatMax, getFloatMin, getIntegerMax, getIntegerMin, getLongMax, getLongMin, getShortMax, getShortMin, getSortedOrder, getSourceDependencies, isAuxiliary, isComparable, isCompound, notifyEndNotificationListeners, notifyListenersForDataReplaced, notifyListenersForDataReplaced, notifyListenersForIndexRangeChange, notifyListenersForInfoChange, notifyListenersForOrderChange, notifyListenersForValueChange, notifyListenersForValueRangeChange, removeEndNotificationListener, removeListener, setSlice, updateSortedOrder |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
di
protected DataInfo di
SynchronousMergeDSCollection.TimeSource
public SynchronousMergeDSCollection.TimeSource()
computeMax
public java.lang.Object computeMax()
throws UnsupportedOperation
- Overrides:
computeMax
in class DataSource
- Throws:
UnsupportedOperation
computeMin
public java.lang.Object computeMin()
throws UnsupportedOperation
- Description copied from class:
DataSource
- Force the computation if possible. The operation may take some time.
- Overrides:
computeMin
in class DataSource
- Throws:
UnsupportedOperation
getMax
public java.lang.Object getMax()
throws UnsupportedOperation
- Overrides:
getMax
in class DataSource
- Throws:
UnsupportedOperation
getMin
public java.lang.Object getMin()
throws UnsupportedOperation
- Description copied from class:
DataSource
- Return values if possibly only, without expensive computations.
- Overrides:
getMin
in class DataSource
- Throws:
UnsupportedOperation
getDoubleValue
public double getDoubleValue(long index)
throws DataException
- Description copied from class:
ValueProvider
- Optimized accessor for double values. If the provider can provide doubles directly,
then it should override this method. Otherwise, the default implementation will
do its best to convert the Object returned by getValue() to a double.
This conversion also parses strings, and returns 0 if it failed. An exception is thrown
if, and only if, getValue throws it.
- Overrides:
getDoubleValue
in class ValueProvider
- Throws:
DataException
getObjectValue
public java.lang.Object getObjectValue(long index)
throws DataException
- Description copied from class:
ValueProvider
- Naming compatibility function. Calls getValue()
- Overrides:
getObjectValue
in class ValueProvider
- Throws:
DataException
getDoubleMax
public double getDoubleMax()
throws DataException
- Overrides:
getDoubleMax
in class DataSource
- Throws:
DataException
getDoubleMin
public double getDoubleMin()
throws DataException
- Overrides:
getDoubleMin
in class DataSource
- Throws:
DataException
getValue
public java.lang.Object getValue(long index)
throws DataException
- Specified by:
getValue
in class ValueProvider
- Throws:
DataException
getStartIndex
public long getStartIndex()
throws UnsupportedOperation
- Overrides:
getStartIndex
in class DataSource
- Throws:
UnsupportedOperation
getLastIndex
public long getLastIndex()
throws UnsupportedOperation
- Overrides:
getLastIndex
in class DataSource
- Throws:
UnsupportedOperation
sortedOrder
public int sortedOrder()
- Description copied from class:
DataSource
- Check if the values are sorted or not. This is usefull to optimize some
computations (curves drawing for instance)
- Overrides:
sortedOrder
in class DataSource
- Returns:
- 0 if the values are not sorted, 1 if the values are sorted in
ascending order and -1 if the values are sorted in descending
order
getInformation
public DataInfo getInformation()
- Overrides:
getInformation
in class DataSource