Interface TimeIndex<T extends Element>

  • Type Parameters:
    T - Element

    public interface TimeIndex<T extends Element>
    Holds an index based on time attributes.
    • Method Detail

      • getMinTimestamp

        double getMinTimestamp()
        Returns the minimum timestamp in this index.
        Returns:
        the minimum timestamp, or -inf if not defined
      • getMaxTimestamp

        double getMaxTimestamp()
        Returns the maximum timestamp in this index.
        Returns:
        the maximum timestamp, or +inf if not defined
      • get

        ElementIterable<T> get​(double timestamp)
        Returns all elements at the given timestamp.
        Parameters:
        timestamp - timestamp
        Returns:
        elements at this timestamp
      • get

        ElementIterable<T> get​(Interval interval)
        Returns all elements between the given interval (bounds included).
        Parameters:
        interval - interval
        Returns:
        elements at this interval