Class TwitterTraceReader

  • All Implemented Interfaces:
    TraceReader

    public final class TwitterTraceReader
    extends TextTraceReader
    A reader for the trace files provided by Twitter from their in-memory cache clusters. See traces for details.
    • Constructor Detail

      • TwitterTraceReader

        public TwitterTraceReader​(String filePath)
    • Method Detail

      • events

        public Stream<AccessEvent> events()
        Description copied from interface: TraceReader
        Creates a stream that lazily reads the trace source.

        If timely disposal of underlying resources is required, the try-with-resources construct should be used to ensure that the stream's close method is invoked after the stream operations are completed.

        Returns:
        a lazy stream of cache events