Class WikipediaTraceReader
- java.lang.Object
-
- com.github.benmanes.caffeine.cache.simulator.parser.AbstractTraceReader
-
- com.github.benmanes.caffeine.cache.simulator.parser.TextTraceReader
-
- com.github.benmanes.caffeine.cache.simulator.parser.wikipedia.WikipediaTraceReader
-
- All Implemented Interfaces:
TraceReader,TraceReader.KeyOnlyTraceReader
public final class WikipediaTraceReader extends TextTraceReader implements TraceReader.KeyOnlyTraceReader
A reader for the trace files provided by the wikibench project. The requests are sanitized and filtered using the TraceBench optimizations.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.github.benmanes.caffeine.cache.simulator.parser.TraceReader
TraceReader.KeyOnlyTraceReader
-
-
Field Summary
-
Fields inherited from class com.github.benmanes.caffeine.cache.simulator.parser.AbstractTraceReader
filePath
-
-
Constructor Summary
Constructors Constructor Description WikipediaTraceReader(String filePath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAllowed(String path)Returns if the path should be included.LongStreamkeys()-
Methods inherited from class com.github.benmanes.caffeine.cache.simulator.parser.TextTraceReader
lines
-
Methods inherited from class com.github.benmanes.caffeine.cache.simulator.parser.AbstractTraceReader
readFile, readInput
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.benmanes.caffeine.cache.simulator.parser.TraceReader.KeyOnlyTraceReader
characteristics, events
-
-
-
-
Constructor Detail
-
WikipediaTraceReader
public WikipediaTraceReader(String filePath)
-
-
Method Detail
-
keys
public LongStream keys()
- Specified by:
keysin interfaceTraceReader.KeyOnlyTraceReader
-
isAllowed
public boolean isAllowed(String path)
Returns if the path should be included. The request is ignored if it is a search query, a page revision, related to users or user management, or talk pages.
-
-