Class MergedLogSource

  • All Implemented Interfaces:
    java.lang.Iterable<LogEntry>, LogSource

    public class MergedLogSource
    extends java.lang.Object
    implements LogSource
    • Field Detail

      • sources

        protected java.util.List<LogSource> sources
    • Constructor Detail

      • MergedLogSource

        public MergedLogSource​(java.lang.String[] files)
                        throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • overlapsRange

        public boolean overlapsRange​(long starttime,
                                     long endtime)
        Specified by:
        overlapsRange in interface LogSource
      • size

        public long size()
        Specified by:
        size in interface LogSource
      • iterator

        public LogIterator iterator​(long starttime,
                                    long endtime)
                             throws java.lang.IllegalArgumentException
        Specified by:
        iterator in interface LogSource
        Throws:
        java.lang.IllegalArgumentException
      • iterator

        public LogIterator iterator()
                             throws java.lang.IllegalArgumentException
        Specified by:
        iterator in interface java.lang.Iterable<LogEntry>
        Specified by:
        iterator in interface LogSource
        Throws:
        java.lang.IllegalArgumentException
      • addSource

        public void addSource​(java.lang.String f)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException
        Throws:
        java.io.IOException