Class IntervalQuadTree<V>

    • Constructor Detail

      • IntervalQuadTree

        public IntervalQuadTree()
      • IntervalQuadTree

        public IntervalQuadTree​(int maxBucketSize)
    • Method Detail

      • getStartTimeMillis

        public abstract long getStartTimeMillis​(V v)
      • getEndTimeMillis

        public abstract long getEndTimeMillis​(V v)
      • getAll

        public Set<V> getAll()
      • clear

        public void clear()
      • add

        public void add​(V value)
      • remove

        public void remove​(V value)
      • get

        public Collection<V> get​(TimeStamp start,
                                 TimeStamp end)
        Parameters:
        start - inclusive start TimeStamp
        end - exclusive end TimeStamp
        Returns:
        all Events whose time span overlaps with the provided bounds.
      • get

        public Collection<V> get​(TimeStamp start,
                                 boolean startInclusive,
                                 TimeStamp end,
                                 boolean endInclusive)
        Returns:
        all Events whose time span overlaps with the provided bounds.
      • get

        public Collection<V> get​(long time)
        Parameters:
        time - time expressed as posix milliseconds
        See Also:
        get(TimeStamp)
      • get

        public Collection<V> get​(long start,
                                 long end)
        Parameters:
        start - time expressed as posix milliseconds
        end - time expressed as posix milliseconds
        See Also:
        get(TimeStamp, TimeStamp)
      • getOverlapping

        public Collection<V> getOverlapping​(V value)
      • getInterior

        public Collection<V> getInterior​(long start,
                                         long end)
      • getInterior

        public Collection<V> getInterior​(long start,
                                         boolean startInclusive,
                                         long end,
                                         boolean endInclusive)
      • isEmpty

        public boolean isEmpty()
      • size

        public int size()